Skip to content

Commit

Permalink
chore: use centos9 image and add deps for experimental ldap (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Izquierdo authored Dec 12, 2023
1 parent ba512ae commit 5e50458
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/ubi:latest
FROM quay.io/centos/centos:stream9

ARG USER_ID=${USER_ID:-1001}
RUN useradd --uid "$USER_ID" --gid 0 --home-dir /app --create-home eda \
Expand All @@ -16,7 +16,9 @@ RUN DNF=dnf \
git-core \
java-17-openjdk-headless \
# Experimental LDAP Integration https://issues.redhat.com/browse/AAP-16938
openldap-devel" \
openldap-devel xmlsec1-devel libtool-ltdl-devel" \
&& $DNF -y install dnf-plugins-core \
&& $DNF -y config-manager --set-enabled crb \
&& $DNF -y install $INSTALL_PACKAGES \
&& $DNF -y clean all \
&& rm -rf /var/cache/dnf
Expand Down Expand Up @@ -48,9 +50,9 @@ RUN poetry install -E all --only-root

USER 0
RUN for dir in \
/app \
/app/venv \
/app/venv/bin ; \
/app \
/app/venv \
/app/venv/bin ; \
do mkdir -m 0775 -p $dir ; chmod g+rwx $dir ; chgrp root $dir ; done

USER "$USER_ID"
Expand Down

0 comments on commit 5e50458

Please sign in to comment.