Unverified Commit 4e71ed62 authored by Yuge Zhang's avatar Yuge Zhang Committed by GitHub
Browse files

Migrate pipeline to 1ES (#4986)

parent 570448ea
......@@ -3,6 +3,8 @@
"type": "azure-arm",
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"subscription_id": "<subscription_id>",
"managed_image_name": "<managed_image_name>",
"managed_image_resource_group_name": "<resource_group>",
......@@ -20,7 +22,7 @@
"gallery_name": "<gallery_name>",
"image_name": "<image_name>",
"image_version": "<image_version>",
"replication_regions": ["southeastasia", "westus2"],
"replication_regions": ["southeastasia", "westus2", "eastus"],
"storage_account_type": "Standard_LRS"
},
......
......@@ -3,6 +3,8 @@
"type": "azure-arm",
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"subscription_id": "<subscription_id>",
"managed_image_name": "<managed_image_name>",
"managed_image_resource_group_name": "<resource_group>",
......@@ -18,7 +20,7 @@
"gallery_name": "<gallery_name>",
"image_name": "<image_name>",
"image_version": "<image_version>",
"replication_regions": ["southeastasia", "westus2"],
"replication_regions": ["southeastasia", "westus2", "eastus"],
"storage_account_type": "Standard_LRS"
},
......
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment