Commit 7b58dfb4 authored by Jochen Schulz's avatar Jochen Schulz
Browse files

added singularity container description for building and using proxpython

parent 25a46fa1
Bootstrap: docker
From: python:3.8.5-slim-buster
%setup
mkdir -p $SINGULARITY_ROOTFS/code
cp poetry.lock $SINGULARITY_ROOTFS/code/
cp pyproject.toml $SINGULARITY_ROOTFS/code/
%post
apt-get -qyy update
env DEBIAN_FRONTEND=noninteractive apt-get -qyy install -o APT::Install-Recommends=false -o APT::Install-Suggests=false \
git cmake ninja-build libscalapack-openmpi-dev \
build-essential curl
apt-get clean
export POETRY_HOME=/etc/poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
ln -s /etc/poetry/bin/poetry /usr/local/bin/poetry
chmod a+rX /etc/poetry/bin/poetry
export PIP_NO_CACHE_DIR=off
export PIP_DISABLE_PIP_VERSION_CHECK=on
cd /code
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi
%runscript
exec poetry shell "$@"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment