Skip to content

Commit

Permalink
try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Feb 9, 2024
1 parent cda053a commit 4964fb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions keycloak/keycloakify/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion kubernetes/loculus/templates/keycloak-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4964fb4

Please sign in to comment.