#Building images:
You need the scripts in https://github.com/NCAR/sweg-docker-util
to build things.
Do not run docker-compose
in daemon mode: systemd
will stop it as soon
as it starts!
Using --abort-on-container-exit
in the ExecStart
argument, and
Restart=always
. When any one container dies, the whole set of services
will die, and systemd
will restart everything for us.
Setting up:
cp xdmod.service /etc/systemd/system/xdmod.service chmod 664 /etc/systemd/system/xdmod.service sudo systemctl daemon-reload systemctl enable xdmod.service systemctl start xdmod.service
Note the xdmod_cisl
git repo uses submodules for the different
components. The logingest
, webapp
, mongodb
submodules in particular
all have their docker images, and the docker-compose.yml
configurations
will start the containers in an actual deployment.