1
0
mirror of https://github.com/docker/docs.git synced 2026-11-03 11:12:47 +03:00
Files
docs/hack/make/dind-dynbinary
2016-09-28 14:17:14 -07:00

24 lines
588 B
Bash

#!/bin/bash
DEST=$1
DOCKERBIN=$DEST/../binary/docker
BUILDDIR=$DEST/../dynbinary/
RPM_PATH=$DEST/../rpm/
build_rpm() {
if [ ! -x $DOCKERBIN ]; then
echo "No docker binary was found to execute. This step requires 'binary' to be run first."
exit 1
fi
$DOCKERBIN -d 2>/dev/null &
$DOCKERBIN build -t centos-build -f Dockerfile.centos ./
$DOCKERBIN run -it --rm --privileged -v /go:/go -v /usr/local:/usr/local -e "KEEPBUNDLE=true" centos-build hack/make.sh dynbinary
# turn off the docker daemon
$DOCKERBIN rmi centos-build
cat /var/run/docker.pid | xargs kill
}
build_rpm