Skip to content

Commit a5d8ed1

Browse files
committed
fix: chmod +x vendored scripts to fix Permission denied on /entrypoint.sh\n\nAll .sh files were committed as 100644 (non-executable). The Helm chart\nconfigmap scripts (replicaset-entrypoint.sh, mongos-entrypoint.sh) call\nexec /entrypoint.sh, which is a symlink to the vendored entrypoint.\nWithout the execute bit, containers crash with:\n /entrypoint.sh: Permission denied\n\nAdd a RUN layer after COPY rootfs to chmod a+x all scripts."
1 parent d846f1d commit a5d8ed1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

solution-base/images/mongodb-sharded/8.0/debian-12/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ RUN ln -s /opt/bitnami/scripts/liblog.sh /liblog.sh
6565
RUN ln -s /opt/bitnami/scripts/mongodb-sharded/run.sh /run.sh
6666

6767
COPY rootfs /
68+
RUN find /opt/bitnami/scripts -name "*.sh" -exec chmod a+x {} +
6869
RUN /bin/bash /opt/bitnami/scripts/mongodb-sharded/postunpack.sh
6970
ENV APP_VERSION="8.0.13" \
7071
BITNAMI_APP_NAME="mongodb-sharded" \

solution-base/images/mongodb-sharded/8.2/debian-12/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ RUN ln -s /opt/bitnami/scripts/liblog.sh /liblog.sh
6565
RUN ln -s /opt/bitnami/scripts/mongodb-sharded/run.sh /run.sh
6666

6767
COPY rootfs /
68+
RUN find /opt/bitnami/scripts -name "*.sh" -exec chmod a+x {} +
6869
RUN /bin/bash /opt/bitnami/scripts/mongodb-sharded/postunpack.sh
6970
ENV APP_VERSION="8.2.6" \
7071
BITNAMI_APP_NAME="mongodb-sharded" \

0 commit comments

Comments
 (0)