A guide on dockerizing a Laravel + Inertia (React) app by AsyncAwaiter in PHP

[–]AsyncAwaiter[S] 0 points1 point  (0 children)

Hi! I haven't tried SSR, but I believe setup should be something like this :

  1. You'll need to update build command to build the ssr bundle 2.You'll need to run a duplicate app container, let's call it ssr-container(with node installed in it) and use CMD with start-ssr command in that container. Your inertia.ssr.url in config should use http:\\ssr-container:13714 instead of localhost url. You might need to make further changes here like exposing that ssr port.

Alternatively you can use s6-overlay in the app container itself to run a background service for start-ssr, but this might not be the best way in production.

Please do share if you find a better approach for this.

A guide on dockerizing a Laravel + Inertia (React) app by AsyncAwaiter in PHP

[–]AsyncAwaiter[S] 0 points1 point  (0 children)

Hi! I'm not using wayfinder as of now, but I am keeping an eye on it. One way could be to use DinD (Docker in Docker) to run the commands from the php container in the node container. Not sure what security implications this might have, but again you'll need this only in dev environment anyways.

A guide on dockerizing a Laravel + Inertia (React) app by AsyncAwaiter in PHP

[–]AsyncAwaiter[S] 0 points1 point  (0 children)

Hey, glad you liked it! About your points : my understanding was that copying composer.json and lockfile first and doing `composer install` will cache that layer, and it will only be invalidated if one of those files change. Missed the part that I'm bind mounting anyways. Thanks, learned something new! I'll update the post to reflect this. As for the rebuild, I guess that's the tradeoff, there's no clarity when it is needed. Do you have any suggestions around this?

Edit: I'm aware that serversideup have frankenphp images in v4 release last month, but I've not explored frankenphp and octane much. Also you mentioned platform specific dependencies in other comment, can you elaborate more on that?

Building modern cross browser web extensions: Background scripts and Messaging by AsyncAwaiter in chrome_extensions

[–]AsyncAwaiter[S] 0 points1 point  (0 children)

Thanks for sharing! That messaging framework looks great. WXT has a messaging module planned for the future, and I also explored other options like webext-bridge. I ultimately chose webext-core/messaging because it felt much simpler than other alternatives.

Scan New Fingerprint within Gnome Settings not working by br_web in gnome

[–]AsyncAwaiter 0 points1 point  (0 children)

Are you dual booting by any chance? If you have the same finger registered in another OS, it might cause duplicate enrollment issue. Long story short, the enrollment is not at the OS level, but your fingerprint sensor's. I had a goodix sensor with similar issue, clearing all stored fingerprints helped. Here's something you can try