Skip to content

Commit 77a39dc

Browse files
committed
Add dotnet3.1
1 parent f9f5982 commit 77a39dc

File tree

6 files changed

+74
-6
lines changed

6 files changed

+74
-6
lines changed

.circleci/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@ workflows:
6464
- build_dotnet20: { requires: [ fan_in_1 ] }
6565
- build_dotnet21: { requires: [ fan_in_1 ] }
6666
- build_dotnet22: { requires: [ fan_in_1 ] }
67+
- build_dotnet31: { requires: [ fan_in_1 ] }
6768

6869
- fan_in_2:
6970
requires:
7071
- build_dotnet11
7172
- build_dotnet20
7273
- build_dotnet21
7374
- build_dotnet22
75+
- build_dotnet31
7476

7577
- build_awscli1_11: { requires: [ fan_in_2 ] }
7678
- build_awscli1_14: { requires: [ fan_in_2 ] }
@@ -179,6 +181,9 @@ jobs:
179181
build_dotnet22:
180182
<<: *build_image
181183
environment: [ { DOCKER_PATH: './dotnet/2.2', DOCKER_TAG: 'dotnet2.2-debian9' } ]
184+
build_dotnet31:
185+
<<: *build_image
186+
environment: [ { DOCKER_PATH: './dotnet/3.1', DOCKER_TAG: 'dotnet3.1-debian10' } ]
182187

183188
fan_in_2:
184189
<<: *fan_in

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Windows containers have all versions of .NET Framework 4.x and .NET Core 1.x and
7676
- `dotnet2.0-debian8` ([dotnet/2.0/Dockerfile](https://github.com/hal-platform/hal-build-environments/blob/master/dotnet/2.0/Dockerfile))
7777
- `dotnet2.1-debian8` ([dotnet/2.1/Dockerfile](https://github.com/hal-platform/hal-build-environments/blob/master/dotnet/2.1/Dockerfile))
7878
- `dotnet2.2-debian9` ([dotnet/2.2/Dockerfile](https://github.com/hal-platform/hal-build-environments/blob/master/dotnet/2.2/Dockerfile))
79+
- `dotnet3.1-debian10` ([dotnet/3.1/Dockerfile](https://github.com/hal-platform/hal-build-environments/blob/master/dotnet/3.1/Dockerfile))
7980

8081
#### Python
8182

dotnet/2.1/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ RUN curl "https://packages.microsoft.com/keys/microsoft.asc" | apt-key add - \
4040
&& \
4141
apt-get update \
4242
&& \
43-
apt-cache madison powershell && \
44-
apt-cache madison dotnet-host && \
4543
apt-get install -y \
4644
"dotnet-sdk-${DOTNET_SDK_VERSION}=${DOTNET_PACKAGE_VERSION}-1" \
4745
"dotnet-host=${DOTNET_SDK_VERSION}.6-1" \

dotnet/2.2/Dockerfile

-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ RUN curl "https://packages.microsoft.com/keys/microsoft.asc" | apt-key add - \
2929
&& \
3030
apt-get update \
3131
&& \
32-
apt-cache madison "powershell" && \
33-
apt-cache madison "dotnet-host" && \
34-
apt-cache madison "dotnet-sdk-${DOTNET_SDK_VERSION}" && \
3532
apt-get install -y \
3633
"dotnet-sdk-${DOTNET_SDK_VERSION}=${DOTNET_PACKAGE_VERSION}-1" \
3734
"dotnet-host" \

dotnet/3.1/Dockerfile

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
FROM halplatform/hal-build-environments:debian10-buildpack
2+
3+
# Install .NET CLI dependencies
4+
RUN \
5+
apt-get update \
6+
&& \
7+
apt-get install -y --no-install-recommends \
8+
libicu63 \
9+
libssl1.1 \
10+
libc6 \
11+
libgcc1 \
12+
libgssapi-krb5-2 \
13+
liblttng-ust0 \
14+
libstdc++6 \
15+
zlib1g \
16+
\
17+
gettext \
18+
apt-transport-https \
19+
&& \
20+
rm -rf /var/lib/apt/lists/*
21+
22+
ENV DOTNET_SDK_VERSION "3.1"
23+
ENV DOTNET_PACKAGE_VERSION "3.1.100"
24+
ENV POWERSHELL_VERSION "7.0.0-rc.1"
25+
26+
# Install Dotnet
27+
28+
RUN curl -sL "https://packages.microsoft.com/keys/microsoft.asc" | apt-key add - \
29+
&& \
30+
curl -sLo "/etc/apt/sources.list.d/microsoft.list" \
31+
"https://packages.microsoft.com/config/debian/10/prod.list" \
32+
&& \
33+
apt-get update \
34+
&& \
35+
apt-get install -y \
36+
"dotnet-sdk-${DOTNET_SDK_VERSION}=${DOTNET_PACKAGE_VERSION}-1" \
37+
&& \
38+
rm -rf /var/lib/apt/lists/*
39+
40+
# Install Powershell
41+
42+
RUN curl -sLo "/tmp/powershell.tgz" \
43+
"https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-x64.tar.gz" \
44+
&& \
45+
mkdir -p "/opt/microsoft/powershell/7" \
46+
&& \
47+
tar zxf "/tmp/powershell.tgz" -C "/opt/microsoft/powershell/7" \
48+
&& \
49+
chmod +x "/opt/microsoft/powershell/7/pwsh" \
50+
&& \
51+
ln -s "/opt/microsoft/powershell/7/pwsh" /usr/bin/pwsh
52+
53+
ENV NUGET_XMLDOC_MODE skip
54+
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
55+
56+
# Trigger the population of the local package cache
57+
RUN mkdir warmup \
58+
&& \
59+
cd warmup \
60+
&& \
61+
dotnet new \
62+
&& \
63+
cd .. \
64+
&& \
65+
rm -rf warmup \
66+
&& \
67+
rm -rf /tmp/NuGetScratch

tools/awscli/1.16/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.6.2-stretch
22

3-
ENV AWSCLI_VERSION 1.16.131
3+
ENV AWSCLI_VERSION 1.16.306
44

55
RUN \
66
curl -Lo "yq" "https://github.com/mikefarah/yq/releases/download/1.14.0/yq_linux_amd64" \

0 commit comments

Comments
 (0)