Add xbps-local and xbps-remote and logging
parent
5f6599c893
commit
770bd1f250
@ -1,8 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
DOCKER_EXEC="${DOCKER_EXEC:-docker}";
|
||||
IMAGE="${1:-d.xr.to/base}";
|
||||
MAINTAINER="${2:-=@eater.me}";
|
||||
build_dir="$(dirname "$0")/build"
|
||||
test -d "${build_dir}" && rm -rf "${build_dir}";
|
||||
|
||||
for toolbox in "none" "toybox" "busybox" "default"; do
|
||||
make IMAGE="${IMAGE}:${toolbox}" TOOLBOX="${toolbox}";
|
||||
make IMAGE="${IMAGE}:${toolbox}" TOOLBOX="${toolbox}" DOCKER_EXEC="${DOCKER_EXEC}" all > "${toolbox}.log";
|
||||
done
|
||||
docker tag "${IMAGE}:toybox" "${IMAGE}:latest";
|
||||
make IMAGE="${IMAGE}:glibc" TOOLBOX="toybox" ARCH="x86_64"
|
||||
$DOCKER_EXEC tag "${IMAGE}:toybox" "${IMAGE}:latest";
|
||||
make IMAGE="${IMAGE}:glibc" TOOLBOX="toybox" ARCH="x86_64" DOCKER_EXEC="${DOCKER_EXEC}" all > "glibc.log";
|
||||
|
@ -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