summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Chen2021-10-31 23:02:26 -0700
committerTravis Chen2021-10-31 23:02:26 -0700
commit76c6bdb6aaa99217c4c6ba69062f9cf2693569da (patch)
tree74d3233b1508920abd1b1d0659847f7062523544
parentf5163bac7ac1c1fedd25b2a5d6652833ae9d2745 (diff)
downloadaur-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-xdocker_build.bash2
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