This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
57 lines (46 loc) · 1.48 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Divolte
#
# Divolte Documentation:
# www.divolte.io
#
FROM openjdk:8-jre-slim
#
# Configuration
#
ARG BUILD_DATE
ARG DIVOLTE_VERSION=0.9.0
ARG ENABLE_KERBEROS=no
ENV ENABLE_KERBEROS=$ENABLE_KERBEROS
LABEL org.label-schema.name="Divolte ${DIVOLTE_VERSION}" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$DIVOLTE_VERSION
#
# Install dependencies and Divolte
#
RUN apt-get update && \
if [ "$ENABLE_KERBEROS" = "yes" ]; then\
apt-get install -y curl krb5-user;\
else\
apt-get install -y curl;\
fi && \
mkdir -p /opt/divolte && \
cd /tmp/ && \
curl -O http://divolte-releases.s3-website-eu-west-1.amazonaws.com/divolte-collector/${DIVOLTE_VERSION}/distributions/divolte-collector-${DIVOLTE_VERSION}.tar.gz && \
echo "4fa6b3847d3a047a2b5e854aa977012772d552ffa0acf84847042e96c9bb0769 divolte-collector-${DIVOLTE_VERSION}.tar.gz" | sha256sum -c - && \
tar zxpf divolte-collector-${DIVOLTE_VERSION}.tar.gz -C /opt/divolte && \
mv /opt/divolte/divolte-collector-${DIVOLTE_VERSION}/ /opt/divolte/divolte-collector && \
apt-get remove -y curl && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -fr /var/tmp/* /tmp/*
#
# Configuration changes using divolte-collector.conf
#
COPY conf/ /opt/divolte/divolte-collector/conf/
COPY configureKerberosClient.sh /opt/divolte/
COPY start.sh /opt/divolte/
#
# Expose the Divolte Collector click simulation web page
#
EXPOSE 8290
CMD ["/opt/divolte/start.sh"]