Container crashes on startup due to missing file
Summary
The source container uses gosu to run postgres. The Iron Bank container did not copy this from the source container resulting in the container crashing when started. The correct gosu copy exists in the Postgres 15 dockerfile: https://repo1.dso.mil/dsop/opensource/postgres/postgresql15/-/blob/development/Dockerfile#L26
Steps to reproduce
- Pull postgres image
- Try to run the image
What is the current bug behavior?
The container crashes right away after startup. The container is missing gosu, it was not copied from the source container
What is the expected correct behavior?
The container starts as expected
Relevant logs and/or screenshots
/usr/local/bin/docker-entrypoint.sh: line 308: exec: gosu: not found
Possible fixes
Copy gosu from the source container like is done in Postgres 15: https://repo1.dso.mil/dsop/opensource/postgres/postgresql15/-/blob/development/Dockerfile#L26
Tasks
-
Bug has been identified and corrected within the container
Please read the Iron Bank Documentation for more info