Git functions (Designer Save) from Ignition Docker container

Thanks Kevin

I’m a bit of a Docker / Linux / git noob so really appreciate the worked example.

I wasn’t even aware it was possible build on images in this way!

Using your sample code, I’ve now managed to build a new image (based on the kcollins image as it seems to be the only one I can get to work with named volumes!) with git added to it.

I’ve continued with the Deployment Best Practices guide and added the git-auto-commit.sh script to the container (manually via the container shell for now), and when I execute it direct from the container shell it works and does the git commit.

However when I try to execute the same script from the Designer Save it does not appear to work.

I’ve put logger calls both before and after the system.util.execute command in the Gateway Update Event, and both pre and post logger entries appear in the Gateway logs, but the shell script file actions do not appear to have executed (no git commit appears in source control).

Any ideas on how to proceed or debug?