33set -exo pipefail
44
55script_dir=" ` cd $( dirname $0 ) ; pwd` "
6+ source " $script_dir /../oci_exe.sh"
7+ exe=$( ociExe)
68
79TAG=$( date ' +%Y%m%d' ) -$( git rev-parse --short HEAD)
810VCS_REF=$( git rev-parse --short HEAD)
@@ -34,15 +36,15 @@ emscripten_debug_c_flags="-fno-lto -Wno-warn-absolute-paths"
3436wasi_debug_ld_flags=" -fno-lto -lwasi-emulated-process-clocks -lwasi-emulated-signal -lc-printscan-long-double"
3537wasi_debug_c_flags=" -fno-lto -D_WASI_EMULATED_PROCESS_CLOCKS -D_WASI_EMULATED_SIGNAL"
3638
37- docker build -t itkwasm/emscripten-base:latest \
39+ $exe build -t itkwasm/emscripten-base:latest \
3840 --build-arg IMAGE=itkwasm/emscripten-base \
3941 --build-arg CMAKE_BUILD_TYPE=Release \
4042 --build-arg VCS_REF=${VCS_REF} \
4143 --build-arg VCS_URL=${VCS_URL} \
4244 --build-arg BUILD_DATE=${BUILD_DATE} \
4345 $script_dir $@
4446if $version_tag ; then
45- docker build -t itkwasm/emscripten-base:${TAG} \
47+ $exe build -t itkwasm/emscripten-base:${TAG} \
4648 --build-arg IMAGE=itkwasm/emscripten-base \
4749 --build-arg CMAKE_BUILD_TYPE=Release \
4850 --build-arg VERSION=${TAG} \
@@ -53,7 +55,7 @@ if $version_tag; then
5355fi
5456
5557if $wasi ; then
56- docker build -t itkwasm/wasi-base:latest \
58+ $exe build -t itkwasm/wasi-base:latest \
5759 --build-arg IMAGE=itkwasm/wasi-base \
5860 --build-arg CMAKE_BUILD_TYPE=Release \
5961 --build-arg VCS_REF=${VCS_REF} \
@@ -64,7 +66,7 @@ if $wasi; then
6466 --build-arg CFLAGS=" ${wasi_c_flags} " \
6567 $script_dir $@
6668 if $version_tag ; then
67- docker build -t itkwasm/wasi-base:${TAG} \
69+ $exe build -t itkwasm/wasi-base:${TAG} \
6870 --build-arg IMAGE=itkwasm/wasi-base \
6971 --build-arg CMAKE_BUILD_TYPE=Release \
7072 --build-arg VERSION=${TAG} \
8082
8183
8284if $debug ; then
83- docker build -t itkwasm/emscripten-base:latest-debug \
85+ $exe build -t itkwasm/emscripten-base:latest-debug \
8486 --build-arg IMAGE=itkwasm/emscripten-base \
8587 --build-arg CMAKE_BUILD_TYPE=Debug \
8688 --build-arg USE_DCMTK=OFF \
@@ -91,7 +93,7 @@ if $debug; then
9193 --build-arg CFLAGS=" ${emscripten_debug_c_flags} " \
9294 $script_dir $@
9395 if $version_tag ; then
94- docker build -t itkwasm/emscripten-base:${TAG} -debug \
96+ $exe build -t itkwasm/emscripten-base:${TAG} -debug \
9597 --build-arg IMAGE=itkwasm/emscripten-base \
9698 --build-arg CMAKE_BUILD_TYPE=Debug \
9799 --build-arg USE_DCMTK=OFF \
@@ -104,7 +106,7 @@ if $debug; then
104106 $script_dir $@
105107 fi
106108 if $wasi ; then
107- docker build -t itkwasm/wasi-base:latest-debug \
109+ $exe build -t itkwasm/wasi-base:latest-debug \
108110 --build-arg IMAGE=itkwasm/wasi-base \
109111 --build-arg CMAKE_BUILD_TYPE=Debug \
110112 --build-arg VCS_REF=${VCS_REF} \
@@ -115,7 +117,7 @@ if $debug; then
115117 --build-arg CFLAGS=" ${wasi_debug_c_flags} " \
116118 $script_dir $@
117119 if $version_tag ; then
118- docker build -t itkwasm/wasi-base:${TAG} -debug \
120+ $exe build -t itkwasm/wasi-base:${TAG} -debug \
119121 --build-arg IMAGE=itkwasm/wasi-base \
120122 --build-arg CMAKE_BUILD_TYPE=Debug \
121123 --build-arg VERSION=${TAG} \
0 commit comments