I am trying to setup a gateway to automatically restore from a backup in startup, following the documentation, and there is a command line argument mentioned (
-r) that I am unable to find in even Dockers documentation!
Does anyone potentially know what that argument is? So that I can use it in a docker-compose file, because without it the restore doesn’t seem to happen. It says “runtime argument”, but I am not sure if its the same thing as
--runtime or just a poor wording coincidence.
Automating the Restore of a Gateway Backup
The following feature is new in Ignition version 8.1.7
Click here to check out the other new features
You can automate the restore of a gateway backup on first-launch of your gateway container. This allows for having a new Ignition Gateway restore to a known initial state automatically, without waiting for the commissioning steps.
To leverage this feature, bind-mount a gateway backup into the container and then use the
-r runtime argument to specify the location and command the restore. Additionally, supply the
ACCEPT_IGNITION_EULA=Y environment variable to accept the Ignition EULA (see the Licensingsection below) and bypass that gateway commissioning step.
docker run -d -p 9088:8088 --name ignition- test \ - v gw-data:/usr/local/bin/ignition/data \ - v /path/to/gateway.gwbk:/restore.gwbk \ -e ACCEPT_IGNITION_EULA=Y \ inductiveautomation/ignition:8.1.7 \ -n docker-test -a localhost -h 9088 -s 9043 \ -r /restore.gwbk