2024-03-24 21:22:34 +00:00
|
|
|
UBUNTU_BUILD=${UBUNTU_BUILD:-0}
|
|
|
|
TOOLCHAINS_BUILD=${TOOLCHAINS_BUILD:-0}
|
2024-04-01 22:50:31 +00:00
|
|
|
|
|
|
|
if [ -n "$USE_PODMAN" ]; then
|
|
|
|
DOCKER_EXEC=$(which podman)
|
|
|
|
else
|
|
|
|
DOCKER_EXEC=$(which docker)
|
|
|
|
fi
|
2024-03-24 21:22:34 +00:00
|
|
|
|
2024-04-04 23:53:50 +00:00
|
|
|
if [ $UBUNTU_BUILD -eq 1 ]; then
|
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
|
2024-04-04 23:53:50 +00:00
|
|
|
else
|
|
|
|
${DOCKER_EXEC} pull wallysoc/ubuntu_wally
|
2024-03-24 21:22:34 +00:00
|
|
|
fi
|
|
|
|
|
2024-04-04 23:53:50 +00:00
|
|
|
if [ $TOOLCHAINS_BUILD -eq 1 ]; then
|
2024-04-01 22:50:31 +00:00
|
|
|
${DOCKER_EXEC} build -t toolchains_wally -f Dockerfile.builds .
|
|
|
|
${DOCKER_EXEC} tag toolchains_wally:latest wallysoc/toolchains_wally:latest
|
2024-04-04 23:53:50 +00:00
|
|
|
else
|
|
|
|
${DOCKER_EXEC} pull wallysoc/toolchains_wally
|
2024-03-24 21:22:34 +00:00
|
|
|
fi
|