mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #44357 from thaJeztah/22.06_backport_busybox_w32_img
[22.06 backport] integration: download busybox-w32 from GitHub Release
This commit is contained in:
commit
fa3804f8ba
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ FROM ${WINDOWS_BASE_IMAGE}:${WINDOWS_BASE_IMAGE_TAG}
|
||||||
RUN mkdir C:\tmp && mkdir C:\bin
|
RUN mkdir C:\tmp && mkdir C:\bin
|
||||||
ARG BUSYBOX_VERSION
|
ARG BUSYBOX_VERSION
|
||||||
ARG BUSYBOX_SHA256SUM
|
ARG BUSYBOX_SHA256SUM
|
||||||
ADD https://frippery.org/files/busybox/busybox-w32-${BUSYBOX_VERSION}.exe /bin/busybox.exe
|
ADD https://github.com/moby/busybox/releases/download/${BUSYBOX_VERSION}/busybox-w32-${BUSYBOX_VERSION}.exe /bin/busybox.exe
|
||||||
RUN powershell \
|
RUN powershell \
|
||||||
if ((Get-FileHash -Path /bin/busybox.exe -Algorithm SHA256).Hash -ne $Env:BUSYBOX_SHA256SUM) { \
|
if ((Get-FileHash -Path /bin/busybox.exe -Algorithm SHA256).Hash -ne $Env:BUSYBOX_SHA256SUM) { \
|
||||||
Throw \"Checksum validation failed\" \
|
Throw \"Checksum validation failed\" \
|
||||||
|
|
Loading…
Reference in a new issue