-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SNOW-1360070 upgrade docker container to Ubuntu 20.04 dotnet 8 (#940)
### Description - Upgrade docker file to build cent os 8 with dotnet 8 framework - Update jenkins file to reference new container - Update .csproj to compile with dotnet 8 ### Checklist - [x] Code compiles correctly - [x] Code is formatted according to [Coding Conventions](../blob/master/CodingConventions.md) - [x] Created tests which fail without the change (if possible) - [x] All tests passing (`dotnet test`) - [x] Extended the README / documentation, if necessary - [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name
- Loading branch information
1 parent
0c19e2d
commit abb5c4a
Showing
11 changed files
with
98 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Use the official Ubuntu base image from Docker Hub | ||
FROM ubuntu:20.04 | ||
|
||
USER root | ||
WORKDIR / | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# create dir for workspace | ||
RUN mkdir -p /home/user | ||
RUN chmod 777 /home/user | ||
|
||
# Update packages and install any desired dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y | ||
RUN apt-get install -y wget | ||
RUN apt-get install -y apt-transport-https | ||
RUN apt-get install -y build-essential | ||
RUN apt-get install -y libpng-dev | ||
RUN apt-get install -y libtiff-dev | ||
RUN apt-get install -y libjpeg-dev | ||
RUN apt-get install -y libx11-dev | ||
RUN apt-get install -y libgl1-mesa-dev | ||
RUN apt-get install -y libglu1-mesa-dev | ||
RUN apt-get install -y gcc | ||
RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
RUN dpkg -i packages-microsoft-prod.deb | ||
|
||
# install basic tools | ||
RUN apt-get install -y git | ||
RUN apt-get install -y zstd | ||
RUN apt-get install -y jq | ||
|
||
# Install .NET SDK 8.0 | ||
RUN apt-get update | ||
RUN apt-get install -y | ||
RUN apt-get install -y dotnet-sdk-6.0 | ||
RUN apt-get install -y dotnet-sdk-8.0 | ||
|
||
# gosu | ||
RUN wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.14/gosu-$(dpkg --print-architecture)" && \ | ||
chmod +x /usr/local/bin/gosu && \ | ||
|
||
# clean up | ||
RUN apt-get clean | ||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
# workspace | ||
RUN mkdir -p /home/user && \ | ||
chmod 777 /home/user | ||
WORKDIR /home/user | ||
|
||
# entry point | ||
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh | ||
RUN chmod +x /usr/local/bin/entrypoint.sh | ||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
2 changes: 1 addition & 1 deletion
2
ci/image/Dockerfile.dotnet-centos7-net6-test → ...age/Dockerfile.dotnet-ubuntu204-net8-test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FROM nexus.int.snowflakecomputing.com:8086/docker/client-dotnet-centos7-net6-build:1 | ||
FROM nexus.int.snowflakecomputing.com:8086/docker/client-dotnet-ubuntu204-net8-build:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters