Skip to content

Commit

Permalink
Fix azurelinux image test (#1195)
Browse files Browse the repository at this point in the history
Co-authored-by: Manikanta Nallagatla <[email protected]>
  • Loading branch information
manikantanallagatla and Manikanta Nallagatla authored Jan 30, 2025
1 parent 3c9f905 commit 6f896ab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ const dockerFile = (function() {
fileName = "test-alpine.Dockerfile";
} else if (imageName.indexOf("mariner") !== -1) {
fileName = "test-mariner.Dockerfile";
}else if (imageName.indexOf("azurelinux") !== -1) {
fileName = "test-azurelinux.Dockerfile";
}

return path.join(__dirname, fileName);
Expand Down
14 changes: 14 additions & 0 deletions test/test-azurelinux.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG BASE_IMAGE
ARG CONTENT_URL
FROM ${BASE_IMAGE}

ARG CONTENT_URL

ENV AzureFunctionsJobHost__Logging__Console__IsEnabled=true

RUN curl -O https://packages.microsoft.com/azurelinux/3.0/prod/base/x86_64/Packages/u/unzip-6.0-21.azl3.x86_64.rpm
RUN tdnf install -y unzip-6.0-21.azl3.x86_64.rpm

RUN curl -o content.zip "${CONTENT_URL}" && \
mkdir -p /home/site/wwwroot && \
yes | unzip -q content.zip -d /home/site/wwwroot

0 comments on commit 6f896ab

Please sign in to comment.