pulp / pulp-oci-images

Containerfiles and other assets for building Pulp 3 OCI images
https://docs.pulpproject.org/pulp_oci_images/
29 stars 53 forks source link

Unable to launch docker compose stack #647

Open dot-mike opened 2 weeks ago

dot-mike commented 2 weeks ago

Version Latest version from Git repository

Describe the bug Starting the docker compose stack as per documentation with the command docker compose up results in a crash with code:

set_init_password_service-1 exited with code 0
Gracefully stopping... (press Ctrl+C again to force)
service "signing_key_service" didn't complete successfully: exit 1

checking the logs for the container signing_key_service

$ docker logs 476042309d92
Waiting on postgresql to start...
Postgres started.
Checking for database migrations
Database migrated!
/usr/bin/add_signing_service.sh: line 6: PULP_SIGNING_KEY_FINGERPRINT: unbound variable
Waiting on postgresql to start...
Postgres started.
Checking for database migrations
Database migrated!
/usr/bin/add_signing_service.sh: line 6: PULP_SIGNING_KEY_FINGERPRINT: unbound variable

Running the container stack again with docker compose up -d to start the stack in the background results service signing_key_service not being able to start

[+] Running 9/9
 ✔ Container compose-redis-1                      Healthy                                                                                    7.5s
 ✔ Container compose-postgres-1                   Healthy                                                                                    7.5s
 ✔ Container compose-set_init_password_service-1  Exited                                                                                     9.5s
 ✔ Container compose-migration_service-1          Exited                                                                                     7.5s
 ✔ Container compose-pulp_content-1               Running                                                                                    0.0s
 ✔ Container compose-pulp_content-2               Running                                                                                    0.0s
 ✘ Container compose-signing_key_service-1        service "signing_key_service" didn't complete...                                          12.6s
 ✔ Container compose-pulp_worker-1                Running                                                                                    0.0s
 ✔ Container compose-pulp_worker-2                Running                                                                                    0.0s
service "signing_key_service" didn't complete successfully: exit 1

To Reproduce Steps to reproduce the behavior: Follow the documentation (note that the docs uses outdated docker-compose which is not supported)

git clone git@github.com:pulp/pulp-oci-images.git
cd images/compose
docker-compose up

Expected behavior I expect the stack to be running after running docker compose up and NOT crash / stop unexpectedly.

MindTooth commented 2 weeks ago

I experience this myself too:

$ docker compose up
...
signing_key_service-1        | /usr/bin/add_signing_service.sh: line 6: PULP_SIGNING_KEY_FINGERPRINT: unbound variable
service "signing_key_service" didn't complete successfully: exit 1
...
mikedep333 commented 2 weeks ago

Thank you for reporting this. We plan to work on it fairly soon.