diff --git a/.gitignore b/.gitignore index 8c1decb1..c9eb31aa 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ docs/source/_templates/ JADE.egg-info/ jade.egg-info/ build/ +venv/* \ No newline at end of file diff --git a/openmc_test.Dockerfile b/openmc_test.Dockerfile new file mode 100644 index 00000000..d5e176a3 --- /dev/null +++ b/openmc_test.Dockerfile @@ -0,0 +1,23 @@ +FROM openmc/openmc:latest +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt update && apt install -y \ + build-essential tcl-dev less \ + curl python3 python3-pip + +RUN curl -LJO https://github.com/cea-hpc/modules/releases/download/v5.3.1/modules-5.3.1.tar.gz && \ + tar xfz modules-5.3.1.tar.gz && \ + cd modules-5.3.1 && \ + ./configure && \ + make && \ + make install && \ + echo "source /usr/local/Modules/init/sh" >> /root/.bashenv \ + echo "[[ -s ~/.bashenv ]] && source ~/.bashenv" >> /root/.bash_profile \ + echo "[[ -s ~/.bashenv ]] && source ~/.bashenv" >> /root/.bashrc +ENV BASH_ENV=/root/.bashenv + +#RUN pip install install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple jadevv +COPY . /jade +WORKDIR /jade +RUN pip install . +RUN pip install pytest pytest-cov \ No newline at end of file diff --git a/test.Dockerfile b/test.Dockerfile new file mode 100644 index 00000000..ebd6b0eb --- /dev/null +++ b/test.Dockerfile @@ -0,0 +1,23 @@ +FROM ubuntu:22.04 +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt update && apt install -y \ + build-essential tcl-dev less \ + curl python3 python3-pip + +RUN curl -LJO https://github.com/cea-hpc/modules/releases/download/v5.3.1/modules-5.3.1.tar.gz && \ + tar xfz modules-5.3.1.tar.gz && \ + cd modules-5.3.1 && \ + ./configure && \ + make && \ + make install && \ + echo "source /usr/local/Modules/init/sh" >> /root/.bashenv \ + echo "[[ -s ~/.bashenv ]] && source ~/.bashenv" >> /root/.bash_profile \ + echo "[[ -s ~/.bashenv ]] && source ~/.bashenv" >> /root/.bashrc +ENV BASH_ENV=/root/.bashenv + +#RUN pip install install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple jadevv +COPY . /jade +WORKDIR /jade +RUN pip install . +RUN pip install pytest pytest-cov \ No newline at end of file