Update package index
sudo apt-get update
Install required packages
Cloud-init combined with terraform can be a powerful tool to provision instances on startup. Debugging scripts that are run by cloud-init however are not the easiest to debug.
Usually on an Ubuntu machine a lot of what is happening can be found in the syslog
cat /var/log/syslog
Checking what is inside the context sent to the docker daemon and whether the configured .dockerignore
is behaving as expected can be achieved with the following guide.
Create a dockerfile with the name Dockerfile.build-context
FROM busybox
COPY . /build-context
WORKDIR /build-context
##################################4########## | |
# MaNGOS realmd configuration file # | |
############################################ | |
[RealmdConf] | |
ConfVersion=2010062001 | |
################################################################################################################### | |
# REALMD SETTINGS | |
# |
##################################### | |
# MaNGOS Configuration file # | |
##################################### | |
[MangosdConf] | |
ConfVersion=2010100901 | |
################################################################################################################### | |
# CONNECTIONS AND DIRECTORIES | |
# |
A docker stack deployment can be updated by re-executing the deployment command.
docker stack deploy --compose-file=[docker-compose file] [stack-name]
An example where this could be used is if the image version changed. Simply change the docker-compose configuration to the newest version and then execute the above command.