forked from hrektts/docker-fusiondirectory-openldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (24 loc) · 1.35 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
FROM osixia/openldap:1.1.5
MAINTAINER [email protected]
ENV FUSIONDIRECTORY_VERSION=1.0.15-1
RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys E184859262B4981F \
&& echo "deb http://repos.fusiondirectory.org/debian-jessie jessie main" \
> /etc/apt/sources.list.d/fusiondirectory-jessie.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
fusiondirectory-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-argonaut-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-autofs-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-gpg-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-mail-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-postfix-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-ssh-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-sudo-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-systems-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-weblink-schema=${FUSIONDIRECTORY_VERSION} \
fusiondirectory-plugin-webservice-schema=${FUSIONDIRECTORY_VERSION} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY init.sh /sbin/init.sh
RUN chmod 755 /sbin/init.sh
RUN sed -i "/# stop OpenLDAP/i /sbin/init.sh" /container/service/slapd/startup.sh