16616: make sure that docker uses the large partition on the compute
authorWard Vandewege <ward@curii.com>
Wed, 29 Jul 2020 15:09:24 +0000 (11:09 -0400)
committerWard Vandewege <ward@curii.com>
Wed, 29 Jul 2020 15:09:24 +0000 (11:09 -0400)
       nodes.

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

tools/compute-images/scripts/usr-local-bin-ensure-encrypted-partitions.sh

index b24e437f06b893f37e5235c08417bb5011b8c524..08579bf192fe5038974119e99743cf43961ca701 100644 (file)
@@ -130,6 +130,13 @@ MOUNTOPTIONS="async"
 mount -o ${MOUNTOPTIONS} "$CRYPTPATH" "$MOUNTPATH"
 chmod a+w,+t "$MOUNTPATH"
 
+# Make sure docker uses the big partition
+cat <<EOF > /etc/docker/daemon.json
+{
+    "data-root": "$MOUNTPATH/docker-data"
+}
+EOF
+
 # restart docker
 if [ -d /etc/sv/docker.io ]
 then