Skip to content

Commit 51d599f

Browse files
committed
rebased
1 parent 0aa1f76 commit 51d599f

File tree

13 files changed

+3491
-1
lines changed

13 files changed

+3491
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Using offical Amazon Linux 2 image from public ECR
2+
FROM public.ecr.aws/amazonlinux/amazonlinux:2
3+
4+
#Install java
5+
RUN amazon-linux-extras enable corretto8 && yum install -y java-1.8.0-amazon-corretto
6+
7+
#Install g++
8+
RUN yum groupinstall "Development Tools" -y
9+
10+
#Install required dependencies
11+
RUN yum install -y curl-devel openssl-devel ninja-build maven cmake3 awscli jq clang gcc10 gcc10-c++ bison rsync graphviz gdb
12+
13+
#Link cmake3 correctly
14+
RUN ln -s /usr/bin/cmake3 /usr/bin/cmake
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# escape=`
2+
3+
FROM mcr.microsoft.com/windows/servercore:ltsc2019
4+
5+
ADD https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x64.exe /vc_redist.x64.exe
6+
RUN start /wait C:\vc_redist.x64.exe /quiet /norestart
7+
8+
# Install chocolatey
9+
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$env:chocolateyUseWindowsCompression = 'true'; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1"
10+
11+
#Install 7zip
12+
RUN choco install 7zip -y
13+
14+
#Install git
15+
RUN choco install git -y
16+
17+
# Install Java
18+
RUN choco install jdk8 --version=8.0.211 -y
19+
20+
# Install Maven
21+
RUN choco install maven -y
22+
23+
# Install Python3
24+
RUN choco install python --version=3.9.0 -y
25+
26+
# Install boto3
27+
RUN pip3 install boto3 --upgrade
28+
29+
# Install awscli
30+
RUN pip3 install awscli --upgrade
31+
32+
# Download the Build Tools bootstrapper.
33+
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
34+
35+
# Install Build Tools with the Microsoft.VisualStudio.Workload.VCTools workload, excluding workloads and components with known issues.
36+
RUN C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache `
37+
--add Microsoft.VisualStudio.Workload.VCTools;includeRecommended `
38+
--remove Microsoft.VisualStudio.Component.Windows10SDK.10240 `
39+
--remove Microsoft.VisualStudio.Component.Windows10SDK.10586 `
40+
--remove Microsoft.VisualStudio.Component.Windows10SDK.14393 `
41+
--remove Microsoft.VisualStudio.Component.Windows81SDK `
42+
|| IF "%ERRORLEVEL%"=="3010" EXIT 0
43+
44+
# Add MSBuild and CMake to PATH
45+
RUN setx /M PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
46+
RUN setx /M PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin"
47+
48+
# Install vcpkg for ZLIB compression support
49+
RUN git clone https://github.com/Microsoft/vcpkg.git C:\vcpkg
50+
RUN C:\vcpkg\bootstrap-vcpkg.bat
51+
RUN C:\vcpkg\vcpkg.exe integrate install
52+
RUN C:\vcpkg\vcpkg.exe install zlib:x64-windows
53+
54+
CMD [ "cmd.exe" ]
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# escape=`
2+
3+
FROM mcr.microsoft.com/windows/servercore:ltsc2019
4+
5+
ADD https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x64.exe /vc_redist.x64.exe
6+
RUN start /wait C:\vc_redist.x64.exe /quiet /norestart
7+
8+
# Install chocolatey
9+
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$env:chocolateyUseWindowsCompression = 'true'; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1"
10+
11+
#Install 7zip
12+
RUN choco install 7zip -y
13+
14+
#Install git
15+
RUN choco install git -y
16+
17+
# Install Java
18+
RUN choco install jdk8 --version=8.0.211 -y
19+
20+
# Install Maven
21+
RUN choco install maven -y
22+
23+
# Install Python3
24+
RUN choco install python --version=3.9.0 -y
25+
26+
# Install boto3
27+
RUN pip3 install boto3 --upgrade
28+
29+
# Install awscli
30+
RUN pip3 install awscli --upgrade
31+
32+
# Download the Build Tools bootstrapper.
33+
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
34+
35+
# Install Build Tools with the Microsoft.VisualStudio.Workload.VCTools workload, excluding workloads and components with known issues.
36+
RUN C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache `
37+
--add Microsoft.VisualStudio.Workload.VCTools;includeRecommended `
38+
--remove Microsoft.VisualStudio.Component.Windows10SDK.10240 `
39+
--remove Microsoft.VisualStudio.Component.Windows10SDK.10586 `
40+
--remove Microsoft.VisualStudio.Component.Windows10SDK.14393 `
41+
--remove Microsoft.VisualStudio.Component.Windows81SDK `
42+
|| IF "%ERRORLEVEL%"=="3010" EXIT 0
43+
44+
# Add MSBuild and CMake to PATH
45+
RUN setx /M PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
46+
RUN setx /M PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin"
47+
48+
# Install vcpkg for ZLIB compression support
49+
RUN git clone https://github.com/Microsoft/vcpkg.git C:\vcpkg
50+
RUN C:\vcpkg\bootstrap-vcpkg.bat
51+
RUN C:\vcpkg\vcpkg.exe integrate install
52+
RUN C:\vcpkg\vcpkg.exe install zlib:x64-windows
53+
54+
CMD [ "cmd.exe" ]

0 commit comments

Comments
 (0)