From 3b2243cf158595ee7020a57f609d2da72c7a20f3 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Fri, 27 Dec 2024 17:18:57 +0900 Subject: [PATCH] Using ADD instruction instead of PowerShell download --- Dockerfiles/build-mysql/windows/Dockerfile.agent | 3 ++- Dockerfiles/build-mysql/windows/Dockerfile.agent2 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfiles/build-mysql/windows/Dockerfile.agent b/Dockerfiles/build-mysql/windows/Dockerfile.agent index 16ee42867..738778e77 100644 --- a/Dockerfiles/build-mysql/windows/Dockerfile.agent +++ b/Dockerfiles/build-mysql/windows/Dockerfile.agent @@ -30,7 +30,8 @@ LABEL org.opencontainers.image.title="Zabbix agent build (Windows)" ` SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] -RUN Set-Location -Path $env:SystemDrive\.; ` +RUN --mount=from=config_templates,target=/tmp/conf \ + Set-Location -Path $env:SystemDrive\.; ` ` New-Item -ItemType directory -Path $env:SystemDrive\zabbix_src | Out-Null; ` New-Item -ItemType directory -Path $env:ZBX_OUTPUT_DIR | Out-Null; ` diff --git a/Dockerfiles/build-mysql/windows/Dockerfile.agent2 b/Dockerfiles/build-mysql/windows/Dockerfile.agent2 index 2bb394f46..d1e0836c5 100644 --- a/Dockerfiles/build-mysql/windows/Dockerfile.agent2 +++ b/Dockerfiles/build-mysql/windows/Dockerfile.agent2 @@ -40,7 +40,8 @@ LABEL org.opencontainers.image.title="Zabbix agent 2 build (Windows)" ` org.opencontainers.image.version="${ZBX_VERSION}" ` org.opencontainers.image.source="${ZBX_SOURCES}" -RUN Set-Location -Path $env:SystemDrive\.; ` +RUN --mount=from=config_templates,target=/tmp/conf \ + Set-Location -Path $env:SystemDrive\.; ` ` New-Item -ItemType directory -Path $env:ZBX_SOURCES_DIR | Out-Null; ` New-Item -ItemType directory -Path $env:ZBX_OUTPUT_DIR | Out-Null; `