Skip to content

Commit

Permalink
Update .NET version support to include 9.0 and enhance Dockerfile setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PixNyb committed Jan 2, 2025
1 parent 4b4ff15 commit 19b98cb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The repository also builds development containers with additional software and e
| Web | [`node`](profiles/src/node/) | Includes NVM and installs the latest version of node. |
| Web | [`php-<version>`](profiles/src/php/) | Includes PHP and Composer. (Available versions: `7.2`, `7.3`, `7.4`, `8.0`, `8.1`, `8.2`, `8.3`) |
| Web | [`php-<version>-node`](profiles/src/php/) | Includes PHP, Composer, and NVM. (Available versions: `7.2`, `7.3`, `7.4`, `8.0`, `8.1`, `8.2`, `8.3`) |
| Web | [`dotnet-<version>`](profiles/src/dotnet/) | Includes .NET SDK and runtime. (Available versions: `8.0`) |
| Web | [`dotnet-<version>`](profiles/src/dotnet/) | Includes .NET SDK and runtime. (Available versions: `8.0`, `9.0`) |
| Native | [`java-<version>`](profiles/src/java/) | Includes OpenJDK, Gradle, Maven and Ant. (Available versions: `8`, `11`, `17`, `21`) |
| Native | [`cpp`](profiles/src/cpp/) | Includes CMake, GCC, Clang, GDB and Valgrind. |
| Native | [`python-<version>`](profiles/src/python/) | Includes Python, Pip and venv. (Available versions: `3`) |
Expand Down
1 change: 1 addition & 0 deletions code/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
locales \
msmtp-mta \
openbox \
rxvt-unicode qutebrowser \
less mandoc \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*

Expand Down
13 changes: 7 additions & 6 deletions profiles/src/dotnet/.Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ FROM pixnyb/%image% AS base

USER root

RUN source /etc/os-release \
&& wget https://packages.microsoft.com/config/$ID/$VERSION_ID/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
&& apt update -y && apt upgrade -y \
&& apt install -y dotnet-sdk-%dotnet-version%
ENV PATH=$PATH:/home/vscode/.dotnet:/home/vscode/.dotnet/tools

COPY bin/dotnet/* /usr/local/bin
RUN chmod +x /usr/local/bin/*
Expand All @@ -19,4 +14,10 @@ ENV WITH_NODE=false

USER vscode

RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install \
&& chmod +x ./dotnet-install \
&& ./dotnet-install --channel %dotnet-version% \
&& ls -l $HOME/.dotnet \
&& dotnet --list-sdks

EXPOSE 80
2 changes: 1 addition & 1 deletion profiles/src/dotnet/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DOCKERFILE := .Dockerfile.template
DOTNET_VERSIONS := 8.0
DOTNET_VERSIONS := 9.0 8.0

.PHONY: all
all:
Expand Down

0 comments on commit 19b98cb

Please sign in to comment.