forked from ghost-inspector/docker-test-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 910 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
FROM node:8
MAINTAINER Ghost Inspector <[email protected]>
# Install unzip
RUN wget -qO- https://oss.oracle.com/el4/unzip/unzip.tar | tar -x -C /bin/
# Install ngrok (latest official stable from https://ngrok.com/download).
ADD https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip /ngrok.zip
RUN set -x \
&& unzip -o /ngrok.zip -d /bin \
&& rm -f /ngrok.zip
# Add ngrok config.
COPY ./includes/ngrok.yml /home/ngrok/.ngrok2/
# Install jq.
ADD http://stedolan.github.io/jq/download/linux64/jq /bin/jq
RUN chmod +x /bin/jq
# Add the script that will run the tes suite.
COPY ./includes/bin/runghostinspectorsuite /bin/runghostinspectorsuite
# add our user
RUN useradd -ms /bin/bash ghostinspector
USER ghostinspector
WORKDIR /home/ghostinspector
# This is the port you can use to interact with ngrok's API.
EXPOSE 4040
# The primary script.
ENTRYPOINT ["/bin/runghostinspectorsuite"]