Skip to content

Commit

Permalink
fix: Add Dotnet 8 SDK (#23)
Browse files Browse the repository at this point in the history
Created Script to Install Dotnet 8 SDK for Runner image.
  • Loading branch information
JarenDamm authored Nov 29, 2023
1 parent 89835cd commit 7bfc5e4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s
COPY ./scripts ./scripts
RUN chmod +x ./scripts/*

# Install Dotnet 8 SDK
RUN ./scripts/install_dotnet8.sh
# Install gcloud CLI
RUN ./scripts/install_gcloud.sh
# Install AWS CLI
Expand Down
18 changes: 18 additions & 0 deletions scripts/install_dotnet8.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# Get Ubuntu version
declare repo_version=$(if command -v lsb_release &> /dev/null; then lsb_release -r -s; else grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'; fi)

# Download Microsoft signing key and repository
wget https://packages.microsoft.com/config/ubuntu/$repo_version/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

# Install Microsoft signing key and repository
sudo dpkg -i packages-microsoft-prod.deb

# Clean up
rm packages-microsoft-prod.deb

# Update packages
sudo apt update

apt-get install -y dotnet-sdk-8.0

0 comments on commit 7bfc5e4

Please sign in to comment.