Skip to content

Commit

Permalink
add docker test file
Browse files Browse the repository at this point in the history
  • Loading branch information
AnakinRaW committed Dec 17, 2024
1 parent 36aac4a commit 9d11058
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0

RUN wget https://aka.ms/getvsdbgsh && \
sh getvsdbgsh -v latest -l /vsdbg

ENV MONO_VERSION 6.12.0.200

RUN apt-get update \
&& apt-get install -y --no-install-recommends gnupg dirmngr ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
&& gpg --batch --export --armor 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF > /etc/apt/trusted.gpg.d/mono.gpg.asc \
&& gpgconf --kill all \
&& rm -rf "$GNUPGHOME" \
&& apt-key list | grep Xamarin \
&& apt-get purge -y --auto-remove gnupg dirmngr

RUN echo "deb https://download.mono-project.com/repo/debian stable-buster/snapshots/$MONO_VERSION main" > /etc/apt/sources.list.d/mono-official-stable.list \
&& apt-get update \
&& apt-get install -y mono-runtime \
&& rm -rf /var/lib/apt/lists/* /tmp/*
7 changes: 6 additions & 1 deletion testEnvironments.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"version": "1",
"environments": [
{
"name": "Ubuntu",
"name": "WSL Ubuntu",
"type": "wsl",
"wslDistribution": "Ubuntu-22.04"
},
{
"name": "linux dotnet-core-sdk",
"type": "docker",
"dockerFile": "Dockerfile.test"
}
]
}

0 comments on commit 9d11058

Please sign in to comment.