ENTRYPOINT is used even when other commands are specified on the "docker run" command line. This allows running one-off commands in the docker image (especially combined with volume binding with the host) with the correct environment variables.pull/4447/head
parent
67c1cd4cb7
commit
cdbfdd8da8
3 changed files with 17 additions and 2 deletions
@ -0,0 +1,13 @@ |
|||||||
|
#!/bin/bash |
||||||
|
set -eu -o pipefail |
||||||
|
|
||||||
|
quote() { |
||||||
|
local arg |
||||||
|
for arg in "$@"; do |
||||||
|
printf "'" |
||||||
|
printf "%s" "$arg" | sed -e "s/'/'\\\\''/g" |
||||||
|
printf "' " |
||||||
|
done |
||||||
|
} |
||||||
|
|
||||||
|
exec scl enable devtoolset-1.1 "$(quote "$@")" |
Loading…
Reference in new issue