This repository contains a Dockerfile that simplifies the creation of a docker image for the deployment of the MongoDB MMS Automation Agent. In order to start this image some required flags need to be passed along (baseUrl, groupId and apiKey), please review the instructions below.
For more detailed installation steps please review MMS Automation Agent Installation Guide.
In order to run a container three flags need to be provided. The three flags are:
--mmsBaseUrl
--mmsGroupId
--mmsApiKey
These three inputs can be retrieved from the MongoDB Ops Manager under Settings > Group Settings > GroupID and Agent API Key
(docs).
This is an example how an image could be run in it's own network.
docker network create --subnet=172.18.0.0/16 mongoNet
Note: Before this image can be added MongoDB OPS Manager needs to be set up.
docker run -d --name testAgent --net mongoNet --ip 172.18.0.11 -p 27010:27000 --privileged skofgar/automation-agent --mmsBaseUrl=http://172.18.0.2:8080 --mmsGroupId=1234567890 --mmsApiKey=12345567890
This Dockerfile is inspired by https://github.com/mcascallares/mongodb-automation