Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated core image docker file #63

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Runner-Images/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
# Change Log

## Version 4.0.0-preview
Updated Azure CLI base image moving from [Alpine to Mariner Linux](https://techcommunity.microsoft.com/blog/azuretoolsblog/azure-cli-docker-container-base-linux-image-is-now-azure-linux/4236248). Has the potential to break new builds. Namely, commands such as `apk add` will likely fail. To fix the issue, use `tdnf install` to install all packages. For example:

Before:
```dockerfile
RUN apk add curl
```

After:
```dockerfile
RUN apk add curl || \
(echo "Failed to install curl with apk, trying with tdnf" && \
tdnf install -y tar gzip && \
tdnf install -y curl)
```

## Version 2.9.0-preview
Fixed a number of bugs around output type serialization, and added the 'ade upgrade' functionality to ensure up-to-date CLI actions regardless of the base image.
10 changes: 7 additions & 3 deletions Runner-Images/Core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

FROM mcr.microsoft.com/azure-cli:latest
FROM mcr.microsoft.com/azure-cli:2.67.0
WORKDIR /

ARG IMAGE_VERSION

# Metadata as defined at http://label-schema.org
ARG BUILD_DATE

# Add jq for parsing JSON
RUN apk add jq
# Install jq, dos2unix, libicu, wget & unzip
RUN tdnf install -y jq
RUN tdnf install -y dos2unix
RUN tdnf install -y libicu
RUN tdnf install -y wget
RUN tdnf install -y unzip

COPY entrypoint.sh /entrypoint.sh
COPY shared/* /shared/
Expand Down