Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
4e71ed62
"vscode:/vscode.git/clone" did not exist on "0521a0c2fa6e64b63d46e1840f9fdbaec989704e"
Unverified
Commit
4e71ed62
authored
Jul 08, 2022
by
Yuge Zhang
Committed by
GitHub
Jul 08, 2022
Browse files
Migrate pipeline to 1ES (#4986)
parent
570448ea
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
2 deletions
+46
-2
test/vso_tools/build_vm/config_linux.json
test/vso_tools/build_vm/config_linux.json
+3
-1
test/vso_tools/build_vm/config_windows.json
test/vso_tools/build_vm/config_windows.json
+3
-1
test/vso_tools/build_vm/disable_apt_daily.sh
test/vso_tools/build_vm/disable_apt_daily.sh
+40
-0
No files found.
test/vso_tools/build_vm/config_linux.json
View file @
4e71ed62
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
"type"
:
"azure-arm"
,
"type"
:
"azure-arm"
,
"client_id"
:
"<client_id>"
,
"client_id"
:
"<client_id>"
,
"client_secret"
:
"<client_secret>"
,
"subscription_id"
:
"<subscription_id>"
,
"managed_image_name"
:
"<managed_image_name>"
,
"managed_image_name"
:
"<managed_image_name>"
,
"managed_image_resource_group_name"
:
"<resource_group>"
,
"managed_image_resource_group_name"
:
"<resource_group>"
,
...
@@ -20,7 +22,7 @@
...
@@ -20,7 +22,7 @@
"gallery_name"
:
"<gallery_name>"
,
"gallery_name"
:
"<gallery_name>"
,
"image_name"
:
"<image_name>"
,
"image_name"
:
"<image_name>"
,
"image_version"
:
"<image_version>"
,
"image_version"
:
"<image_version>"
,
"replication_regions"
:
[
"southeastasia"
,
"westus2"
],
"replication_regions"
:
[
"southeastasia"
,
"westus2"
,
"eastus"
],
"storage_account_type"
:
"Standard_LRS"
"storage_account_type"
:
"Standard_LRS"
},
},
...
...
test/vso_tools/build_vm/config_windows.json
View file @
4e71ed62
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
"type"
:
"azure-arm"
,
"type"
:
"azure-arm"
,
"client_id"
:
"<client_id>"
,
"client_id"
:
"<client_id>"
,
"client_secret"
:
"<client_secret>"
,
"subscription_id"
:
"<subscription_id>"
,
"managed_image_name"
:
"<managed_image_name>"
,
"managed_image_name"
:
"<managed_image_name>"
,
"managed_image_resource_group_name"
:
"<resource_group>"
,
"managed_image_resource_group_name"
:
"<resource_group>"
,
...
@@ -18,7 +20,7 @@
...
@@ -18,7 +20,7 @@
"gallery_name"
:
"<gallery_name>"
,
"gallery_name"
:
"<gallery_name>"
,
"image_name"
:
"<image_name>"
,
"image_name"
:
"<image_name>"
,
"image_version"
:
"<image_version>"
,
"image_version"
:
"<image_version>"
,
"replication_regions"
:
[
"southeastasia"
,
"westus2"
],
"replication_regions"
:
[
"southeastasia"
,
"westus2"
,
"eastus"
],
"storage_account_type"
:
"Standard_LRS"
"storage_account_type"
:
"Standard_LRS"
},
},
...
...
test/vso_tools/build_vm/disable_apt_daily.sh
0 → 100755
View file @
4e71ed62
#!/bin/bash
# Disable the periodical apt-get upgrade, as it will break the GPU driver.
sed
-i
-e
"s/Update-Package-Lists
\"
1
\"
/Update-Package-Lists
\"
0
\"
/g"
/etc/apt/apt.conf.d/10periodic
sed
-i
-e
"s/Update-Package-Lists
\"
1
\"
/Update-Package-Lists
\"
0
\"
/g"
/etc/apt/apt.conf.d/20auto-upgrades
sed
-i
-e
"s/Unattended-Upgrade
\"
1
\"
/Unattended-Upgrade
\"
0
\"
/g"
/etc/apt/apt.conf.d/20auto-upgrades
systemctl disable apt-daily.timer
systemctl disable apt-daily.service
systemctl disable apt-daily-upgrade.timer
systemctl disable apt-daily-upgrade.service
# In case the trick above doesn't work, try to uncomment the following lines.
# References: https://gist.github.com/posilva/1cefb5bf1eeccf9382920e5d57a4b3fe
# apt-get -y purge update-notifier-common ubuntu-release-upgrader-core landscape-common unattended-upgrades
# systemctl kill --kill-who=all apt-daily.service
# systemctl kill --kill-who=all apt-daily-upgrade.service
# systemctl stop apt-daily.timer
# systemctl disable apt-daily.timer
# systemctl stop apt-daily.service
# systemctl disable apt-daily.service
# systemctl stop apt-daily-upgrade.timer
# systemctl disable apt-daily-upgrade.timer
# systemctl stop apt-daily-upgrade.service
# systemctl disable apt-daily-upgrade.service
# systemctl daemon-reload
# systemctl reset-failed
# rm /etc/systemd/system/timers.target.wants/apt-daily.timer
# rm /etc/systemd/system/timers.target.wants/apt-daily-upgrade.timer
# mv /usr/lib/apt/apt.systemd.daily /usr/lib/apt/apt.systemd.daily.DISABLED
# mv /lib/systemd/system/apt-daily.service /lib/systemd/system/apt-daily.service.DISABLED
# mv /lib/systemd/system/apt-daily.timer /lib/systemd/system/apt-daily.timer.DISABLED
# mv /lib/systemd/system/apt-daily-upgrade.service /lib/systemd/system/apt-daily-upgrade.service.DISABLED
# mv /lib/systemd/system/apt-daily-upgrade.timer /lib/systemd/system/apt-daily-upgrade.timer.DISABLED
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment