How to build and run MongooseIM docker image
The instruction below will guide you through the process of building and running the MongooseIM docker image.
Requirements
To follow this guide you need to have docker installed and the MongooseIM GitHub repository cloned locally.
Building docker image
To build a MongooseIM image, navigate to the main repo directory (referenced as $REPO
in this guide) and execute:
1 |
|
which will build a MongooseIM docker image based on the current local commit if it is available on the remote.
Alternatively, it is possible to build a docker image based on any commit available on remote (commit hash referenced as $COMMIT_HASH
), by executing:
1 |
|
Running docker image
Full tutorial on running a docker image is available on mongooseim-docker GitHub. Here only simple and one-node configuration will be presented. In order to run it execute:
1 |
|
which starts a single MongooseIM node named first-node
.