konveyor / tackle-pathfinder

Tackle Pathfinder application
Apache License 2.0
16 stars 23 forks source link

Cannot start Keycloak with the Podman command #189

Open agoncal opened 2 years ago

agoncal commented 2 years ago

Running on MacOS 12.2.1

I want to execute PathFinder locally. I can start the PostgreSQL database, but not Keycloak. Following the README file, I execute the following command:

podman run -it --name keycloak --rm \
            -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -e KEYCLOAK_IMPORT=/tmp/keycloak/quarkus-realm.json \
            -e DB_VENDOR=h2 -p 8180:8080 -p 8543:8443 -v ./src/main/resources/keycloak:/tmp/keycloak:Z \
            jboss/keycloak:12.0.2

I get the following error:

Error: statfs /my/absolute/path/to/tackle-pathfinder/src/main/resources/keycloak: no such file or directory

When I use Docker instead of Podman, the error message is clearer:

docker: Error response from daemon: create ./src/main/resources/keycloak: "./src/main/resources/keycloak" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.

So, instead of the relative path I executed the Docker command with the absolute paht:

podman run -it --name keycloak --rm \
            -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -e KEYCLOAK_IMPORT=/tmp/keycloak/quarkus-realm.json \
            -e DB_VENDOR=h2 -p 8180:8080 -p 8543:8443 -v /my/absolute/path/to/tackle-pathfinder/src/main/resources/keycloak:/tmp/keycloak:Z \
            jboss/keycloak:12.0.2

This works with Docker but not with Podman