-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (37 loc) · 1.24 KB
/
Dockerfile
File metadata and controls
44 lines (37 loc) · 1.24 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
34
35
36
37
38
39
40
41
42
43
44
FROM java:7-jre
MAINTAINER Xabier de Zuazo "xabier@zuazo.org"
# apt-get install arguments
ENV APT_ARGS="-y --no-install-recommends --no-upgrade -o Dpkg::Options::=--force-confnew"
# Upgrade the system
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install $APT_ARGS \
curl \
git \
# Install netstat for integration tests:
net-tools \
openssl && \
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
RUN cd /usr/local/src && \
git clone https://github.com/twitter/diffy.git && \
cd diffy && \
rm -rf .git && \
./sbt assembly && \
mv target/scala-2.11 /opt/diffy && \
groupadd -r diffy && \
useradd -r -g diffy -d /opt/diffy diffy && \
chown -R diffy:diffy /opt/diffy && \
rm -r /usr/local/src/diffy
USER diffy
WORKDIR /opt/diffy
ENTRYPOINT ["java", "-jar", "/opt/diffy/diffy-server.jar"]
CMD [ "-candidate=http-candidate.herokuapp.com:9992", \
"-master.primary=http-primary.herokuapp.com:9990", \
"-master.secondary=http-secondary.herokuapp.com:9991", \
"-service.protocol=http", \
"-serviceName='My Service'", \
"-proxy.port=:31900", \
"-admin.port=:31159", \
"-http.port=:31149", \
"-rootUrl=localhost:31149" \
]