-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 696 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (18 loc) · 696 Bytes
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
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
COPY ./configure_slapd.sh /configure_slapd.sh
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /configure_slapd.sh /entrypoint.sh
RUN apt-get update -y && \
apt-get install -y vim slapd ldap-utils iproute2 \
iputils-ping openssh-client openssh-server \
debconf-utils && \
rm -rf /var/lib/apt/lists/*
# Configure slapd with the script, environment variables can be set
# to override the script variables
RUN chmod +x /configure_slapd.sh && ./configure_slapd.sh
COPY ./ldap.conf /etc/ldap/ldap.conf
# Expose necessary ports
# TODO: maybe add 2222 for ssh to avoid conflict
EXPOSE 22 389 636
ENTRYPOINT ["/entrypoint.sh"]