Skip to content

Commit

Permalink
Docker images: pass tags to init scripts
Browse files Browse the repository at this point in the history
Backport to release-1.9
  • Loading branch information
stsnel committed Mar 4, 2024
1 parent 34413f8 commit cd5d7fb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docker/images/davrods/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ COPY footer.html /etc/httpd/irods/footer.html
VOLUME [ "/sys/fs/cgroup" ]
COPY davrods_init.sh /var/lib/irods/scripts/davrods_init.sh
RUN chmod 0755 /var/lib/irods/scripts/davrods_init.sh
CMD ["/var/lib/irods/scripts/davrods_init.sh", "${TAG}"]
ENV TAG=${TAG}
CMD exec /var/lib/irods/scripts/davrods_init.sh $TAG

Check warning on line 66 in docker/images/davrods/Dockerfile

View workflow job for this annotation

GitHub Actions / build

Use arguments JSON notation for CMD and ENTRYPOINT arguments
3 changes: 2 additions & 1 deletion docker/images/yoda_eus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ RUN cp -Rdp /var/www/extuser /var/www/extuser-copy
VOLUME [ "/sys/fs/cgroup" ]
COPY yoda_eus_init.sh /var/lib/irods/scripts/yoda_eus_init.sh
RUN chmod 0755 /var/lib/irods/scripts/yoda_eus_init.sh
CMD ["/var/lib/irods/scripts/yoda_eus_init.sh", "${TAG}"]
ENV TAG=${TAG}
CMD exec /var/lib/irods/scripts/yoda_eus_init.sh $TAG

Check warning on line 75 in docker/images/yoda_eus/Dockerfile

View workflow job for this annotation

GitHub Actions / build

Use arguments JSON notation for CMD and ENTRYPOINT arguments
3 changes: 2 additions & 1 deletion docker/images/yoda_irods_icat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,5 @@ COPY irods-icat-init.sh /var/lib/irods/scripts/irods-icat-init.sh
RUN chmod 0755 /var/lib/irods/scripts/irods-icat-init.sh

VOLUME [ "/sys/fs/cgroup" ]
CMD ["/var/lib/irods/scripts/irods-icat-init.sh", "${TAG}"]
ENV TAG=${TAG}
CMD exec /var/lib/irods/scripts/irods-icat-init.sh $TAG

Check warning on line 187 in docker/images/yoda_irods_icat/Dockerfile

View workflow job for this annotation

GitHub Actions / build

Use arguments JSON notation for CMD and ENTRYPOINT arguments
3 changes: 2 additions & 1 deletion docker/images/yoda_portal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ RUN cp -Rdp /var/www/yoda /var/www/yoda-copy
VOLUME [ "/sys/fs/cgroup" ]
COPY yoda_portal_init.sh /var/lib/irods/scripts/yoda_portal_init.sh
RUN chmod 0755 /var/lib/irods/scripts/yoda_portal_init.sh
CMD ["/var/lib/irods/scripts/yoda_portal_init.sh", "${TAG}"]
ENV TAG=${TAG}
CMD exec /var/lib/irods/scripts/yoda_portal_init.sh $TAG

Check warning on line 60 in docker/images/yoda_portal/Dockerfile

View workflow job for this annotation

GitHub Actions / build

Use arguments JSON notation for CMD and ENTRYPOINT arguments
3 changes: 2 additions & 1 deletion docker/images/yoda_public/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ RUN cp -Rdp /var/www/moai/yoda-moai /var/www/moai/yoda-moai-copy
VOLUME [ "/sys/fs/cgroup" ]
COPY yoda_public_init.sh /yoda_public_init.sh
RUN chmod 0755 /yoda_public_init.sh
CMD ["/yoda_public_init.sh", "${TAG}"]
ENV TAG=${TAG}
CMD exec /yoda_public_init.sh $TAG

Check warning on line 101 in docker/images/yoda_public/Dockerfile

View workflow job for this annotation

GitHub Actions / build

Use arguments JSON notation for CMD and ENTRYPOINT arguments
4 changes: 3 additions & 1 deletion docker/images/yoda_web_mock/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ RUN cp -Rdp /var/www/webmock/yoda-web-mock /var/www/webmock/yoda-web-mock-copy
VOLUME [ "/sys/fs/cgroup" ]
COPY yoda_web_mock_init.sh /yoda_web_mock_init.sh
RUN chmod 0755 /yoda_web_mock_init.sh
CMD ["/yoda_web_mock_init.sh", "${TAG}"]
ENV TAG=${TAG}
CMD exec /yoda_web_mock_init.sh $TAG

Check warning on line 63 in docker/images/yoda_web_mock/Dockerfile

View workflow job for this annotation

GitHub Actions / build

Use arguments JSON notation for CMD and ENTRYPOINT arguments

0 comments on commit cd5d7fb

Please sign in to comment.