aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Mortier <mort@cantab.net>2019-12-29 15:04:43 +0100
committerRichard Mortier <mort@cantab.net>2019-12-29 15:04:43 +0100
commitf23632e518e2b6c7f17e6d474711cfc384923ea0 (patch)
tree444209cd3b9955f1fce6190c1a4cb2522ab1f582
parent600e4cc06000b2daab291838c9907ac53ab73ccd (diff)
downloaddocker-abuild-f23632e518e2b6c7f17e6d474711cfc384923ea0.tar.bz2
docker-abuild-f23632e518e2b6c7f17e6d474711cfc384923ea0.tar.xz
dabuild: put `.ccache` into a named volume, to support multiarch
closes #48 Signed-off-by: Richard Mortier <mort@cantab.net>
-rw-r--r--Makefile2
-rwxr-xr-xdabuild.in1
2 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 16fbf5f..36ef49a 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
ORG = alpinelinux
IMG = $(ORG)/docker-abuild
-VOLS = bin etc lib sbin usr var
+VOLS = bin etc lib sbin usr var home/builder/.ccache
# BRANCHES := $(shell \
# curl -s https://api.github.com/repos/alpinelinux/aports/branches \
# | jq -r '.[].name' \
diff --git a/dabuild.in b/dabuild.in
index 042d724..c761c7e 100755
--- a/dabuild.in
+++ b/dabuild.in
@@ -70,7 +70,6 @@ fi
## setup volumes; use named volumes as cache if desired
ABUILD_VOLUMES="-v ${HOME}/.abuild:/home/builder/.abuild \
- -v ${HOME}/.ccache:/home/builder/.ccache \
-v ${PWD%/aports/*}/aports:/home/builder/aports \
-v ${ABUILD_PACKAGES}:/home/builder/packages"