Skip to content
This repository was archived by the owner on May 31, 2019. It is now read-only.

Commit 5a7f939

Browse files
authored
Update 2.0 images to aspnetcore 2.0.3 (#328)
1 parent 413cee0 commit 5a7f939

File tree

22 files changed

+138
-116
lines changed

22 files changed

+138
-116
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ test_script:
55
environment:
66
matrix:
77
- folder_filter: 2.0/nanoserver-sac2016/*
8-
- folder_filter: 1.1*
9-
- folder_filter: 1.0*
8+
- folder_filter: 1.1/*
9+
- folder_filter: 1.0/*
1010
matrix:
1111
fast_finish: true
1212
branches:

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ services:
99
- docker
1010
env:
1111
matrix:
12-
- folder_filter=2.0*
13-
- folder_filter=1.1*
14-
- folder_filter=1.0*
12+
- folder_filter=2.0/*
13+
- folder_filter=1.1/*
14+
- folder_filter=1.0/*
1515
matrix:
1616
fast_finish: true
1717
before_install:
1818
- bash <(curl -fsSL https://raw.githubusercontent.com/PowerShell/PowerShell/v6.0.0-beta.6/tools/download.sh)
19-
install:
20-
- ./build.ps1 -Folder $folder_filter
21-
before_script:
22-
- docker build --rm -t testrunner -f ./test/Dockerfile.testrunner.linux .
2319
script:
24-
- /bin/bash -c "docker run --add-host dockerhost:$(ifconfig eth0 | grep -oP 'inet addr:\K\S+') -v /var/run/docker.sock:/var/run/docker.sock testrunner powershell -File ./test/test.ps1 -Folder $folder_filter -HostIP dockerhost"
20+
- ./ci-build.sh

2.0/jessie/kitchensink/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM microsoft/dotnet:2.0.0-sdk-2.0.2-jessie
1+
FROM microsoft/dotnet:2.0.3-sdk-jessie
22

33
# set up environment
44
ENV ASPNETCORE_URLS http://+:80
55
ENV NODE_VERSION 6.11.3
6-
ENV ASPNETCORE_PKG_VERSION 2.0.0
6+
ENV ASPNETCORE_PKG_VERSION 2.0.3
77

88
RUN set -ex \
99
&& for key in \

2.0/jessie/runtime/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
FROM microsoft/dotnet:2.0.0-runtime-jessie
1+
FROM microsoft/dotnet:2.0.3-runtime-jessie
22

33
# set up network
44
ENV ASPNETCORE_URLS http://+:80
5-
ENV ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL https://dist.asp.net/runtimestore/2.0.0/linux-x64/aspnetcore.runtimestore.tar.gz
6-
ENV ASPNETCORE_PKG_VERSION 2.0.0
5+
ENV ASPNETCORE_PKG_VERSION 2.0.3
76

87
# set up the runtime store
9-
RUN curl -o /tmp/runtimestore.tar.gz $ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL \
10-
&& export DOTNET_HOME=$(dirname $(readlink $(which dotnet))) \
11-
&& tar -x -C $DOTNET_HOME -f /tmp/runtimestore.tar.gz \
12-
&& rm /tmp/runtimestore.tar.gz
8+
RUN for version in '2.0.0' '2.0.3'; do \
9+
curl -o /tmp/runtimestore.tar.gz https://dist.asp.net/runtimestore/$version/linux-x64/aspnetcore.runtimestore.tar.gz \
10+
&& export DOTNET_HOME=$(dirname $(readlink $(which dotnet))) \
11+
&& tar -x -C $DOTNET_HOME -f /tmp/runtimestore.tar.gz \
12+
&& rm /tmp/runtimestore.tar.gz; \
13+
done

2.0/jessie/sdk/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM microsoft/dotnet:2.0.0-sdk-2.0.2-jessie
1+
FROM microsoft/dotnet:2.0.3-sdk-jessie
22

33
# set up environment
44
ENV ASPNETCORE_URLS http://+:80
55
ENV NODE_VERSION 6.11.3
6-
ENV ASPNETCORE_PKG_VERSION 2.0.0
6+
ENV ASPNETCORE_PKG_VERSION 2.0.3
77

88
# Install keys required for node
99
RUN set -ex \

2.0/nanoserver-1709/kitchensink/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ RUN Invoke-WebRequest -UseBasicParsing https://distaspnet.blob.core.windows.net/
3434

3535

3636
# Kitchen Sink image
37-
FROM microsoft/dotnet:2.0.0-sdk-2.0.2-nanoserver-1709
37+
FROM microsoft/dotnet:2.0.3-sdk-nanoserver-1709
3838

3939
# Note: Kitchen Sink image's SHELL is the CMD shell (different than the installer image).
4040

4141
# Set up environment
4242
ENV ASPNETCORE_URLS http://+:80
43-
ENV ASPNETCORE_PKG_VERSION 2.0.0
43+
ENV ASPNETCORE_PKG_VERSION 2.0.3
4444

4545
# Install node, bower, and git
4646
COPY --from=installer-env ["nodejs", "C:\\Program Files\\nodejs"]

2.0/nanoserver-1709/runtime/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ FROM microsoft/windowsservercore:1709 AS installer-env
66
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
77

88
# Retrieve the runtime store
9-
ENV ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL https://dist.asp.net/runtimestore/2.0.0/win-x64/aspnetcore.runtimestore.zip
10-
11-
RUN Write-Host \"Downloading and extracting ${env:ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL}\"; `
12-
Invoke-WebRequest $env:ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL -OutFile cache.zip; `
13-
Expand-Archive cache.zip -DestinationPath RuntimeStore; `
14-
Remove-Item -Force cache.zip
15-
9+
RUN @('2.0.0', '2.0.3') | % { `
10+
$downloadUrl = \"https://dist.asp.net/runtimestore/${_}/win-x64/aspnetcore.runtimestore.zip\"; `
11+
Write-Host \"Downloading and extracting $downloadUrl\"; `
12+
Invoke-WebRequest $downloadUrl -OutFile cache.zip; `
13+
Expand-Archive cache.zip -DestinationPath RuntimeStore; `
14+
Remove-Item -Force cache.zip; `
15+
}
1616

1717
# Runtime image
18-
FROM microsoft/dotnet:2.0.0-runtime-nanoserver-1709
18+
FROM microsoft/dotnet:2.0.3-runtime-nanoserver-1709
1919

2020
# Note: Runtime image's SHELL is the CMD shell (different than the installer image).
2121

2222
# Set up network
2323
ENV ASPNETCORE_URLS http://+:80
24-
ENV ASPNETCORE_PKG_VERSION 2.0.0
24+
ENV ASPNETCORE_PKG_VERSION 2.0.3
2525

2626
# Set up the runtime store
2727
COPY --from=installer-env ["RuntimeStore", "C:\\Program Files\\dotnet"]

2.0/nanoserver-1709/sdk/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ RUN Invoke-WebRequest -UseBasicParsing https://nodejs.org/dist/v${env:NODE_VERSI
1919

2020

2121
# Build image
22-
FROM microsoft/dotnet:2.0.0-sdk-2.0.2-nanoserver-1709
22+
FROM microsoft/dotnet:2.0.3-sdk-nanoserver-1709
2323

2424
# Note: Build image's SHELL is the CMD shell (different than the installer image).
2525

2626
# Set up environment
2727
ENV ASPNETCORE_URLS http://+:80
28-
ENV ASPNETCORE_PKG_VERSION 2.0.0
28+
ENV ASPNETCORE_PKG_VERSION 2.0.3
2929

3030
# Install node, bower, and git
3131
COPY --from=installer-env ["nodejs", "C:\\Program Files\\nodejs"]

2.0/nanoserver-sac2016/kitchensink/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# escape=`
2-
FROM microsoft/dotnet:2.0.0-sdk-2.0.2-nanoserver-10.0.14393.1770
2+
FROM microsoft/dotnet:2.0.3-sdk-nanoserver-sac2016
33

44
# set up environment
55
ENV ASPNETCORE_URLS http://+:80
66
ENV NODE_VERSION 6.11.3
7-
ENV ASPNETCORE_PKG_VERSION 2.0.0
7+
ENV ASPNETCORE_PKG_VERSION 2.0.3
88

99
# Install node, bower, and git
1010
RUN Invoke-WebRequest -UseBasicParsing https://nodejs.org/dist/v${env:NODE_VERSION}/node-v${env:NODE_VERSION}-win-x64.zip -outfile node.zip; `
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# escape=`
2-
FROM microsoft/dotnet:2.0.0-runtime-nanoserver-10.0.14393.1770
2+
FROM microsoft/dotnet:2.0.3-runtime-nanoserver-sac2016
33

44
# set up network
55
ENV ASPNETCORE_URLS http://+:80
6-
ENV ASPNETCORE_PKG_VERSION 2.0.0
7-
ENV ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL https://dist.asp.net/runtimestore/2.0.0/win-x64/aspnetcore.runtimestore.zip
6+
ENV ASPNETCORE_PKG_VERSION 2.0.3
87

98
# set up the runtime store
10-
RUN Write-Host \"Downloading and extracting ${env:ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL}\"; `
11-
Invoke-WebRequest $env:ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL -OutFile cache.zip; `
12-
$env:DOTNET_HOME = $(Split-Path -Parent (Get-Command dotnet.exe).Source); `
13-
Expand-Archive cache.zip -DestinationPath $env:DOTNET_HOME; `
14-
Remove-Item -Force cache.zip
9+
RUN $env:DOTNET_HOME = $(Split-Path -Parent (Get-Command dotnet.exe).Source); `
10+
@('2.0.0', '2.0.3') | % { `
11+
$downloadUrl = \"https://dist.asp.net/runtimestore/${_}/win-x64/aspnetcore.runtimestore.zip\"; `
12+
Write-Host \"Downloading and extracting $downloadUrl\"; `
13+
Invoke-WebRequest $downloadUrl -OutFile cache.zip; `
14+
Expand-Archive cache.zip -DestinationPath $env:DOTNET_HOME; `
15+
Remove-Item -Force cache.zip; `
16+
}

0 commit comments

Comments
 (0)