From 45089267983376caea0d1e34dd92e9bb3f539010 Mon Sep 17 00:00:00 2001 From: Gertjan van Zwieten Date: Thu, 30 Dec 2021 23:31:36 +0100 Subject: [PATCH] add nutils.SI to container image This match adds the external SI module to the nutils container. --- devtools/container/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/container/build.py b/devtools/container/build.py index 04a9c62f7..49a58902f 100644 --- a/devtools/container/build.py +++ b/devtools/container/build.py @@ -57,9 +57,10 @@ if not examples.exists(): raise SystemExit(f'cannot find example dir: {examples}') - container = stack.enter_context(Container.new_from(base, network='none', mounts=[Mount(src=dist, dst='/mnt')])) + container = stack.enter_context(Container.new_from(base, mounts=[Mount(src=dist, dst='/mnt')])) container.run('pip', 'install', '--no-cache-dir', '--no-index', '--find-links', 'file:///mnt/', 'nutils', env=dict(PYTHONHASHSEED='0')) + container.run('pip', 'install', '--no-cache-dir', 'https://github.com/evalf/nutils-SI/archive/main.tar.gz', env=dict(PYTHONHASHSEED='0')) container.add_label('org.opencontainers.image.url', 'https://github.com/evalf/nutils') container.add_label('org.opencontainers.image.source', 'https://github.com/evalf/nutils') container.add_label('org.opencontainers.image.authors', 'Evalf')