-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
24 lines (18 loc) · 828 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
FROM centos
ENV HOME=/opt/wiremock \
TERM=xterm
RUN yum install -y centos-release-openshift-origin epel-release java-1.8.0-openjdk vim && \
yum install -y python2-pip origin-clients && \
pip install -U pip && \
pip install -U setuptools && \
pip install httpie && \
yum clean all && \
mkdir -p /opt/wiremock
COPY init.sh .kube /opt/wiremock/
RUN mkdir -p /var/lib/wiremock && \
chown -R 10001:0 /opt/wiremock /var/lib/wiremock && \
chmod -R 777 /opt/wiremock /var/lib/wiremock && \
curl -o /opt/wiremock/wiremock.jar http://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.6.0/wiremock-standalone-2.6.0.jar
USER 10001
EXPOSE 8080 8443
ENTRYPOINT java -jar /opt/wiremock/wiremock.jar --https-port 8443 --bind-address 0.0.0.0 --root-dir /var/lib/wiremock --verbose