File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66# fail hard and fast even on pipelines
77set -eo pipefail
88
9- source /etc/environment_proxy
9+ if [[ -f /etc/environment_proxy ]]; then
10+ source /etc/environment_proxy
11+ fi
1012
1113# set debug based on envvar
1214[[ $DEBUG ]] && set -x
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -eo pipefail
33
4- source /etc/environment_proxy
4+ if [[ -f /etc/environment_proxy ]]; then
5+ source /etc/environment_proxy
6+ fi
57
68# START jpetazzo/dind wrapper
79
810# First, make sure that cgroups are mounted correctly.
911CGROUP=/sys/fs/cgroup
1012
11- [ -d $CGROUP ] ||
13+ [ -d $CGROUP ] ||
1214 mkdir $CGROUP
1315
14- mountpoint -q $CGROUP ||
16+ mountpoint -q $CGROUP ||
1517 mount -n -t tmpfs -o uid=0,gid=0,mode=0755 cgroup $CGROUP || {
1618 echo " Could not make a tmpfs mount. Did you use -privileged?"
1719 exit 1
2931for SUBSYS in $( cut -d: -f2 /proc/1/cgroup)
3032do
3133 [ -d $CGROUP /$SUBSYS ] || mkdir $CGROUP /$SUBSYS
32- mountpoint -q $CGROUP /$SUBSYS ||
34+ mountpoint -q $CGROUP /$SUBSYS ||
3335 mount -n -t cgroup -o $SUBSYS cgroup $CGROUP /$SUBSYS
3436
3537 # The two following sections address a bug which manifests itself
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -eo pipefail
33
4- source /etc/environment_proxy
4+ if [[ -f /etc/environment_proxy ]]; then
5+ source /etc/environment_proxy
6+ fi
57
68if [[ " $1 " == " -" ]]; then
79 slug_file=" $1 "
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -eo pipefail
33
4- source /etc/environment_proxy
4+ if [[ -f /etc/environment_proxy ]]; then
5+ source /etc/environment_proxy
6+ fi
57
68# # Load slug from Bind Mount, URL or STDIN
79
You can’t perform that action at this time.
0 commit comments