Skip to content

Commit 5f62a02

Browse files
authored
Use sudo when installing CML on runners (#111)
1 parent 15bfe27 commit 5f62a02

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

iterative/resource_runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
272272
{{end}}
273273
274274
{{if not .container}}
275-
sudo npm install -g git+https://github.com/iterative/cml.git
275+
sudo npm config set user 0 && sudo npm install --global @dvcorg/cml
276276
{{end}}
277277
278278
{{if .runner_startup_script}}

iterative/testdata/script_template_cloud_aws.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
3131

3232

3333

34-
sudo npm install -g git+https://github.com/iterative/cml.git
34+
sudo npm config set user 0 && sudo npm install --global @dvcorg/cml
3535

3636

3737

iterative/testdata/script_template_cloud_azure.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
3131

3232

3333

34-
sudo npm install -g git+https://github.com/iterative/cml.git
34+
sudo npm config set user 0 && sudo npm install --global @dvcorg/cml
3535

3636

3737

iterative/testdata/script_template_cloud_invalid.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
3131

3232

3333

34-
sudo npm install -g git+https://github.com/iterative/cml.git
34+
sudo npm config set user 0 && sudo npm install --global @dvcorg/cml
3535

3636

3737

0 commit comments

Comments
 (0)