Last active
May 28, 2018 14:20
-
-
Save mwalzer/268df3d6e2f570fce7182419d9642a6f to your computer and use it in GitHub Desktop.
windows dockerfile with container for pwiz instructions
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
FROM microsoft/dotnet-framework:3.5 | |
#FROM microsoft/windowsservercore:10.0.14393.206 | |
#WTF? seems .net 35 is not activated | |
SHELL ["powershell"] | |
COPY pwiz c:/pwiz/ | |
COPY 06282014_JLB_UF_Run3.raw c:/temp/06282014_JLB_UF_Run3.raw | |
# Note: Add .NET + ASP.NET | |
RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \ | |
Install-WindowsFeature Web-Asp-Net45 ; \ | |
Install-WindowsFeature Net-Framework-Core ; \ | |
Install-Package -Force VcRedist | |
#RUN powershell.exe -Command Get-VcList | Get-VcRedist -Path $env:TEMP -Architecture "x86" -Release "2012","2013" ; \ | |
# powershell.exe -Command Get-VcList | Install-VcRedist -Path $env:TEMP -Release "2012","2013" -Architecture "x86" | |
#https://aaronparker.gitbooks.io/vcredist/content/Install-VcRedist.html | |
#WTF? no MSVC dll available | |
#needs to be x86 | |
RUN powershell.exe -Command Invoke-WebRequest http://download.microsoft.com/download/0/5/6/056dcda9-d667-4e27-8001-8a0c6971d6b1/vcredist_x86.exe -OutFile “C:\vc2013x86.exe” -UseBasicParsing | |
RUN powershell.exe -Command Start-Process C:\vc2013x86.exe -ArgumentList '/quiet' -Wait | |
RUN powershell.exe -Command Remove-Item C:\vc2013x86.exe | |
#needs to be x86 | |
RUN powershell.exe -Command Invoke-WebRequest https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe -OutFile “C:\vc2012x86.exe” -UseBasicParsing | |
RUN powershell.exe -Command Start-Process C:\vc2012x86.exe -ArgumentList '/quiet' -Wait | |
RUN powershell.exe -Command Remove-Item C:\vc2012x86.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker build -t pwiz:123 .
docker run -it pwiz:123 powershell
... exit