1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/project/make/.ensure-busybox
Tianon Gravi 51b5dc185b Update emptyfs support to work properly if scratch is already an image
Also, this decouples the emptyfs script from the busybox one -- they're now functionally separate thanks to the scratch no-op change. 👍

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
2015-01-20 16:26:04 -07:00

10 lines
201 B
Bash

#!/bin/bash
set -e
if ! docker inspect busybox &> /dev/null; then
if [ -d /docker-busybox ]; then
( set -x; docker build -t busybox /docker-busybox )
else
( set -x; docker pull busybox )
fi
fi