Build docker containers quickly with Spack integration.
Project description
Boxmake
Build docker images quickly with Spack integration.
Install
$ pip3 install boxmake
Usage
Create image
$ boxmake create \
--image centos:8 \
--name my-centos-image \
-p py-numpy \
-p autodiff
or
$ boxmake create \
--image ubuntu:22.04 \
--name my-ubuntu-image \
--no-spack
or
$ cat test.json
{
"image": "ubuntu:22.04",
"name": "test-file-kokkos",
"spack": true,
"spack-packages": [
"kokkos"
],
"os-packages": [
"neovim"
]
}
$ boxmake create -f test.json
List images
$ boxmake list
Boxmake images:
====================
my-centos-image (centos:8): - 2022-01-01 00:00:00
+ py-numpy
+ autodiff
my-ubuntu-image (ubuntu:22.04): - 2022-01-01 00:00:00
No spack packages or spack installed
test-file-kokkos (ubuntu:22.04): - 2022-01-01 00:00:00
+ kokkos
Add package to image
$ boxmake add -n my-ubuntu-image -p kokkos -a neovim
$ boxmake list
Boxmake images:
====================
my-centos-image (centos:8): - 2022-01-01 00:00:00
+ py-numpy
+ autodiff
my-ubuntu-image (ubuntu:22.04): - 2022-01-01 00:00:00
+ kokkos
test-file-kokkos (ubuntu:22.04): - 2022-01-01 00:00:00
+ kokkos
Examples
Create an E4S image loaded with intel oneapi compilers and create a centos:8 image loaded with kokkos in a single call:
$ boxmake create \
--image ecpe4s/ubuntu20.04-runner-x86_64:2022-12-01 \
--name e4s-intel \
-p intel-oneapi-compilers \
&& \
boxmake create \
--image centos:8 \
--name centos8-kokkos \
-p kokkos
$ boxmake list
Boxmake images:
====================
cameron-kokkos (centos:8): - 2022-12-31 11:29:49.014343
+ kokkos
e4s-intel (ecpe4s/ubuntu20.04-runner-x86_64:2022-12-01): - 2022-12-31 11:35:53.293490
+ intel-oneapi-compilers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
boxmake-0.0.13.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file boxmake-0.0.13.tar.gz
.
File metadata
- Download URL: boxmake-0.0.13.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e85238ae0bc7ab73ffa750a0dc399a722e1e4dd288a9844af85b53d3f8d024d3 |
|
MD5 | 61b0f2912a3370e257c213ac9ab77a54 |
|
BLAKE2b-256 | 1d408147e36e0b6b12bfeb0a3d52c94dbe1a0e926468755bf3127771f450765e |
File details
Details for the file boxmake-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: boxmake-0.0.13-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77792e13d04a487b2dc01535f6b594a57dcf647b4b35bca2207c4e4390867c4b |
|
MD5 | a69ceb03460bb425c1c74efdef22130f |
|
BLAKE2b-256 | 8f88fd00192de877ed2825caf1c78a188d997d68c7355f2dbb0404a12656e0a3 |