File tree Expand file tree Collapse file tree 7 files changed +225
-5
lines changed
3.3/windows/windowsservercore
3.4/windows/windowsservercore
3.5/windows/windowsservercore
3.6/windows/windowsservercore Expand file tree Collapse file tree 7 files changed +225
-5
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3
+ #
4
+ # PLEASE DO NOT EDIT IT DIRECTLY.
5
+ #
6
+
7
+ FROM microsoft/windowsservercore
8
+
9
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
10
+
11
+ ENV PYTHON_VERSION 3.3.6
12
+ ENV PYTHON_RELEASE 3.3.6
13
+ ENV PYTHON_DOWNLOAD_URL https://www.python.org/ftp/python/${PYTHON_RELEASE}/python-${PYTHON_VERSION}-amd64.exe
14
+
15
+ # TODO PYTHON_PIP_VERSION ? (installer comes with pip, but not necessarily the latest version)
16
+
17
+ RUN Write-Host ('Downloading {0} ...' -f $env:PYTHON_DOWNLOAD_URL); \
18
+ (New-Object System.Net.WebClient).DownloadFile($env:PYTHON_DOWNLOAD_URL, 'python.exe' ); \
19
+ \
20
+ Write-Host 'Installing ...' ; \
21
+ # https://docs.python.org/3.5/using/windows.html#installing-without-ui
22
+ Start-Process python.exe -Wait \
23
+ -ArgumentList @( \
24
+ '/quiet' , \
25
+ 'InstallAllUsers=1' , \
26
+ 'TargetDir=C:\P ython' , \
27
+ 'PrependPath=1' , \
28
+ 'Shortcuts=0' , \
29
+ 'Include_doc=0' , \
30
+ 'Include_test=0' \
31
+ ); \
32
+ \
33
+ # the installer updated PATH, so we should refresh our local value
34
+ $env:PATH = [Environment]::GetEnvironmentVariable('PATH' , [EnvironmentVariableTarget]::Machine); \
35
+ \
36
+ Write-Host 'Verifying install ...' ; \
37
+ Write-Host ' python --version' ; python --version; \
38
+ \
39
+ Write-Host 'Removing ...' ; \
40
+ Remove-Item python.exe -Force; \
41
+ \
42
+ Write-Host 'Complete.' ;
43
+
44
+ CMD ["python" ]
Original file line number Diff line number Diff line change
1
+ #
2
+ # NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3
+ #
4
+ # PLEASE DO NOT EDIT IT DIRECTLY.
5
+ #
6
+
7
+ FROM microsoft/windowsservercore
8
+
9
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
10
+
11
+ ENV PYTHON_VERSION 3.4.5
12
+ ENV PYTHON_RELEASE 3.4.5
13
+ ENV PYTHON_DOWNLOAD_URL https://www.python.org/ftp/python/${PYTHON_RELEASE}/python-${PYTHON_VERSION}-amd64.exe
14
+
15
+ # TODO PYTHON_PIP_VERSION ? (installer comes with pip, but not necessarily the latest version)
16
+
17
+ RUN Write-Host ('Downloading {0} ...' -f $env:PYTHON_DOWNLOAD_URL); \
18
+ (New-Object System.Net.WebClient).DownloadFile($env:PYTHON_DOWNLOAD_URL, 'python.exe' ); \
19
+ \
20
+ Write-Host 'Installing ...' ; \
21
+ # https://docs.python.org/3.5/using/windows.html#installing-without-ui
22
+ Start-Process python.exe -Wait \
23
+ -ArgumentList @( \
24
+ '/quiet' , \
25
+ 'InstallAllUsers=1' , \
26
+ 'TargetDir=C:\P ython' , \
27
+ 'PrependPath=1' , \
28
+ 'Shortcuts=0' , \
29
+ 'Include_doc=0' , \
30
+ 'Include_test=0' \
31
+ ); \
32
+ \
33
+ # the installer updated PATH, so we should refresh our local value
34
+ $env:PATH = [Environment]::GetEnvironmentVariable('PATH' , [EnvironmentVariableTarget]::Machine); \
35
+ \
36
+ Write-Host 'Verifying install ...' ; \
37
+ Write-Host ' python --version' ; python --version; \
38
+ \
39
+ Write-Host 'Removing ...' ; \
40
+ Remove-Item python.exe -Force; \
41
+ \
42
+ Write-Host 'Complete.' ;
43
+
44
+ CMD ["python" ]
Original file line number Diff line number Diff line change
1
+ #
2
+ # NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3
+ #
4
+ # PLEASE DO NOT EDIT IT DIRECTLY.
5
+ #
6
+
7
+ FROM microsoft/windowsservercore
8
+
9
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
10
+
11
+ ENV PYTHON_VERSION 3.5.2
12
+ ENV PYTHON_RELEASE 3.5.2
13
+ ENV PYTHON_DOWNLOAD_URL https://www.python.org/ftp/python/${PYTHON_RELEASE}/python-${PYTHON_VERSION}-amd64.exe
14
+
15
+ # TODO PYTHON_PIP_VERSION ? (installer comes with pip, but not necessarily the latest version)
16
+
17
+ RUN Write-Host ('Downloading {0} ...' -f $env:PYTHON_DOWNLOAD_URL); \
18
+ (New-Object System.Net.WebClient).DownloadFile($env:PYTHON_DOWNLOAD_URL, 'python.exe' ); \
19
+ \
20
+ Write-Host 'Installing ...' ; \
21
+ # https://docs.python.org/3.5/using/windows.html#installing-without-ui
22
+ Start-Process python.exe -Wait \
23
+ -ArgumentList @( \
24
+ '/quiet' , \
25
+ 'InstallAllUsers=1' , \
26
+ 'TargetDir=C:\P ython' , \
27
+ 'PrependPath=1' , \
28
+ 'Shortcuts=0' , \
29
+ 'Include_doc=0' , \
30
+ 'Include_test=0' \
31
+ ); \
32
+ \
33
+ # the installer updated PATH, so we should refresh our local value
34
+ $env:PATH = [Environment]::GetEnvironmentVariable('PATH' , [EnvironmentVariableTarget]::Machine); \
35
+ \
36
+ Write-Host 'Verifying install ...' ; \
37
+ Write-Host ' python --version' ; python --version; \
38
+ \
39
+ Write-Host 'Removing ...' ; \
40
+ Remove-Item python.exe -Force; \
41
+ \
42
+ Write-Host 'Complete.' ;
43
+
44
+ CMD ["python" ]
Original file line number Diff line number Diff line change
1
+ FROM microsoft/windowsservercore
2
+
3
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
4
+
5
+ ENV PYTHON_VERSION 3.6.0a3
6
+ ENV PYTHON_RELEASE 3.6.0
7
+ ENV PYTHON_DOWNLOAD_URL https://www.python.org/ftp/python/${PYTHON_RELEASE}/python-${PYTHON_VERSION}-amd64.exe
8
+
9
+ # TODO PYTHON_PIP_VERSION ? (installer comes with pip, but not necessarily the latest version)
10
+
11
+ RUN Write-Host ('Downloading {0} ...' -f $env:PYTHON_DOWNLOAD_URL); \
12
+ (New-Object System.Net.WebClient).DownloadFile($env:PYTHON_DOWNLOAD_URL, 'python.exe' ); \
13
+ \
14
+ Write-Host 'Installing ...' ; \
15
+ # https://docs.python.org/3.5/using/windows.html#installing-without-ui
16
+ Start-Process python.exe -Wait \
17
+ -ArgumentList @( \
18
+ '/quiet' , \
19
+ 'InstallAllUsers=1' , \
20
+ 'TargetDir=C:\P ython' , \
21
+ 'PrependPath=1' , \
22
+ 'Shortcuts=0' , \
23
+ 'Include_doc=0' , \
24
+ 'Include_test=0' \
25
+ ); \
26
+ \
27
+ # the installer updated PATH, so we should refresh our local value
28
+ $env:PATH = [Environment]::GetEnvironmentVariable('PATH' , [EnvironmentVariableTarget]::Machine); \
29
+ \
30
+ Write-Host 'Verifying install ...' ; \
31
+ Write-Host ' python --version' ; python --version; \
32
+ \
33
+ Write-Host 'Removing ...' ; \
34
+ Remove-Item python.exe -Force; \
35
+ \
36
+ Write-Host 'Complete.' ;
37
+
38
+ CMD ["python" ]
Original file line number Diff line number Diff line change
1
+ FROM microsoft/windowsservercore
2
+
3
+ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
4
+
5
+ ENV PYTHON_VERSION %%PLACEHOLDER%%
6
+ ENV PYTHON_RELEASE %%PLACEHOLDER%%
7
+ ENV PYTHON_DOWNLOAD_URL https://www.python.org/ftp/python/${PYTHON_RELEASE}/python-${PYTHON_VERSION}-amd64.exe
8
+
9
+ # TODO PYTHON_PIP_VERSION ? (installer comes with pip, but not necessarily the latest version)
10
+
11
+ RUN Write-Host ('Downloading {0} ...' -f $env:PYTHON_DOWNLOAD_URL); \
12
+ (New-Object System.Net.WebClient).DownloadFile($env:PYTHON_DOWNLOAD_URL, 'python.exe'); \
13
+ \
14
+ Write-Host 'Installing ...'; \
15
+ # https://docs.python.org/3.5/using/windows.html#installing-without-ui
16
+ Start-Process python.exe -Wait \
17
+ -ArgumentList @( \
18
+ '/quiet', \
19
+ 'InstallAllUsers=1', \
20
+ 'TargetDir=C:\Python', \
21
+ 'PrependPath=1', \
22
+ 'Shortcuts=0', \
23
+ 'Include_doc=0', \
24
+ 'Include_test=0' \
25
+ ); \
26
+ \
27
+ # the installer updated PATH, so we should refresh our local value
28
+ $env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \
29
+ \
30
+ Write-Host 'Verifying install ...'; \
31
+ Write-Host ' python --version'; python --version; \
32
+ \
33
+ Write-Host 'Removing ...'; \
34
+ Remove-Item python.exe -Force; \
35
+ \
36
+ Write-Host 'Complete.';
37
+
38
+ CMD ["python"]
Original file line number Diff line number Diff line change @@ -67,10 +67,16 @@ for version in "${versions[@]}"; do
67
67
Directory: $version
68
68
EOE
69
69
70
- for variant in slim alpine wheezy onbuild; do
71
- [ -f " $version /$variant /Dockerfile" ] || continue
70
+ for v in \
71
+ slim alpine wheezy onbuild \
72
+ windows/windowsservercore windows/nanoserver \
73
+ ; do
74
+ dir=" $version /$v "
75
+ variant=" $( basename " $v " ) "
72
76
73
- commit=" $( dirCommit " $version /$variant " ) "
77
+ [ -f " $dir /Dockerfile" ] || continue
78
+
79
+ commit=" $( dirCommit " $dir " ) "
74
80
75
81
variantAliases=( " ${versionAliases[@]/%/ -$variant } " )
76
82
variantAliases=( " ${variantAliases[@]// latest-/ } " )
@@ -79,7 +85,8 @@ for version in "${versions[@]}"; do
79
85
cat << -EOE
80
86
Tags: $( join ' , ' " ${variantAliases[@]} " )
81
87
GitCommit: $commit
82
- Directory: $version / $variant
88
+ Directory: $dir
83
89
EOE
90
+ [ " $variant " = " $v " ] || echo " Constraints: $variant "
84
91
done
85
92
done
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
+ shopt -s nullglob
3
4
4
5
declare -A gpgKeys=(
5
6
# gpg: key 18ADD4FF: public key "Benjamin Peterson <[email protected] >" imported
@@ -65,13 +66,16 @@ for version in "${versions[@]}"; do
65
66
alpine \
66
67
slim \
67
68
onbuild \
69
+ windows/windowsservercore \
68
70
; do
69
71
if [ " $variant " = ' debian' ]; then
70
72
dir=" $version "
71
73
else
72
74
dir=" $version /$variant "
75
+ variant=" $( basename " $variant " ) "
73
76
fi
74
77
template=" Dockerfile-$variant .template"
78
+ mkdir -p " $dir "
75
79
{ generated_warning; cat " $template " ; } > " $dir /Dockerfile"
76
80
done
77
81
if [ -d " $version /wheezy" ]; then
@@ -84,9 +88,10 @@ for version in "${versions[@]}"; do
84
88
sed -ri \
85
89
-e ' s/^(ENV GPG_KEY) .*/\1 ' " ${gpgKeys[$version]} " ' /' \
86
90
-e ' s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /' \
91
+ -e ' s/^(ENV PYTHON_RELEASE) .*/\1 ' " ${fullVersion%% [a-z]* } " ' /' \
87
92
-e ' s/^(ENV PYTHON_PIP_VERSION) .*/\1 ' " $pipVersion " ' /' \
88
93
-e ' s/^(FROM python):.*/\1:' " $version " ' /' \
89
- " $version " /{,* /}Dockerfile
94
+ " $version " /{,* /, * / * / }Dockerfile
90
95
)
91
96
fi
92
97
for variant in wheezy alpine slim; do
You can’t perform that action at this time.
0 commit comments