-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 840 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:16.04
MAINTAINER pavel duchovny "pavel.duchovny@mongodb.com"
RUN apt-get -qqy update && \
apt-get install -qqy \
curl \
ca-certificates \
libsasl2-2 \
numactl
#VOLUME /var/lib/mongodb-mms-automation
ENV MMS_URL "https://cloud.mongodb.com"
ARG MMS_URL
ADD $MMS_URL/download/agent/automation/mongodb-mms-automation-agent-manager_latest_amd64.deb /root/mongodb-mms-automation-agent-manager_latest_amd64.deb
RUN dpkg -i /root/mongodb-mms-automation-agent-manager_latest_amd64.deb
#Setting /var/lib permissions
RUN chmod -R 777 /var/lib/
# MMS automation
# MongoDB data volume
VOLUME /data
RUN chown -R mongodb:mongodb /data
USER mongodb
# default MMS automation port
EXPOSE 27000
ENTRYPOINT ["/opt/mongodb-mms-automation/bin/mongodb-mms-automation-agent"]
#ENTRYPOINT ["/entrypoint.sh"]