Sign inSign up

inistcnrs/ezmaster-auto-upgrade

By inistcnrs

Updated almost 9 years ago

DEPRECATED ! please use https://hub.docker.com/r/inistcnrs/ezmaster-automaton/

Image
1

494

inistcnrs/ezmaster-auto-upgrade repository overview

ezmaster-auto-upgrade

Docker Pulls

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).

Prerequisites

Usage

  • Add the application in your ezmaster (inistcnrs/ezmaster-auto-upgrade: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:35267"
      },
      "crontab" : {
        "when": "* * * * *",
        "commands" : [
          "test -f /tmp/ezmaster.lock || (touch /tmp/ezmaster.lock ; ezmaster-auto-upgrade-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 stop docker logging, you can set the crontab.options.silent to true. 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-auto-upgrade-instance command to be run too often. Ex: "5 * * * *" will run the command each 5 minutes instead of each minutes by default.

Tag summary

Content type

Image

Digest

Size

264.3 MB

Last updated

almost 9 years ago

docker pull inistcnrs/ezmaster-auto-upgrade:1.0.6