Skip to content

Commit 299a194

Browse files
authored
fix: catch the network error in docker build (#216)
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.
1 parent 4f3661a commit 299a194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN apt-get update && apt-get install -y \
3838
WORKDIR /opt/TangoService/Tango/
3939

4040
# Install Docker from Docker Inc. repositories.
41-
RUN curl -sSL https://get.docker.com/ | sh
41+
RUN curl -sSL https://get.docker.com/ -o get_docker.sh && sh get_docker.sh
4242

4343
# Install the magic wrapper.
4444
ADD ./wrapdocker /usr/local/bin/wrapdocker

0 commit comments

Comments
 (0)