File tree Expand file tree Collapse file tree 7 files changed +57
-40
lines changed Expand file tree Collapse file tree 7 files changed +57
-40
lines changed Original file line number Diff line number Diff line change 1
1
# /bin/sh
2
- FILE=/var/log/cml_stack.log
3
- if [ ! -f " $FILE " ]; then
4
- export DEBIAN_FRONTEND=noninteractive
5
- PS4=' tpi:setup.sh: '
6
- set -x
7
- echo " APT::Get::Assume-Yes \" true\" ;" | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
2
+ PS4=' tpi:setup.sh: '
3
+ set -x
8
4
9
- sudo apt remove unattended-upgrades
10
- systemctl disable apt-daily-upgrade.service
5
+ export DEBIAN_FRONTEND=noninteractive
6
+ echo " APT::Get::Assume-Yes \" true \" ; " | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
11
7
8
+ sudo apt remove unattended-upgrades
9
+ systemctl disable apt-daily-upgrade.service
10
+
11
+ FILE=/var/log/cml_stack.log
12
+ if [ ! -f " $FILE " ]; then
12
13
sudo add-apt-repository universe -y
13
14
sudo add-apt-repository ppa:git-core/ppa -y
14
15
sudo apt update && sudo apt-get install -y software-properties-common build-essential git acpid
Original file line number Diff line number Diff line change @@ -343,6 +343,8 @@ export KUBERNETES_CONFIGURATION={{escape .KUBERNETES_CONFIGURATION}}
343
343
{{- end}}
344
344
{{- end}}
345
345
346
+ while lsof /var/lib/dpkg/lock; do sleep 1; done
347
+
346
348
{{- if .runner_startup_script}}
347
349
{{.runner_startup_script}}
348
350
{{- end}}
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
sudo systemctl is-enabled cml.service && return 0
3
- FILE=/var/log/cml_stack.log
4
- if [ ! -f " $FILE " ]; then
5
- export DEBIAN_FRONTEND=noninteractive
6
- PS4=' tpi:setup.sh: '
7
- set -x
8
- echo " APT::Get::Assume-Yes \" true\" ;" | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
3
+ PS4=' tpi:setup.sh: '
4
+ set -x
9
5
10
- sudo apt remove unattended-upgrades
11
- systemctl disable apt-daily-upgrade.service
6
+ export DEBIAN_FRONTEND=noninteractive
7
+ echo " APT::Get::Assume-Yes \" true \" ; " | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
12
8
9
+ sudo apt remove unattended-upgrades
10
+ systemctl disable apt-daily-upgrade.service
11
+
12
+ FILE=/var/log/cml_stack.log
13
+ if [ ! -f " $FILE " ]; then
13
14
sudo add-apt-repository universe -y
14
15
sudo add-apt-repository ppa:git-core/ppa -y
15
16
sudo apt update && sudo apt-get install -y software-properties-common build-essential git acpid
@@ -49,6 +50,8 @@ export AWS_SECRET_ACCESS_KEY='0 value with "quotes" and spaces'
49
50
export AWS_ACCESS_KEY_ID='1 value with "quotes" and spaces'
50
51
export AWS_SESSION_TOKEN='2 value with "quotes" and spaces'
51
52
53
+ while lsof /var/lib/dpkg/lock; do sleep 1; done
54
+
52
55
HOME="$(mktemp -d)" exec $(which cml-runner || echo $(which cml-internal || echo cml) runner) \
53
56
--name '10 value with "quotes" and spaces' \
54
57
--labels '16 value with "quotes" and spaces' \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
sudo systemctl is-enabled cml.service && return 0
3
- FILE=/var/log/cml_stack.log
4
- if [ ! -f " $FILE " ]; then
5
- export DEBIAN_FRONTEND=noninteractive
6
- PS4=' tpi:setup.sh: '
7
- set -x
8
- echo " APT::Get::Assume-Yes \" true\" ;" | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
3
+ PS4=' tpi:setup.sh: '
4
+ set -x
9
5
10
- sudo apt remove unattended-upgrades
11
- systemctl disable apt-daily-upgrade.service
6
+ export DEBIAN_FRONTEND=noninteractive
7
+ echo " APT::Get::Assume-Yes \" true \" ; " | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
12
8
9
+ sudo apt remove unattended-upgrades
10
+ systemctl disable apt-daily-upgrade.service
11
+
12
+ FILE=/var/log/cml_stack.log
13
+ if [ ! -f " $FILE " ]; then
13
14
sudo add-apt-repository universe -y
14
15
sudo add-apt-repository ppa:git-core/ppa -y
15
16
sudo apt update && sudo apt-get install -y software-properties-common build-essential git acpid
@@ -50,6 +51,8 @@ export AZURE_CLIENT_SECRET='4 value with "quotes" and spaces'
50
51
export AZURE_SUBSCRIPTION_ID='5 value with "quotes" and spaces'
51
52
export AZURE_TENANT_ID='6 value with "quotes" and spaces'
52
53
54
+ while lsof /var/lib/dpkg/lock; do sleep 1; done
55
+
53
56
HOME="$(mktemp -d)" exec $(which cml-runner || echo $(which cml-internal || echo cml) runner) \
54
57
--name '10 value with "quotes" and spaces' \
55
58
--labels '16 value with "quotes" and spaces' \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
sudo systemctl is-enabled cml.service && return 0
3
- FILE=/var/log/cml_stack.log
4
- if [ ! -f " $FILE " ]; then
5
- export DEBIAN_FRONTEND=noninteractive
6
- PS4=' tpi:setup.sh: '
7
- set -x
8
- echo " APT::Get::Assume-Yes \" true\" ;" | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
3
+ PS4=' tpi:setup.sh: '
4
+ set -x
9
5
10
- sudo apt remove unattended-upgrades
11
- systemctl disable apt-daily-upgrade.service
6
+ export DEBIAN_FRONTEND=noninteractive
7
+ echo " APT::Get::Assume-Yes \" true \" ; " | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
12
8
9
+ sudo apt remove unattended-upgrades
10
+ systemctl disable apt-daily-upgrade.service
11
+
12
+ FILE=/var/log/cml_stack.log
13
+ if [ ! -f " $FILE " ]; then
13
14
sudo add-apt-repository universe -y
14
15
sudo add-apt-repository ppa:git-core/ppa -y
15
16
sudo apt update && sudo apt-get install -y software-properties-common build-essential git acpid
@@ -48,6 +49,8 @@ sudo tee /usr/bin/cml.sh << 'EOF'
48
49
export GOOGLE_APPLICATION_CREDENTIALS_DATA=''
49
50
export CML_GCP_ACCESS_TOKEN=''
50
51
52
+ while lsof /var/lib/dpkg/lock; do sleep 1; done
53
+
51
54
HOME="$(mktemp -d)" exec $(which cml-runner || echo $(which cml-internal || echo cml) runner) \
52
55
--name '10 value with "quotes" and spaces' \
53
56
--labels '16 value with "quotes" and spaces' \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
sudo systemctl is-enabled cml.service && return 0
3
- FILE=/var/log/cml_stack.log
4
- if [ ! -f " $FILE " ]; then
5
- export DEBIAN_FRONTEND=noninteractive
6
- PS4=' tpi:setup.sh: '
7
- set -x
8
- echo " APT::Get::Assume-Yes \" true\" ;" | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
3
+ PS4=' tpi:setup.sh: '
4
+ set -x
9
5
10
- sudo apt remove unattended-upgrades
11
- systemctl disable apt-daily-upgrade.service
6
+ export DEBIAN_FRONTEND=noninteractive
7
+ echo " APT::Get::Assume-Yes \" true \" ; " | sudo tee -a /etc/apt/apt.conf.d/90assumeyes
12
8
9
+ sudo apt remove unattended-upgrades
10
+ systemctl disable apt-daily-upgrade.service
11
+
12
+ FILE=/var/log/cml_stack.log
13
+ if [ ! -f " $FILE " ]; then
13
14
sudo add-apt-repository universe -y
14
15
sudo add-apt-repository ppa:git-core/ppa -y
15
16
sudo apt update && sudo apt-get install -y software-properties-common build-essential git acpid
@@ -46,6 +47,8 @@ sudo npm config set user 0 && sudo npm install --global 18 value with "quotes" a
46
47
sudo tee /usr/bin/cml.sh << 'EOF '
47
48
#!/bin/sh
48
49
50
+ while lsof /var/lib/dpkg/lock; do sleep 1; done
51
+
49
52
HOME="$(mktemp -d)" exec $(which cml-runner || echo $(which cml-internal || echo cml) runner) \
50
53
--name '10 value with "quotes" and spaces' \
51
54
--labels '16 value with "quotes" and spaces' \
Original file line number Diff line number Diff line change 2
2
sudo systemctl is-enabled cml.service && return 0
3
3
export KUBERNETES_CONFIGURATION=' 8 value with "quotes" and spaces'
4
4
5
+ while lsof /var/lib/dpkg/lock; do sleep 1; done
6
+
5
7
HOME=" $( mktemp -d) " exec $( which cml-runner || echo $( which cml-internal || echo cml) runner) \
6
8
--name ' 10 value with "quotes" and spaces' \
7
9
--labels ' 16 value with "quotes" and spaces' \
You can’t perform that action at this time.
0 commit comments