diff options
author | Travis Chen | 2021-10-31 23:02:26 -0700 |
---|---|---|
committer | Travis Chen | 2021-10-31 23:02:26 -0700 |
commit | 76c6bdb6aaa99217c4c6ba69062f9cf2693569da (patch) | |
tree | 74d3233b1508920abd1b1d0659847f7062523544 | |
parent | f5163bac7ac1c1fedd25b2a5d6652833ae9d2745 (diff) | |
download | aur-76c6bdb6aaa99217c4c6ba69062f9cf2693569da.tar.gz |
Add rootless Docker compatibility
We also manually set the DNS in the event that systemd-resolved is used (which
overwrites resolv.conf with a local address).
-rwxr-xr-x | docker_build.bash | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker_build.bash b/docker_build.bash index 60a426e59e4a..55e9683945b3 100755 --- a/docker_build.bash +++ b/docker_build.bash @@ -4,8 +4,10 @@ # install the `makedepends` nor the `checkdepends`. Run from current directory. docker run --rm \ + --dns ${DNS:-8.8.8.8} \ --env BUILD_USER_GID=$(id -u) \ --env BUILD_USER_UID=$(id -u) \ + --env ROOTLESS=${ROOTLESS:-no} \ --volume $(pwd):/mnt/project \ implementing/builder makepkg |