forked from docker-library/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request docker-library#243 from infosiftr/1709
Add explicit support for Windows Server 1709
- Loading branch information
Showing
12 changed files
with
270 additions
and
15 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
2 changes: 1 addition & 1 deletion
2
2.7/windows/windowsservercore/Dockerfile → ...windows/windowsservercore-1709/Dockerfile
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,57 @@ | ||
FROM microsoft/windowsservercore:ltsc2016 | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV PYTHON_VERSION 2.7.14 | ||
ENV PYTHON_RELEASE 2.7.14 | ||
|
||
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}.amd64.msi' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \ | ||
Write-Host ('Downloading {0} ...' -f $url); \ | ||
Invoke-WebRequest -Uri $url -OutFile 'python.msi'; \ | ||
\ | ||
Write-Host 'Installing ...'; \ | ||
# https://www.python.org/download/releases/2.4/msi/ | ||
Start-Process msiexec -Wait \ | ||
-ArgumentList @( \ | ||
'/i', \ | ||
'python.msi', \ | ||
'/quiet', \ | ||
'/qn', \ | ||
'TARGETDIR=C:\Python', \ | ||
'ALLUSERS=1', \ | ||
'ADDLOCAL=DefaultFeature,Extensions,TclTk,Tools,PrependPath' \ | ||
); \ | ||
\ | ||
# the installer updated PATH, so we should refresh our local value | ||
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \ | ||
\ | ||
Write-Host 'Verifying install ...'; \ | ||
Write-Host ' python --version'; python --version; \ | ||
\ | ||
Write-Host 'Removing ...'; \ | ||
Remove-Item python.msi -Force; \ | ||
\ | ||
Write-Host 'Complete.'; | ||
|
||
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'" | ||
ENV PYTHON_PIP_VERSION 9.0.1 | ||
|
||
RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \ | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ | ||
Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py'; \ | ||
python get-pip.py \ | ||
--disable-pip-version-check \ | ||
--no-cache-dir \ | ||
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \ | ||
; \ | ||
Remove-Item get-pip.py -Force; \ | ||
\ | ||
Write-Host 'Verifying pip install ...'; \ | ||
pip --version; \ | ||
\ | ||
Write-Host 'Complete.'; | ||
|
||
# install "virtualenv", since the vast majority of users of this image will want it | ||
RUN pip install --no-cache-dir virtualenv | ||
|
||
CMD ["python"] |
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,61 @@ | ||
# | ||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" | ||
# | ||
# PLEASE DO NOT EDIT IT DIRECTLY. | ||
# | ||
|
||
FROM microsoft/windowsservercore:ltsc2016 | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV PYTHON_VERSION 3.5.4 | ||
ENV PYTHON_RELEASE 3.5.4 | ||
|
||
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \ | ||
Write-Host ('Downloading {0} ...' -f $url); \ | ||
Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \ | ||
\ | ||
Write-Host 'Installing ...'; \ | ||
# https://docs.python.org/3.5/using/windows.html#installing-without-ui | ||
Start-Process python.exe -Wait \ | ||
-ArgumentList @( \ | ||
'/quiet', \ | ||
'InstallAllUsers=1', \ | ||
'TargetDir=C:\Python', \ | ||
'PrependPath=1', \ | ||
'Shortcuts=0', \ | ||
'Include_doc=0', \ | ||
'Include_pip=0', \ | ||
'Include_test=0' \ | ||
); \ | ||
\ | ||
# the installer updated PATH, so we should refresh our local value | ||
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \ | ||
\ | ||
Write-Host 'Verifying install ...'; \ | ||
Write-Host ' python --version'; python --version; \ | ||
\ | ||
Write-Host 'Removing ...'; \ | ||
Remove-Item python.exe -Force; \ | ||
\ | ||
Write-Host 'Complete.'; | ||
|
||
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'" | ||
ENV PYTHON_PIP_VERSION 9.0.1 | ||
|
||
RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \ | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ | ||
Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py'; \ | ||
python get-pip.py \ | ||
--disable-pip-version-check \ | ||
--no-cache-dir \ | ||
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \ | ||
; \ | ||
Remove-Item get-pip.py -Force; \ | ||
\ | ||
Write-Host 'Verifying pip install ...'; \ | ||
pip --version; \ | ||
\ | ||
Write-Host 'Complete.'; | ||
|
||
CMD ["python"] |
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,61 @@ | ||
# | ||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" | ||
# | ||
# PLEASE DO NOT EDIT IT DIRECTLY. | ||
# | ||
|
||
FROM microsoft/windowsservercore:ltsc2016 | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV PYTHON_VERSION 3.6.3 | ||
ENV PYTHON_RELEASE 3.6.3 | ||
|
||
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \ | ||
Write-Host ('Downloading {0} ...' -f $url); \ | ||
Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \ | ||
\ | ||
Write-Host 'Installing ...'; \ | ||
# https://docs.python.org/3.5/using/windows.html#installing-without-ui | ||
Start-Process python.exe -Wait \ | ||
-ArgumentList @( \ | ||
'/quiet', \ | ||
'InstallAllUsers=1', \ | ||
'TargetDir=C:\Python', \ | ||
'PrependPath=1', \ | ||
'Shortcuts=0', \ | ||
'Include_doc=0', \ | ||
'Include_pip=0', \ | ||
'Include_test=0' \ | ||
); \ | ||
\ | ||
# the installer updated PATH, so we should refresh our local value | ||
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \ | ||
\ | ||
Write-Host 'Verifying install ...'; \ | ||
Write-Host ' python --version'; python --version; \ | ||
\ | ||
Write-Host 'Removing ...'; \ | ||
Remove-Item python.exe -Force; \ | ||
\ | ||
Write-Host 'Complete.'; | ||
|
||
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'" | ||
ENV PYTHON_PIP_VERSION 9.0.1 | ||
|
||
RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \ | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ | ||
Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py'; \ | ||
python get-pip.py \ | ||
--disable-pip-version-check \ | ||
--no-cache-dir \ | ||
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \ | ||
; \ | ||
Remove-Item get-pip.py -Force; \ | ||
\ | ||
Write-Host 'Verifying pip install ...'; \ | ||
pip --version; \ | ||
\ | ||
Write-Host 'Complete.'; | ||
|
||
CMD ["python"] |
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,61 @@ | ||
# | ||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" | ||
# | ||
# PLEASE DO NOT EDIT IT DIRECTLY. | ||
# | ||
|
||
FROM microsoft/windowsservercore:ltsc2016 | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV PYTHON_VERSION 3.7.0a2 | ||
ENV PYTHON_RELEASE 3.7.0 | ||
|
||
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \ | ||
Write-Host ('Downloading {0} ...' -f $url); \ | ||
Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \ | ||
\ | ||
Write-Host 'Installing ...'; \ | ||
# https://docs.python.org/3.5/using/windows.html#installing-without-ui | ||
Start-Process python.exe -Wait \ | ||
-ArgumentList @( \ | ||
'/quiet', \ | ||
'InstallAllUsers=1', \ | ||
'TargetDir=C:\Python', \ | ||
'PrependPath=1', \ | ||
'Shortcuts=0', \ | ||
'Include_doc=0', \ | ||
'Include_pip=0', \ | ||
'Include_test=0' \ | ||
); \ | ||
\ | ||
# the installer updated PATH, so we should refresh our local value | ||
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \ | ||
\ | ||
Write-Host 'Verifying install ...'; \ | ||
Write-Host ' python --version'; python --version; \ | ||
\ | ||
Write-Host 'Removing ...'; \ | ||
Remove-Item python.exe -Force; \ | ||
\ | ||
Write-Host 'Complete.'; | ||
|
||
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'" | ||
ENV PYTHON_PIP_VERSION 9.0.1 | ||
|
||
RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \ | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ | ||
Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py'; \ | ||
python get-pip.py \ | ||
--disable-pip-version-check \ | ||
--no-cache-dir \ | ||
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \ | ||
; \ | ||
Remove-Item get-pip.py -Force; \ | ||
\ | ||
Write-Host 'Verifying pip install ...'; \ | ||
pip --version; \ | ||
\ | ||
Write-Host 'Complete.'; | ||
|
||
CMD ["python"] |
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