Sign inSign up

forekshub/mongodb-mms-agent

By forekshub

•Updated about 7 years ago

docker run -d --name=mms-agent -e "MMS_KEY=XXXXXX" -e "GROUP_ID=YYYYYY" forekshub/mongodb-mms-agent

Image
0

879

forekshub/mongodb-mms-agent repository overview

FROM debian:jessie MAINTAINER [email protected]⁠

RUN apt-get update && apt-get install curl logrotate -y WORKDIR /opt/agent/ ADD . /opt/agent/

RUN curl -OL https://cloud.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent_6.1.0.387-1_amd64.ubuntu1604.deb⁠ RUN dpkg -i mongodb-mms-monitoring-agent_6.1.0.387-1_amd64.ubuntu1604.deb

CMD sed -i 's/mmsApiKey=/mmsApiKey='"${MMS_KEY}"'/' /etc/mongodb-mms/monitoring-agent.config
&& sed -i 's/mmsGroupId=/mmsGroupId='"${GROUP_ID}"'/' /etc/mongodb-mms/monitoring-agent.config
&& /usr/bin/mongodb-mms-monitoring-agent -conf /etc/mongodb-mms/monitoring-agent.config

Tag summary

Content type

Image

Digest

Size

121.3 MB

Last updated

about 7 years ago

docker pull forekshub/mongodb-mms-agent:10.1.4.5818-1