Merge branch 'master' of github.com:dxrto/base
commit
e53b48ad7d
@ -1,13 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
DOCKER_EXEC="${DOCKER_EXEC:-docker}";
|
||||||
IMAGE="${1:-d.xr.to/base}";
|
IMAGE="${1:-d.xr.to/base}";
|
||||||
MAINTAINER="${2:-=@eater.me}";
|
MAINTAINER="${2:-=@eater.me}";
|
||||||
DOCKER_BUILDER="${DOCKER_BUILDER:-docker}"
|
|
||||||
|
build_dir="$(dirname "$0")/build"
|
||||||
|
test -d "${build_dir}" && rm -rf "${build_dir}";
|
||||||
|
|
||||||
for toolbox in "none" "toybox" "busybox" "default"; do
|
for toolbox in "none" "toybox" "busybox" "default"; do
|
||||||
make IMAGE="${IMAGE}:${toolbox}" TOOLBOX="${toolbox}" DOCKER_BUILDER="${DOCKER_BUILDER}";
|
make IMAGE="${IMAGE}:${toolbox}" TOOLBOX="${toolbox}" DOCKER_EXEC="${DOCKER_EXEC}" all > "${toolbox}.log";
|
||||||
done
|
done
|
||||||
docker tag "${IMAGE}:toybox" "${IMAGE}:latest";
|
$DOCKER_EXEC tag "${IMAGE}:toybox" "${IMAGE}:latest";
|
||||||
make IMAGE="${IMAGE}:glibc" TOOLBOX="toybox" ARCH="x86_64" DOCKER_BUILDER="${DOCKER_BUILDER}"
|
make IMAGE="${IMAGE}:glibc" TOOLBOX="toybox" ARCH="x86_64" DOCKER_EXEC="${DOCKER_EXEC}" all > "glibc.log";
|
||||||
|
|
||||||
if [ "${PUSH}" = "y" ]; then
|
|
||||||
docker push "${IMAGE}";
|
|
||||||
fi
|
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
xbps-install -yR /tmp/xbps "$@" && xbps-remove -Oo && rm -rf /var/cache/xbps/* /tmp/xbps
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
xbps-install -Sy "$@" && xbps-remove -Oo && rm -rf /var/cache/xbps/* /tmp/xbps
|
Loading…
Reference in New Issue