[ARVADOS] updated: 05c97120decfeeb9ba2faa20561ee1f37c8293ba
Git user
git at public.curoverse.com
Wed Mar 22 09:29:24 EDT 2017
Summary of changes:
docker/migrate-docker19/migrate.sh | 1 +
sdk/python/arvados/commands/migrate19.py | 3 +++
2 files changed, 4 insertions(+)
via 05c97120decfeeb9ba2faa20561ee1f37c8293ba (commit)
from bbe8547e183a66fd551adffe59fbd4f5c146677c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 05c97120decfeeb9ba2faa20561ee1f37c8293ba
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Tue Mar 21 17:37:30 2017 -0400
8567: Make sure /root/.cache/arvados/docker is tempdir volume mount as well.
diff --git a/docker/migrate-docker19/migrate.sh b/docker/migrate-docker19/migrate.sh
index 58d6665..bdc267a 100755
--- a/docker/migrate-docker19/migrate.sh
+++ b/docker/migrate-docker19/migrate.sh
@@ -6,6 +6,7 @@ function cleanup {
kill $(cat /var/run/docker.pid)
sleep 1
rm -rf /var/lib/docker/*
+ rm -rf /root/.cache/arvados/docker/*
}
trap cleanup EXIT
diff --git a/sdk/python/arvados/commands/migrate19.py b/sdk/python/arvados/commands/migrate19.py
index 3705a95..4be9996 100644
--- a/sdk/python/arvados/commands/migrate19.py
+++ b/sdk/python/arvados/commands/migrate19.py
@@ -154,6 +154,7 @@ def main(arguments=None):
start = time.time()
varlibdocker = tempfile.mkdtemp()
+ dockercache = tempfile.mkdtemp()
try:
with tempfile.NamedTemporaryFile() as envfile:
envfile.write("ARVADOS_API_HOST=%s\n" % (os.environ["ARVADOS_API_HOST"]))
@@ -167,6 +168,7 @@ def main(arguments=None):
"--rm",
"--env-file", envfile.name,
"--volume", "%s:/var/lib/docker" % varlibdocker,
+ "--volume", "%s:/root/.cache/arvados/docker" % dockercache,
"arvados/migrate-docker19",
"/root/migrate.sh",
"%s/%s" % (old_image["collection"], tarfile),
@@ -211,6 +213,7 @@ def main(arguments=None):
failures.append(old_image["collection"])
finally:
shutil.rmtree(varlibdocker)
+ shutil.rmtree(dockercache)
logger.info("Successfully migrated %i images", len(success))
if failures:
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list