Files
docker-openldap/Dockerfile
Eric Rakestraw 800010b1ff
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
Create a symlink to /run at /var/run because Ubuntu.
2026-02-01 21:40:29 -06:00

23 lines
705 B
Docker

# Pull base image from authorized source
FROM harbor.maximumdirect.net/proxy-dockerhub/ubuntu:24.04
LABEL description="OpenLDAP" \
maintainer="Eric Rakestraw <eric@maximumdirect.net>" \
version="Ubuntu 24.04"
# Create the necesary directories for slapd
RUN mkdir -p /run/slapd
RUN ln -sf /run /var/run
# Install the necessary packages for LDAP Proxy server
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -q update
RUN apt-get install -q --yes slapd ldap-utils
RUN apt-get install -q --yes slapd-contrib
# Remove the slapd.d directory, since we will be using slapd.conf.
RUN rm -rf /etc/ldap/slapd.d
# Run with debug enabled; this will print logs to STDOUT.
CMD ["/usr/sbin/slapd", "-d1"]