I have configured the git environment in ssh console, but when restarting the app, all the previously installed software is gone. Also, redeploying the app will restore the environment.
Will restarting the app reset the environment configured in ssh console?
The root disk on a Fly VM is ephemeral: the root filesystem is rebuilt from the app’s container image every time that the VM is started. As a result, any files that you write (including software that you install) through the SSH console will be gone after the VM restarts, as you’ve seen.
Perhaps you can add Git to your container image, and then use environment variables and secrets as necessary to configure your environment?
Thanks, although this is a bit hard for me.
I wrote a post to show how to package git into ghost docker image.