Skip to content

Commit cac0f0a

Browse files
committed
Make dockerize.sh stricter
Previously it may confusingly `docker run` an old image even when `docker build` failed
1 parent 149dae8 commit cac0f0a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

ML-Frameworks/pytorch-aarch64/dockerize.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# limitations under the License.
1818
# *******************************************************************************
1919

20+
set -eux -o pipefail
21+
2022
help_str="dockerize.sh takes a PyTorch wheel as the first argument and an ao wheel
2123
as the second argument. It installs the wheel inside a Docker container with examples
2224
and requirements. The docker image will then be run unless you pass in the optional

ML-Frameworks/tensorflow-aarch64/dockerize.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# limitations under the License.
1818
# *******************************************************************************
1919

20+
set -eux -o pipefail
21+
2022
help_str="dockerize.sh takes a TensorFlow wheel as argument. It \
2123
installs the wheel inside a Docker container with examples and requirements."
2224
if [ "$#" -ne 1 ]; then

0 commit comments

Comments
 (0)