Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLichtenberger authored Jul 13, 2024
1 parent bd16f8f commit 964f839
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/resources/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM registry.access.redhat.com/ubi9 AS ubi-micro-build
RUN mkdir -p /mnt/rootfs
RUN dnf install --installroot /mnt/rootfs jq curl \
--releasever 9 --setopt install_weak_deps=false --nodocs -y; \
dnf --installroot /mnt/rootfs clean all

FROM quay.io/keycloak/keycloak:25.0.1

# Copy dependencies from ubi-micro-build stage
COPY --from=ubi-micro-build /mnt/rootfs /


# Copy the necessary scripts into the container
COPY wait-for-keycloak.sh /opt/keycloak/scripts/wait-for-keycloak.sh
COPY create-sirix-users.sh /opt/keycloak/scripts/create-sirix-users.sh

USER root

RUN chmod +x /opt/keycloak/scripts/wait-for-keycloak.sh /opt/keycloak/scripts/create-sirix-users.sh

# Switch back to the default Keycloak user

0 comments on commit 964f839

Please sign in to comment.