Skip to content

Commit

Permalink
Override --dns for running containers
Browse files Browse the repository at this point in the history
(cherry picked from commit d3b7bb0)
  • Loading branch information
michaelklishin committed Oct 29, 2024
1 parent e6663af commit 234775a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/build-rpm-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ done
echo "Will now build the RPM in '$build_dir' using image 'erlang-rpm-build-$os_name'"
case $(uname -s) in
Linux)
sudo docker run -i -t -v "$PWD"/"$build_dir":/build/"$build_dir":z "erlang-rpm-build-$os_name";;
sudo docker run --dns 8.8.8.8 -i -t -v "$PWD"/"$build_dir":/build/"$build_dir":z "erlang-rpm-build-$os_name";;
*)
docker run -i -t -v "$PWD"/"$build_dir":/build/"$build_dir":z "erlang-rpm-build-$os_name";;
docker run --dns 8.8.8.8 -i -t -v "$PWD"/"$build_dir":/build/"$build_dir":z "erlang-rpm-build-$os_name";;
esac

0 comments on commit 234775a

Please sign in to comment.