autolab / Tango

Standalone RESTful autograding service
http://www.autolabproject.com/
Apache License 2.0
48 stars 60 forks source link

fix: catch the network error in docker build #216

Closed wongsingfo closed 2 years ago

wongsingfo commented 2 years ago

Fixes the issue where if a network error occurs, the docker build process will not be terminated properly. By default, pipeline (curl -sSL https://get.docker.com/ | sh) doesn't produce a failure return code when the last command (sh here) returns zero, even if curl returns non-zero exit status.