forked from ome/apacheds-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (52 loc) · 2 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
58
59
60
61
62
63
64
FROM ubuntu:14.04
MAINTAINER ome-devel@lists.openmicroscopy.org.uk
#############################################
# ApacheDS installation
#############################################
ENV APACHEDS_VERSION 2.0.0-M24
ENV APACHEDS_ARCH amd64
ENV APACHEDS_ARCHIVE apacheds-${APACHEDS_VERSION}-${APACHEDS_ARCH}.deb
ENV APACHEDS_DATA /var/lib/apacheds-${APACHEDS_VERSION}
ENV APACHEDS_CERT /etc/apacheds
ENV APACHEDS_USER apacheds
ENV APACHEDS_GROUP apacheds
VOLUME ${APACHEDS_DATA}
VOLUME ${APACHEDS_CERT}
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& apt-get update \
&& apt-get install -y ldap-utils procps openjdk-7-jre-headless curl jq \
&& curl http://www.eu.apache.org/dist//directory/apacheds/dist/${APACHEDS_VERSION}/${APACHEDS_ARCHIVE} > ${APACHEDS_ARCHIVE} \
&& dpkg -i ${APACHEDS_ARCHIVE} \
&& rm ${APACHEDS_ARCHIVE}
# Ports defined by the default instance configuration:
# 10389: ldap
# 10636: ldaps
# 60088: kerberos
# 60464: changePasswordServer
# 8080: http
# 8443: https
EXPOSE 10389 10636 60088 60464 8080 8443
#############################################
# ApacheDS bootstrap configuration
#############################################
ENV APACHEDS_INSTANCE default
ENV APACHEDS_BOOTSTRAP /bootstrap
ENV APACHEDS_DOMAIN openmicroscopy
ENV APACHEDS_TOP_DOMAIN org
ENV APACHEDS_SCRIPT run.sh
ENV APACHEDS_CMD /${APACHEDS_SCRIPT}
ADD scripts/${APACHEDS_SCRIPT} ${APACHEDS_CMD}
RUN chown ${APACHEDS_USER}:${APACHEDS_GROUP} ${APACHEDS_CMD} \
&& chmod u+rx ${APACHEDS_CMD}
ADD instance/* ${APACHEDS_BOOTSTRAP}/conf/
ADD ome.ldif ${APACHEDS_BOOTSTRAP}/
ADD contextentry.template /
RUN mkdir ${APACHEDS_BOOTSTRAP}/cache \
&& mkdir ${APACHEDS_BOOTSTRAP}/run \
&& mkdir ${APACHEDS_BOOTSTRAP}/log \
&& mkdir ${APACHEDS_BOOTSTRAP}/partitions \
&& chown -R ${APACHEDS_USER}:${APACHEDS_GROUP} ${APACHEDS_BOOTSTRAP}
#############################################
# ApacheDS wrapper command
#############################################
CMD ${APACHEDS_CMD}