Skip to content

Commit

Permalink
keycloak-config-cli: fix bitnami symlink (#44312)
Browse files Browse the repository at this point in the history
The Bitnami keycloak-config-cli image defaults to the `bitnami - 1000:0`
user, however the defaults in their helm chart runs the container as
`bitnami - 1001:1001` which throws an error about not being able to
access the jarfile referenced by the current symlink.

This fix changes the symlink to the full filepath and adjusts the
subpackage test to confirm that this runs with the default Bitnami helm
chart uid:gid.

Signed-off-by: Michael Paul <31833332+MickeyPvX@users.noreply.github.com>
  • Loading branch information
MickeyPvX authored Mar 3, 2025
1 parent 33ecb4b commit 9a4c601
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keycloak-config-cli.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: keycloak-config-cli
version: 6.4.0
epoch: 1
epoch: 2
description: Import YAML/JSON-formatted configuration files into Keycloak - Configuration as Code for Keycloak.
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -122,13 +122,13 @@ subpackages:
ln -sf ${JAVA_HOME} ${{targets.contextdir}}/opt/bitnami/java
ln -sf /usr/share/java/${{package.name}}/${{package.name}}.jar ${{targets.contextdir}}/opt/bitnami/${{package.name}}/${{package.name}}-${KEYCLOAK_VERSION}.jar
ln -sf ./${{package.name}}-${KEYCLOAK_VERSION}.jar ${{targets.contextdir}}/opt/bitnami/${{package.name}}/${{package.name}}.jar
ln -sf /opt/bitnami/${{package.name}}/${{package.name}}-${KEYCLOAK_VERSION}.jar ${{targets.contextdir}}/opt/bitnami/${{package.name}}/${{package.name}}.jar
test:
environment:
accounts:
users:
- username: bitnami
gid: 0
gid: 1001
uid: 1001
run-as: 0
contents:
Expand Down

0 comments on commit 9a4c601

Please sign in to comment.