support -p to allow exposing ports
joscha opened this issue · 3 comments
joscha commented
I tried using the shell
option , but unfortunately the constructed command is still invalid:
[...] --label com.buildkite.job-id=c691aa38-56e7-4abb-8acc-8546b863420d my/image0 -p 80:8080 /bin/sh -e -c my/script.sh
it needs to be:
[...] --label com.buildkite.job-id=c691aa38-56e7-4abb-8acc-8546b863420d -p 80:8080 my/image0 /bin/sh -e -c my/script.sh
joscha commented
interestingly it looks like
docker-buildkite-plugin/hooks/command
Lines 306 to 318 in 5745e8f
- 'docker#v3.3.0':
image: 'my/image'
debug: false
shell:
- '-p'
- '80:8080'
- /bin/sh
- '-e'
- '-c'
workdir: /workdir
joscha commented
ah no, the shell args are added later on to the args
array:
docker-buildkite-plugin/hooks/command
Line 347 in 5745e8f
raw_args
option for the plugin?lox commented
Am I right in understanding you basically want a ports
property supported?