Skip to content

Commit afcd74f

Browse files
committed
pgadmin: make the container entrypoint executable (image smoke)
COPY preserves the non-executable mode 644 from the OBS payload source file, causing crun to refuse execution of the entrypoint. Add explicit chmod 0755 RUN layer after COPY to make the file executable in the image, and chmod +x the source file to track the correct mode in git (belt and braces). Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
1 parent 01ec8a1 commit afcd74f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

root/ppg/devel/pgadmin/containers/percona-pgadmin4/obs/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ RUN usermod -u 5050 -aG 0 pgadmin && \
4040
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
4141
COPY LICENSE /licenses/LICENSE.Dockerfile
4242

43+
RUN chmod 0755 /usr/local/bin/entrypoint.sh
44+
4345
# Overridable defaults: docker/podman -e wins over ENV, and the RPM's
4446
# config_distro.py applies PGADMIN_CONFIG_* at every import (better than
4547
# upstream's bake-once). pg-13 stays unset: no PG 13 in the Percona tree.

root/ppg/devel/pgadmin/containers/percona-pgadmin4/obs/entrypoint.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)