From 8164f298f9c150f7c72cea8148340f0dd6013f1a Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 27 Aug 2019 23:06:28 +0200 Subject: [PATCH] vendor jhowardmsft/busybox taken from the 1.1 tag at https://github.com/jhowardmsft/busybox/tree/v1.1 Signed-off-by: Sebastiaan van Stijn --- contrib/busybox/Dockerfile | 18 ++++++++++++++++++ contrib/busybox/LICENSE | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 contrib/busybox/Dockerfile create mode 100644 contrib/busybox/LICENSE diff --git a/contrib/busybox/Dockerfile b/contrib/busybox/Dockerfile new file mode 100644 index 0000000000..9e63f9590b --- /dev/null +++ b/contrib/busybox/Dockerfile @@ -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 john.howard@microsoft.com) +# +# 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"] \ No newline at end of file diff --git a/contrib/busybox/LICENSE b/contrib/busybox/LICENSE new file mode 100644 index 0000000000..178d799093 --- /dev/null +++ b/contrib/busybox/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 John Howard (Microsoft) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.