ezmaster app used to auto upgrade an ezmaster application/instance.
483
ezmaster app used to auto upgrade an ezmaster application/instance just when a new version of the application is released (npm version, then git push, then dockerhub autobuild).
Add the application in your ezmaster (inistcnrs/ezmaster-automaton:1.0.0) then create a new instance on this application
Then, open the configuration of the created instance in your ezmaster and insert your wanted parameters:
{
"env": {
"APPLICATION_BASENAME": "istex/istex-dl",
"INSTANCE_BASENAME": "istex-dl",
"CONFIG_FROM_INSTANCE": "",
"EZMASTER_BASEURL": "http://ezmaster-api:35269",
"EZMASTER_USER": "",
"EZMASTER_PASSWORD": ""
},
"crontab" : {
"when": "* * * * *",
"commands" : [
"test -f /tmp/ezmaster.lock || (touch /tmp/ezmaster.lock ; ezmaster-automaton-instance ; rm -f /tmp/ezmaster.lock)"
],
"options": {
"silent": false
}
}
}
The "env" parameters are explained in the ezmaster-cli documentation, this is the most important part of the config.
To enable docker logging, you can set the crontab.options.silent to false. Having log is usefull at the begining to setup the stuff.
You can also change crontab.when (crontabl syntax) if you do not want the ezmaster-automaton-instance command to be run too often. Ex: "5 * * * *" will run the command each 5 minutes instead of each minutes by default.
Content type
Image
Digest
Size
264.3 MB
Last updated
about 8 years ago
docker pull inistcnrs/ezmaster-automaton:4.1.2