-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
53 lines (44 loc) · 1.32 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
FROM alpine:3.14
LABEL description="Configurable OpenLDAP service with education schema and demo data" \
maintainer="[email protected]"
RUN apk add --update --no-cache \
tini \
openldap \
openldap-doc \
openldap-backend-all \
openldap-clients \
openldap-mqtt \
openldap-overlay-all \
openldap-passwd-pbkdf2 \
openldap-passwd-argon2 \
openldap-passwd-sha2 \
ldapvi \
ldapvi-doc \
gettext
COPY etcfs /etc
COPY optfs /opt
ENV EDULDAP_ENV=development \
ADMIN_SECRET="" \
DEBUG_LEVEL=256 \
BASE_DN='dc=demo,dc=university' \
DATABASE=default \
SCHEMA="core cosine nis misc pmi ppolicy dyngroup inetorgperson eduperson schac ssh" \
SEED=default \
RESET=false \
TIDY=true \
EDULDAP_HOME=/opt/eduldap \
OPENLDAP_ETC=/etc/openldap \
DATA_DIR=/var/lib/openldap/openldap-data \
RUN_DIR=/var/run/openldap \
SOCK_DIR=/var/lib/openldap/run \
AUTO_INIT=true \
SLAPD_URLS="ldap:/// ldapi:///" \
SLAPD_OPTIONS=" "
ENV PATH=${PATH}:${EDULDAP_HOME}/bin
WORKDIR ${EDULDAP_HOME}
USER root
EXPOSE 389 636
#ENTRYPOINT /etc/eduldap/bin/eduldap.sh
ENTRYPOINT ["/sbin/tini", "-v", "--", "eduldap"]
CMD []
HEALTHCHECK --interval=10s --timeout=2s --start-period=5s --retries=2 CMD ldapwhoami -Y EXTERNAL -H ldapi:/// || exit 1