mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
51b5dc185b
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>
10 lines
201 B
Bash
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
|