Files
xx/hack/dev-shell
Tonis Tiigi 79e5cecb5d more darwin compatibility and testing
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-05-05 12:06:08 -07:00

11 lines
384 B
Bash
Executable File

#!/usr/bin/env sh
docker buildx build --load -t tonistiigi/xx:dev --build-arg TEST_BASE_TYPE --build-arg TEST_BASE_IMAGE --build-arg TEST_WITH_DARWIN --target=dev ./base
if ! docker volume inspect xx-pkg-cache >/dev/null 2>&1; then
docker volume create xx-pkg-cache >/dev/null 2>&1
fi
docker run -it --rm -v xx-pkg-cache:/pkg-cache tonistiigi/xx:dev
docker rmi tonistiigi/xx:dev