Skip to content

Commit

Permalink
add nutils.SI to container image
Browse files Browse the repository at this point in the history
This match adds the external SI module to the nutils container.
  • Loading branch information
gertjanvanzwieten committed Dec 30, 2021
1 parent d0bb13e commit 4508926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devtools/container/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4508926

Please sign in to comment.