forked from ghost-inspector/docker-test-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (29 loc) · 1014 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
34
35
36
37
38
39
FROM ubuntu:16.04
MAINTAINER Ghost Inspector <[email protected]>
RUN apt-get update \
&& apt-get install -y curl
# Install unzip
ADD https://oss.oracle.com/el4/unzip/unzip.tar /unzip.tar
RUN tar -xf /unzip.tar \
&& rm -f /unzip.tar
# 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 \
&& rm /unzip
# 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"]