-
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 centOS8 dotnet 8
- 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
- Loading branch information
1 parent
15f4c55
commit 4ec5ab8
Showing
8 changed files
with
69 additions
and
66 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 was deleted.
Oops, something went wrong.
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,51 @@ | ||
FROM centos:8 | ||
|
||
USER root | ||
WORKDIR / | ||
|
||
# create dir for workspace | ||
RUN mkdir -p /home/user | ||
RUN chmod 777 /home/user | ||
|
||
# update OS and install basic tools | ||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* | ||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* | ||
RUN dnf install centos-release-stream -y | ||
RUN dnf swap centos-{linux,stream}-repos -y | ||
RUN dnf distro-sync -y | ||
RUN yum -y install git | ||
RUN yum -y install which | ||
RUN yum -y install zstd | ||
RUN yum -y install jq | ||
|
||
# python | ||
RUN yum -y install python36 | ||
RUN python3 -V | ||
RUN pip3 install -U pip | ||
RUN pip3 install wheel | ||
|
||
# aws | ||
RUN pip3 install -U awscli | ||
RUN aws --version | ||
|
||
# Install .NET SDK 8.0 | ||
RUN yum install -y curl tar | ||
RUN rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm | ||
RUN yum install -y dotnet-sdk-8.0 | ||
|
||
# gosu | ||
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64" | ||
RUN chmod +x /usr/local/bin/gosu | ||
|
||
# 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"] | ||
|
||
# Install build tools | ||
RUN yum -y groupinstall 'Development Tools' | ||
RUN dnf install gcc | ||
SHELL [ "/usr/bin/scl", "enable", "devtoolset-8"] | ||
|
||
# workspace | ||
WORKDIR /home/user |
2 changes: 1 addition & 1 deletion
2
ci/image/Dockerfile.dotnet-centos7-net6-test → ci/image/Dockerfile.dotnet-centos8-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-centos8-net8-build:1 |