Skip to content

Commit

Permalink
conan-io#50 Update MSVC 14 install
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Oct 4, 2018
1 parent bea688a commit ef63ff3
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions msvc_14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,26 @@ FROM microsoft/windowsservercore:10.0.14393.2068

LABEL maintainer="Luis Martinez de Bartolome <luism@jfrog.com>"

ADD https://aka.ms/vs/15/release/vs_buildtools.exe %TEMP%\buildtools.exe

RUN %TEMP%\buildtools.exe --quiet --wait --norestart --nocache \
--installPath C:\BuildTools \
--add Microsoft.VisualStudio.Workload.VCTools;includeRecommended \
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 \
--add Microsoft.VisualStudio.Component.Windows10SDK.17134 \
--add Microsoft.VisualStudio.Component.Windows10SDK.16299.Desktop \
--add Microsoft.VisualStudio.Component.VC.140 \
--add Microsoft.VisualStudio.Component.VC.ATL \
--add Microsoft.VisualStudio.Component.VC.ATLMFC \
--add Microsoft.VisualStudio.Component.VC.CLI.Support \
|| IF "%ERRORLEVEL%"=="3010" EXIT 0

SHELL ["powershell.exe", "-ExecutionPolicy", "Bypass", "-Command"]

ENV chocolateyUseWindowsCompression=false
ENV chocolateyUseWindowsCompression=false \
PYTHONIOENCODING=UTF-8

RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

RUN choco install --yes cmake --params '"/InstallDir:C:\tools\cmake"'

RUN choco install --yes cmake --params '"/InstallDir:C:\tools\cmake"' --installargs 'ADD_CMAKE_TO_PATH=""System""'
RUN choco install --yes python3 --params '"/InstallDir:C:\tools\python3"'
RUN choco install --yes --execution-timeout=7200 vcbuildtools -ia "/Full"

RUN python -m pip install --upgrade pip

RUN pip install win-unicode-console

RUN pip install \
conan \
conan_package_tools \
--upgrade --force-reinstall --no-cache

WORKDIR "C:/Users/ContainerAdministrator"

RUN mkdir "C:\.conan"

WORKDIR "C:/Users/ContainerAdministrator"
ENTRYPOINT ["cmd.exe", "C:\\Program Files (x86)\\Microsoft Visual C++ Build Tools\\vcbuildtools_msbuild.bat"]

0 comments on commit ef63ff3

Please sign in to comment.