Skip to content

Commit ca1fbee

Browse files
committed
fix: #52 Supressed warning for CMD using shell format.
1 parent 9937173 commit ca1fbee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

helix-p4d/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,7 @@ COPY p4-users /p4-users
5959
HEALTHCHECK --interval=1m --timeout=5s --start-period=30s \
6060
CMD p4 info
6161

62+
SHELL ["/bin/bash", "-c"]
6263
ENTRYPOINT ["/docker-entrypoint.sh"]
64+
# Using shell-form is required for ${P4PORT} to be correctly resolved (not working in JSON format).
6365
CMD gosu perforce p4d -p "${P4PORT}"

helix-swarm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ HEALTHCHECK --interval=1m --timeout=5s --start-period=30s \
5555
CMD supervisorctl status all
5656

5757
ENTRYPOINT ["/docker-entrypoint.sh"]
58-
CMD /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf
58+
CMD ["/usr/bin/supervisord", "--configuration", "/etc/supervisor/supervisord.conf"]

0 commit comments

Comments
 (0)