-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 1.34 KB
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 node:10
# This Docker image is only responsible for running the Integration Command Server which can be
# used to instrument other parts of the Integration tests.
#
# It exposes a webserver on port 8888.
# set timezone to Copenhagen (by default it's using UTC) to match Android's device time.
RUN cp /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime
RUN echo "Europe/Copenhagen" > /etc/timezone
# Install netstat (used for debugging)
# Fix https://superuser.com/questions/1420231/how-to-solve-404-error-in-aws-apg-get-for-debian-jessie-fetch
RUN rm etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian/ jessie main" >> etc/apt/sources.list
RUN echo "deb-src http://archive.debian.org/debian/ jessie main" >> etc/apt/sources.list
RUN echo "deb http://security.debian.org jessie/updates main" >> etc/apt/sources.list
RUN echo "deb-src http://security.debian.org jessie/updates main" >> etc/apt/sources.list
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
net-tools \
psmisc \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy webserver script and install dependencies
WORKDIR "/tmp"
COPY ../mongodb-realm-command-server.js /tmp
RUN npm install winston@2.4.0 temp httpdispatcher@1.0.0 fs-extra moment is-port-available@0.1.5
# Run integration test server
CMD /tmp/mongodb-realm-command-server.js