cvw/docs/docker/get_images.sh

26 lines
870 B
Bash
Raw Normal View History

UBUNTU_BUILD=${UBUNTU_BUILD:-0}
TOOLCHAINS_BUILD=${TOOLCHAINS_BUILD:-0}
if [ -n "$USE_PODMAN" ]; then
DOCKER_EXEC=$(which podman)
else
DOCKER_EXEC=$(which docker)
fi
# if UBUNTU_BUILD is 0, then call function fetch_ubuntu_image
# otherwise, call function build_ubuntu_image
if [ $UBUNTU_BUILD -eq 0 ]; then
${DOCKER_EXEC} pull wallysoc/ubuntu_wally
else
2024-03-25 17:43:06 +00:00
${DOCKER_EXEC} build -t ubuntu_wally -f Dockerfile.ubuntu .
${DOCKER_EXEC} tag ubuntu_wally:latest wallysoc/ubuntu_wally:latest
fi
# if TOOLCHAINS_BUILD is 0, then call function fetch_toolchains_image
# otherwise, call function build_toolchains_image
if [ $TOOLCHAINS_BUILD -eq 0 ]; then
${DOCKER_EXEC} pull wallysoc/toolchains_wally
else
${DOCKER_EXEC} build -t toolchains_wally -f Dockerfile.builds .
${DOCKER_EXEC} tag toolchains_wally:latest wallysoc/toolchains_wally:latest
fi