Skip to content

Instantly share code, notes, and snippets.

@thaJeztah
Forked from ddebroy/busybox.dockerfile
Last active August 8, 2019 23:09
Show Gist options
  • Save thaJeztah/82d5427b0eae2773a8d6c3a19865ea0c to your computer and use it in GitHub Desktop.
Save thaJeztah/82d5427b0eae2773a8d6c3a19865ea0c to your computer and use it in GitHub Desktop.

Revisions

  1. thaJeztah revised this gist Aug 8, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion busybox.dockerfile
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,10 @@
    #
    # http://github.com/jhowardmsft/busybox

    FROM mcr.microsoft.com/windows/servercore:ltsc2019
    ARG WINDOWS_BASE_IMAGE=mcr.microsoft.com/windows/servercore
    ARG WINDOWS_BASE_IMAGE_TAG=ltsc2019

    FROM ${WINDOWS_BASE_IMAGE}:${WINDOWS_BASE_IMAGE_TAG}
    RUN mkdir C:\tmp && mkdir C:\bin
    ADD http://frippery.org/files/busybox/busybox.exe /bin/
    RUN setx /M PATH "C:\bin;%PATH%"
  2. @ddebroy ddebroy revised this gist May 14, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion busybox.dockerfile
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@
    #
    # http://github.com/jhowardmsft/busybox

    FROM microsoft/windowsservercore
    FROM mcr.microsoft.com/windows/servercore:ltsc2019
    RUN mkdir C:\tmp && mkdir C:\bin
    ADD http://frippery.org/files/busybox/busybox.exe /bin/
    RUN setx /M PATH "C:\bin;%PATH%"
  3. @ddebroy ddebroy created this gist May 14, 2019.
    18 changes: 18 additions & 0 deletions busybox.dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    # Source: http://frippery.org/busybox/
    # This Dockerfile builds a (32-bit) busybox images which is suitable for
    # running many of the integration-cli tests for Docker against a Windows
    # daemon. It will not run on nanoserver as that is 64-bit only.
    #
    # John Howard (IRC jhowardmsft, Email [email protected])
    #
    # To build: docker build -t busybox .
    # To publish: Needs someone with publishing rights
    #
    # http://github.com/jhowardmsft/busybox

    FROM microsoft/windowsservercore
    RUN mkdir C:\tmp && mkdir C:\bin
    ADD http://frippery.org/files/busybox/busybox.exe /bin/
    RUN setx /M PATH "C:\bin;%PATH%"
    RUN powershell busybox.exe --list ^|%{$nul = cmd /c mklink C:\bin\$_.exe busybox.exe}
    CMD ["sh"]