forked from Fekide/docker-fusiondirectory-openldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (29 loc) · 1.64 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
FROM osixia/openldap:1.2.4
MAINTAINER Feki.de e.V. "[email protected]"
LABEL version="1.2.4-1.3-1"
ADD bootstrap /var/fusiondirectory/bootstrap
ADD certs /container/service/slapd/assets/certs
ADD environment /container/environment/01-custom
ARG FUSIONDIRECTORY_VERSION=1.3-1
RUN apt-key adv --keyserver keys.gnupg.net --receive-keys D744D55EACDA69FF \
&& (echo "deb https://repos.fusiondirectory.org/fusiondirectory-current/debian-stretch stretch main"; \
echo "deb https://repos.fusiondirectory.org/fusiondirectory-extra/debian-stretch stretch main") \
> /etc/apt/sources.list.d/fusiondirectory-stretch.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