From 0b9f68c13626e2e15d916d1565191501b2e0efc5 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Wed, 15 May 2024 08:49:02 -0500 Subject: [PATCH] Add Ubuntu 20.04 arm64 support (#1056) --- src/ubuntu/20.04/{amd64 => }/Dockerfile | 7 ++++--- src/ubuntu/manifest.json | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) rename src/ubuntu/20.04/{amd64 => }/Dockerfile (81%) diff --git a/src/ubuntu/20.04/amd64/Dockerfile b/src/ubuntu/20.04/Dockerfile similarity index 81% rename from src/ubuntu/20.04/amd64/Dockerfile rename to src/ubuntu/20.04/Dockerfile index e136ef7c..0f1bc7f7 100644 --- a/src/ubuntu/20.04/amd64/Dockerfile +++ b/src/ubuntu/20.04/Dockerfile @@ -30,9 +30,10 @@ RUN apt-get update \ # .NET SDK MSBuild requires US.UTF-8 locale to execute tasks RUN locale-gen en_US.UTF-8 -# Install Azure CLI -RUN curl -L -o azure-cli_focal_all.deb https://aka.ms/InstallAzureCliFocalEdge \ - && dpkg -i azure-cli_focal_all.deb +# Install Azure CLI - https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#option-1-install-with-one-command +RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash \ + # Install script does apt-get update and install, so we need to clean up after it. + && rm -rf /var/lib/apt/lists/* # Runtime dependencies RUN apt-get update \ diff --git a/src/ubuntu/manifest.json b/src/ubuntu/manifest.json index 9fb35664..07bc2f67 100644 --- a/src/ubuntu/manifest.json +++ b/src/ubuntu/manifest.json @@ -96,7 +96,7 @@ { "platforms": [ { - "dockerfile": "src/ubuntu/20.04/amd64", + "dockerfile": "src/ubuntu/20.04", "os": "linux", "osVersion": "focal", "tags": { @@ -109,6 +109,21 @@ } ] }, + { + "platforms": [ + { + "architecture": "arm64", + "dockerfile": "src/ubuntu/20.04", + "os": "linux", + "osVersion": "focal", + "tags": { + "ubuntu-20.04-arm64-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}, + "ubuntu-20.04-arm64$(FloatingTagSuffix)": {} + }, + "variant": "v8" + } + ] + }, { "platforms": [ {