summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-04 17:15:49 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-04 17:15:49 +0200
commitd6445f55672d1bb5c7ddf032ae588d365e1b7894 (patch)
tree4fa42e51030f3ecb7f111d01d2e0d5d27147b3ae
parent69807456e188e2964f94c22a8acf4f77c0aefb39 (diff)
Add script for making the ccache volume.
-rwxr-xr-xmake-ccache-volume7
1 files changed, 7 insertions, 0 deletions
diff --git a/make-ccache-volume b/make-ccache-volume
new file mode 100755
index 0000000..c79eaa1
--- /dev/null
+++ b/make-ccache-volume
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+docker volume create ccache
+id=$(docker run --mount source=ccache,target=/ccache -itd ubuntu-18.04-64 bash)
+docker exec $id mkdir /ccache/ubuntu-18.04-64
+docker exec $id chown carl /ccache/ubuntu-18.04-64
+docker kill $id