mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-26 01:34:01 +01:00
Changed base Windows image for build
This commit is contained in:
parent
b625d8c7eb
commit
7310cb02c3
2
.github/workflows/images_build_windows.yml
vendored
2
.github/workflows/images_build_windows.yml
vendored
@ -137,7 +137,7 @@ jobs:
|
|||||||
echo "docker build --file=$dockerfile $tags $context"
|
echo "docker build --file=$dockerfile $tags $context"
|
||||||
docker build --label org.opencontainers.image.revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} `
|
docker build --label org.opencontainers.image.revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} `
|
||||||
--label org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} `
|
--label org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} `
|
||||||
--build-arg=BUILD_BASE_IMAGE=mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-${{ steps.base_os_tag.outputs.os_tag }} `
|
--build-arg=BUILD_BASE_IMAGE=mcr.microsoft.com/windows/servercore:${{ steps.base_os_tag.outputs.os_tag }} `
|
||||||
--file=$dockerfile `
|
--file=$dockerfile `
|
||||||
$tags `
|
$tags `
|
||||||
$context
|
$context
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# escape=`
|
# escape=`
|
||||||
ARG BUILD_BASE_IMAGE=mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022
|
ARG BUILD_BASE_IMAGE=mcr.microsoft.com/windows/servercore:ltsc2022
|
||||||
FROM $BUILD_BASE_IMAGE
|
FROM $BUILD_BASE_IMAGE
|
||||||
|
|
||||||
ARG PCRE_VERSION=8.45
|
ARG PCRE_VERSION=8.45
|
||||||
@ -118,8 +118,11 @@ RUN Set-Location -Path $env:SystemDrive\.; `
|
|||||||
--quiet `
|
--quiet `
|
||||||
--wait `
|
--wait `
|
||||||
--norestart `
|
--norestart `
|
||||||
--nocache modify `
|
--nocache `
|
||||||
--installPath """${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\BuildTools""" `
|
--installPath """${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\BuildTools""" `
|
||||||
|
--channelUri https://aka.ms/vs/16/release/channel `
|
||||||
|
--installChannelUri https://aka.ms/vs/16/release/channel `
|
||||||
|
--channelId VisualStudio.16.Release `
|
||||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2019
|
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2019
|
||||||
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 `
|
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 `
|
||||||
--add Microsoft.VisualStudio.Component.VC.CMake.Project; `
|
--add Microsoft.VisualStudio.Component.VC.CMake.Project; `
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# escape=`
|
# escape=`
|
||||||
ARG BUILD_BASE_IMAGE=mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022
|
ARG BUILD_BASE_IMAGE=mcr.microsoft.com/windows/servercore:ltsc2022
|
||||||
FROM $BUILD_BASE_IMAGE as builder_base
|
FROM $BUILD_BASE_IMAGE as builder_base
|
||||||
|
|
||||||
ARG PCRE_VERSION=8.45
|
ARG PCRE_VERSION=8.45
|
||||||
ARG OPENSSL_VERSION=1.1.1l
|
ARG OPENSSL_VERSION=1.1.1l
|
||||||
ARG ZLIB_VERSION=1.2.11
|
ARG ZLIB_VERSION=1.2.11
|
||||||
ARG GOLANG_VERSION=1.17.2
|
ARG GOLANG_VERSION=1.17.3
|
||||||
ARG SEVEN_ZIP_VERSION=1900
|
ARG SEVEN_ZIP_VERSION=1900
|
||||||
ARG BUILD_ARCH=x64
|
ARG BUILD_ARCH=x64
|
||||||
ARG CPU_MODEL=AMD64
|
ARG CPU_MODEL=AMD64
|
||||||
@ -67,7 +67,7 @@ RUN Set-Location -Path $env:SystemDrive\.; `
|
|||||||
Write-Host ('Downloading {0} ...' -f $env:GOLANG_URL); `
|
Write-Host ('Downloading {0} ...' -f $env:GOLANG_URL); `
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
|
||||||
Invoke-WebRequest -OutFile $env:SystemDrive\go-amd64.msi -Uri $env:GOLANG_URL; `
|
Invoke-WebRequest -OutFile $env:SystemDrive\go-amd64.msi -Uri $env:GOLANG_URL; `
|
||||||
$sha256 = 'f7d54883e9bb653b1a50061a7fa42a6503c680a25cee32f16ccba51a77b0c83b'; `
|
$sha256 = 'bf3c475726c9165eb5d809e1bb4ce33550a25850495aac0a5df6d0df05930936'; `
|
||||||
`
|
`
|
||||||
Write-Host ('Verifying SHA256 ({0}) ...' -f $sha256); `
|
Write-Host ('Verifying SHA256 ({0}) ...' -f $sha256); `
|
||||||
if ((Get-FileHash $env:SystemDrive\go-amd64.msi -Algorithm sha256).Hash -ne $sha256) { `
|
if ((Get-FileHash $env:SystemDrive\go-amd64.msi -Algorithm sha256).Hash -ne $sha256) { `
|
||||||
@ -141,8 +141,11 @@ RUN Set-Location -Path $env:SystemDrive\.; `
|
|||||||
--quiet `
|
--quiet `
|
||||||
--wait `
|
--wait `
|
||||||
--norestart `
|
--norestart `
|
||||||
--nocache modify `
|
--nocache `
|
||||||
--installPath """${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\BuildTools""" `
|
--installPath """${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\BuildTools""" `
|
||||||
|
--channelUri https://aka.ms/vs/16/release/channel `
|
||||||
|
--installChannelUri https://aka.ms/vs/16/release/channel `
|
||||||
|
--channelId VisualStudio.16.Release `
|
||||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2019
|
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2019
|
||||||
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 `
|
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 `
|
||||||
--add Microsoft.VisualStudio.Component.VC.CMake.Project; `
|
--add Microsoft.VisualStudio.Component.VC.CMake.Project; `
|
||||||
|
Loading…
Reference in New Issue
Block a user