Our HA platform design relies on Atomic OS, which only contains bare minimum elements to run containers.
So how can we use git on this system, to push/pull the changes we make to config files? With a container, of course!
I made a simple container which just basically executes git in the CWD:
To use it transparently, add an alias for the "git" command, or just download it with the rest of the handy aliases:
Setup SSH key¶
If you plan to actually push using git, you'll need to setup an SSH keypair. You could copy across whatever keypair you currently use, but it's probably more appropriate to generate a specific keypair for this purpose.
Generate your new SSH keypair by running:
1 2 3
The output will look something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Now add the contents of /var/data/git-docker/data/.ssh/id_ed25519.pub to your git account, and off you go - just run "git" from your Atomic host as usual, and pretend that you have the client installed!
Tip your waiter (support me) 👏¶
Did you receive excellent service? Want to make your waiter happy? (..and support development of current and future recipes!) See the support page for (free or paid) ways to say thank you! 👏