-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (39 loc) · 1.28 KB
/
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
34
35
36
37
38
39
40
41
42
43
FROM ubuntu:16.04
LABEL maintainer="Dirk Kok [email protected]"
ENV AWS_ACCESS_KEY_ID **None**
ENV AWS_SECRET_ACCESS_KEY **None**
ENV AWS_SSE_KEY **None**
ENV AWS_S3_BUCKET **None**
ENV AWS_S3_PATH **None**
ENV AWS_REGION eu-central-1
ENV MONGO_HOST mongo:27017
ENV MONGO_CMD_OPTIONS ""
# Install everything and remove the bits we don't need anymore
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 \
&& echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list \
&& apt-get update \
&& apt-get install -y mongodb-org-tools \
\
&& apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
python3-pip \
python3-setuptools \
python3-dev \
python3-wheel \
&& pip3 install --upgrade pip \
&& pip install awscli \
\
&& apt-get remove -y --purge --auto-remove \
apt-transport-https \
curl \
python3-setuptools \
python3-dev \
python3-wheel \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# Add restore script
ADD restore.sh restore.sh
CMD ["bash", "restore.sh"]