Using Docker images containing WombatOAM
You should already have access to the Docker image we created, if not, please get in touch. The base of the Docker image is the official Erlang 17.5 built by Docker (erlang:17.5-slim) (see The Docker Hub for details). The prebuilt Docker image is also available on DockerHub, please contact your Erlang Solutions sales representative or wombat@erlang-solutions.com for the access details.
Due to limitations in the Erlang VM currently it’s not possible to connect to nodes
which are not in the same network as the Wombat container (as in, only exposing ports).
Use docker-compose or docker stack overlay networks or similar solutions
to start containers in the same network.
Starting WombatOAM in Docker for the first time
Section titled “Starting WombatOAM in Docker for the first time”By default the script only creates the image file with a license and prints instructions on how to load and start it. An example:
-
Import the image locally by running
Terminal window docker load --input wombat_<version>.image.tar -
To start the created Docker image, use the
Terminal window docker run -tid -p 8080:8080 --name wombat-2.9.0 wombat:<version>command. This will create and start a container with
wombat-2.9.0from thewombat:2.9.0image.
If you wish to use a Docker image file not containing a license key, then a directory containing the license key has to be mounted:
docker run -tid -p 8080:8080 \ -v $PWD/lic_dir:/wombat-2.9.0/lic_dir \ --name wombat-2.9.0 wombat:2.9.0If you wish to store the logs and the data on the host, outside the Docker container, then two directories have to be mounted, one for the data and one for the logs:
docker run -tid -p 8080:8080 \ -v $PWD/data:/wombat-2.9.0/rel/wombat/wombat/data \ -v $PWD/log:/wombat-2.9.0/rel/wombat/wombat/log \ --name wombat-2.9.0 wombat:2.9.0Starting already created container
Section titled “Starting already created container”If the Docker container is already created, just use
docker start wombat-2.9.0Stopping a running container
Section titled “Stopping a running container”To stop the Docker container, use the
docker stop wombat-2.9.0command.
Removing the container and the image
Section titled “Removing the container and the image”To remove the Docker container and image from the system, use the
docker container rm wombat-2.9.0 docker image rm wombat:2.9.0commands.
Starting PyWombat commands
Section titled “Starting PyWombat commands”To start the wombat_cli command, use the
docker exec -i -t wombat-2.9.0 /usr/local/bin/wombat_clicommand. In integrations using wombat_cli, wombat_check or
wombat_zabbixplugin (Cacti, Nagios,
Zabbix) you have to use a command like above instead of the
simple /usr/local/bin/wombat_cli.
Useful commands
Section titled “Useful commands”To “connect” to (look into) the running container, use the
docker exec -i -t wombat-2.9.0 /bin/bashcommand. This command starts a (root) shell inside the container.
