From 4964fb49c4c60c4f7d421f2bd5ebace32b91606b Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Fri, 9 Feb 2024 19:40:09 +0000 Subject: [PATCH] try to fix --- keycloak/keycloakify/Dockerfile | 14 ++++++++++---- .../loculus/templates/keycloak-deployment.yaml | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/keycloak/keycloakify/Dockerfile b/keycloak/keycloakify/Dockerfile index 8dec9c48d..6dfe723a5 100644 --- a/keycloak/keycloakify/Dockerfile +++ b/keycloak/keycloakify/Dockerfile @@ -30,8 +30,14 @@ RUN mkdir /output # Copy the built JAR from the builder stage COPY --from=builder /app/build_keycloak/target/*.jar /output/ -# Set the command to copy the JAR file to a mounted volume -CMD ["cp", "-r", "/output/*", "/destination/"] +# List the contents of the output directory +RUN ls -l /output + +# We will have a destination mounted at /destination + +# Copy the built JAR to the destination when the container starts + +# Start the container +CMD ["cp", "/output/*.jar", "/destination/"] + -# Set the volume where the JAR file will be copied to when the container is run -VOLUME /destination/ \ No newline at end of file diff --git a/kubernetes/loculus/templates/keycloak-deployment.yaml b/kubernetes/loculus/templates/keycloak-deployment.yaml index e4b8b6035..49891e80d 100644 --- a/kubernetes/loculus/templates/keycloak-deployment.yaml +++ b/kubernetes/loculus/templates/keycloak-deployment.yaml @@ -55,7 +55,7 @@ spec: - name: config-volume mountPath: /opt/keycloak/data/import/ - name: theme-volume - mountPath: /opt/keycloak/themes/my-theme + mountPath: /opt/keycloak/providers/ startupProbe: httpGet: path: /health