forked from conan-io/conan-docker-tools
-
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.
- Add conanmsvc14 image - Update docker compose to build windows image - Update build script to support Windows Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Loading branch information
1 parent
9397460
commit c30bf67
Showing
7 changed files
with
69 additions
and
7 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
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,8 @@ | ||
.git/ | ||
.idea/ | ||
|
||
*.md | ||
*.py | ||
*.yml | ||
**/*.sh | ||
**/*.bat |
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,34 @@ | ||
FROM microsoft/windowsservercore:1803 | ||
|
||
LABEL maintainer="Luis Martinez de Bartolome <luism@jfrog.com>" | ||
|
||
ADD https://aka.ms/vs/15/release/vs_buildtools.exe C:\TEMP\buildtools.exe | ||
|
||
RUN C:\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 | ||
|
||
RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | ||
|
||
RUN choco install --yes python3 --params '"/InstallDir:C:\tools\python3"' | ||
|
||
RUN pip install win-unicode-console | ||
|
||
RUN pip install ` | ||
conan ` | ||
conan_package_tools ` | ||
--upgrade --force-reinstall --no-cache | ||
|
||
WORKDIR "C:\Users\ContainerAdministrator" |
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 @@ | ||
docker build --no-cache -t lasote/conanmsvc14 . |
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 @@ | ||
docker run --rm -v %USERPROFILE%/.conan/data:C:/Users/ContainerAdministrator/.conan/data -it lasote/conanmsvc14 |
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,8 @@ | ||
docker run -t -d --name conanmsvc14 lasote/conanmsvc14 && \ | ||
docker exec conanmsvc14 pip install -U conan_package_tools && \ | ||
docker exec conanmsvc14 pip install -U conan && \ | ||
docker exec conanmsvc14 conan user && \ | ||
docker exec conanmsvc14 conan install gtest/1.8.0@lasote/stable -s arch=x86_64 -s compiler="Visual Studio" -s compiler.version=14 -s compiler.runtime=MD --build && \ | ||
docker exec conanmsvc14 conan install gtest/1.8.0@lasote/stable -s arch=x86 -s compiler="Visual Studio" -s compiler.version=14 -s compiler.runtime=MD --build && \ | ||
docker stop conanmsvc14 && \ | ||
docker rm conanmsvc14 |