-
Notifications
You must be signed in to change notification settings - Fork 121
/
Dockerfile
30 lines (20 loc) · 960 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
ARG imagebase
FROM ${imagebase} as base
FROM busybox
ARG version
LABEL name="MongoDB Enterprise Init AppDB" \
version="mongodb-enterprise-init-appdb-${version}" \
summary="MongoDB Enterprise AppDB Init Image" \
description="Startup Scripts for MongoDB Enterprise Application Database for Ops Manager" \
release="1" \
vendor="MongoDB" \
maintainer="support@mongodb.com"
COPY --from=base /data/readinessprobe /probes/readinessprobe
COPY --from=base /data/probe.sh /probes/probe.sh
COPY --from=base /data/scripts/ /scripts/
COPY --from=base /data/licenses /licenses/
COPY --from=base /data/mongodb_tools_ubuntu.tgz /tools/mongodb_tools.tgz
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
&& rm /tools/mongodb_tools.tgz
USER 2000
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]