diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f097515 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM spack/ubuntu-jammy:latest + +# add Spack bin to the bash +RUN echo 'alias spack=/opt/spack/bin/spack' >> /root/.bashrc + +# install latest pip2spack +RUN python3 -m pip install --upgrade pip +RUN python3 -m pip install pip2spack + +ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l"] diff --git a/Makefile b/Makefile index b94d773..4386726 100644 --- a/Makefile +++ b/Makefile @@ -35,5 +35,13 @@ build: @echo "Building... Done" .PHONY: publish -publish: clean format build - twine upload dist/* \ No newline at end of file +publish: + twine upload dist/* + +.PHONY: dbuild +dbuild: + docker build -t pip2spack . + +.PHONY: drun +drun: + docker run -it pip2spack