11 lines
294 B
Bash
Executable File
11 lines
294 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
: "${JENKINS_NODE_PASSWORD:?JENKINS_NODE_PASSWORD is required}"
|
|
|
|
printf '%s\n' "$JENKINS_NODE_PASSWORD" | sudo -S -p '' -v
|
|
|
|
sudo -n -- \
|
|
/usr/bin/env "DOCKER_CONFIG=${DOCKER_CONFIG:-}" "DOCKER_BUILDKIT=${DOCKER_BUILDKIT:-}" \
|
|
/usr/bin/docker "$@"
|