-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support dockerfile with multi openssl version
- Loading branch information
Showing
7 changed files
with
54 additions
and
30 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
FROM ghcr.io/automesh-network/dockerfiles:win-dev-rust | ||
|
||
RUN vcpkg install openssl:x64-windows openssl:x64-windows-static openssl:x64-windows-static-md | ||
RUN vcpkg install openssl:x86-windows openssl:x86-windows-static openssl:x86-windows-static-md | ||
RUN vcpkg install openssl:arm64-windows openssl:arm64-windows-static openssl:arm64-windows-static-md | ||
|
||
RUN choco install git strawberryperl just -y | ||
|
||
ARG RUST_STABLE_VERSION=1.76 | ||
ARG RUST_NIGHTLY_VERSION=2024-02-08 | ||
RUN rustup install $env:RUST_STABLE_VERSION | ||
RUN rustup default $env:RUST_STABLE_VERSION | ||
RUN rustup install nightly-$env:RUST_NIGHTLY_VERSION | ||
|
||
ADD https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1 /install-from-binstall-release.ps1 | ||
RUN C:\install-from-binstall-release.ps1 | ||
RUN cargo binstall --secure --no-confirm cargo-tarpaulin cargo-audit cargo-nextest |
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,15 @@ | ||
FROM mcr.microsoft.com/windows/servercore:ltsc2022 | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue'; $verbosePreference='Continue';"] | ||
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | ||
|
||
RUN choco install visualstudio2022buildtools -y --package-parameters '--quiet --wait --norestart --add Microsoft.Component.MSBuild --add Microsoft.VisualStudio.Component.Windows11SDK.22621 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64' | ||
RUN choco install git -y | ||
|
||
ARG VCPKG_ROOT="C:\\vcpkg" | ||
ARG VCPKG_VERSION=2024.03.25 | ||
RUN git clone https://github.com/microsoft/vcpkg.git $env:VCPKG_ROOT | ||
RUN git -C $env:VCPKG_ROOT checkout $env:VCPKG_VERSION | ||
RUN & "$env:VCPKG_ROOT\bootstrap-vcpkg.bat -disableMetrics" | ||
RUN [Environment]::SetEnvironmentVariable('VCPKG_ROOT', $env:VCPKG_ROOT, [EnvironmentVariableTarget]::Machine) | ||
RUN [Environment]::SetEnvironmentVariable('PATH', $env:PATH + ';' + $env:VCPKG_ROOT, [EnvironmentVariableTarget]::Machine) |
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,3 @@ | ||
FROM ghcr.io/automesh-network/dockerfiles:win-dev-base | ||
|
||
RUN choco install rustup.install -y |