Skip to content

Commit

Permalink
Update alpine for openldap
Browse files Browse the repository at this point in the history
This also updates OpenLDAP from 2.4 to 2.6.
  • Loading branch information
henrist committed Mar 27, 2024
1 parent 9051484 commit 7a81e59
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions services/openldap/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.11
FROM alpine:3.19

RUN set -eux; \
# Create the user first so we control the uid/gid.
Expand All @@ -19,7 +19,10 @@ RUN set -eux; \
ln -s /usr/lib/openldap /usr/lib/ldap; \
# Location for ldapi socket.
mkdir -p /var/lib/openldap/run; \
chown ldap:ldap /var/lib/openldap/run
chown ldap:ldap /var/lib/openldap/run; \
# Verify expected/tested version.
slapd -V; \
slapd -V 2>&1 | grep -q 'slapd 2.6' || (echo "Unexpected slapd version" && exit 1)

COPY entrypoint.sh /entrypoint.sh
COPY run.sh /run.sh
Expand Down

0 comments on commit 7a81e59

Please sign in to comment.