Skip to content
Merged
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
35 changes: 29 additions & 6 deletions 10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
FROM cimg/base:current@sha256:914f8f3896bc4033634a446552a8c256f19fdb56aa4e999cf493961d0681bc48

RUN sudo add-apt-repository ppa:dotnet/previews && \
sudo apt-get update && \
sudo apt-get -y install gettext-base dotnet-sdk-10.0
# Install GPG and import Microsoft's public key for dotnet-install script verification
RUN sudo apt-get update && \
sudo apt-get -y install gpg && \
sudo rm -rf /var/lib/apt/lists/* && \
# Download and import Microsoft's public key
wget https://dot.net/v1/dotnet-install.asc && \
gpg --import dotnet-install.asc && \
rm dotnet-install.asc

# Install trx2junit to be used during build
RUN dotnet tool install -g trx2junit
# Download, verify, and install .NET SDK 10.0
RUN wget https://dot.net/v1/dotnet-install.sh && \
wget https://dot.net/v1/dotnet-install.sig && \
# Verify the GPG signature
gpg --verify dotnet-install.sig dotnet-install.sh && \
# Make script executable and run installation
chmod +x dotnet-install.sh && \
sudo ./dotnet-install.sh --channel 10.0 --install-dir /usr/share/dotnet && \
# Cleanup
rm dotnet-install.sh dotnet-install.sig && \
sudo ln -s /usr/share/dotnet/dotnet /usr/local/bin/dotnet

RUN sudo apt-get update && \
sudo apt-get -y install gettext-base && \
sudo rm -rf /var/lib/apt/lists/*

ENV PATH="${PATH}:/home/circleci/.dotnet/tools"
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 \
DOTNET_ROOT=/usr/share/dotnet \
PATH="${PATH}:/home/circleci/.dotnet/tools"

# Install trx2junit to be used during build
RUN dotnet tool install -g trx2junit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ List of image tags:
| 7 | cimg/base:current | Circle CI base image with .NET `dotnet-sdk-7.0` installed from Microsofts's package repository. Supports buildx used by `aws-ecr` orb. |
| 8 | cimg/base:current | Circle CI base image with .NET `dotnet-sdk-8.0` installed from Microsofts's package repository. Supports buildx used by `aws-ecr` orb. |
| 9 | cimg/base:current | Circle CI base image with .NET `dotnet-sdk-9.0` installed from Ubuntu's package repository (backport ppa needed for 22.04). Supports buildx used by `aws-ecr` orb. |
| 10 | cimg/base:current | Circle CI base image with .NET `dotnet-sdk-10` installed from Ubuntu's ppa:dotnet/preview repository starting with `rc.1`. Will transition to stable as it becomes available. Supports buildx used by `aws-ecr` orb. |
| 10 | cimg/base:current | Circle CI base image with .NET SDK 10.0 installed via `dotnet-install.sh` w/ signature verification. Supports buildx used by `aws-ecr` orb. |

# This image is built in Dockerhub