forked from divolte/docker-divolte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (42 loc) · 1.54 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
# Divolte
#
# Divolte Documentation:
# www.divolte.io
#
FROM java:8-jre
#
# Prerequisite: Create some folders for later usage
#
RUN mkdir -p /opt/divolte
#
# Configuration
#
ENV DIVOLTE_VERSION 0.7.0
#
# Download and Install Divolte
#
RUN curl -o divolte-collector-${DIVOLTE_VERSION}.tar.gz http://divolte-releases.s3-website-eu-west-1.amazonaws.com/divolte-collector/${DIVOLTE_VERSION}/distributions/divolte-collector-${DIVOLTE_VERSION}.tar.gz && \
tar zxpf divolte-collector-${DIVOLTE_VERSION}.tar.gz -C /opt/divolte && \
mv /opt/divolte/divolte-collector-${DIVOLTE_VERSION}/ /opt/divolte/divolte-collector
#
# Configuration changes using divolte-collector.conf
#
ADD conf/divolte-collector.conf /opt/divolte/divolte-collector/conf/divolte-collector.conf
ADD conf/logback.xml /opt/divolte/divolte-collector/conf/logback.xml
RUN chown root:root /opt/divolte/divolte-collector/conf/divolte-collector.conf && \
chown root:root /opt/divolte/divolte-collector/conf/logback.xml
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -qqy apt-transport-https locales krb5-user netcat && apt-get -qq clean
RUN locale-gen "en_US.UTF-8"
RUN echo "LC_ALL=\"en_US.UTF-8\"" >> /etc/default/locale
ENV KDC_HOST=${KDC_HOST:-kdc-kadmin}
ENV REALM ${REALM:-EXAMPLE.COM}
ENV KADMIN_PRINCIPAL ${KADMIN_PRINCIPAL:-kadmin/admin}
ENV KADMIN_PASSWORD ${KADMIN_PASSWORD:-MITiys4K5}
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"]