2024-03-24 21:22:34 +00:00
|
|
|
UBUNTU_BUILD=${UBUNTU_BUILD:-0}
|
|
|
|
TOOLCHAINS_BUILD=${TOOLCHAINS_BUILD:-0}
|
2024-03-25 17:43:06 +00:00
|
|
|
DOCKER_EXEC=${DOCKER_EXEC-$(which podman)}
|
2024-03-24 21:22:34 +00:00
|
|
|
|
|
|
|
# if UBUNTU_BUILD is 0, then call function fetch_ubuntu_image
|
|
|
|
# otherwise, call function build_ubuntu_image
|
|
|
|
if [ $UBUNTU_BUILD -eq 0 ]; then
|
2024-03-25 17:43:06 +00:00
|
|
|
${DOCKER_EXEC} pull wallysoc/wally
|
2024-03-24 21:22:34 +00:00
|
|
|
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
|
2024-03-24 21:22:34 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# if TOOLCHAINS_BUILD is 0, then call function fetch_toolchains_image
|
|
|
|
# otherwise, call function build_toolchains_image
|
|
|
|
if [ $TOOLCHAINS_BUILD -eq 0 ]; then
|
2024-03-25 17:43:06 +00:00
|
|
|
${DOCKER_EXEC} pull wallysoc/wally_toolchains
|
2024-03-24 21:22:34 +00:00
|
|
|
else
|
2024-03-25 17:43:06 +00:00
|
|
|
${DOCKER_EXEC} build -t wally_toolchains -f Dockerfile.builds .
|
|
|
|
${DOCKER_EXEC} tag wally_toolchains:latest wallysoc/wally_toolchains:latest
|
2024-03-24 21:22:34 +00:00
|
|
|
fi
|