Skip to content

Commit

Permalink
Docker images for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
JezSw committed Feb 14, 2024
1 parent d3ffc7b commit 604abce
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ docs/source/_templates/
JADE.egg-info/
jade.egg-info/
build/
venv/*
23 changes: 23 additions & 0 deletions openmc_test.Dockerfile
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions test.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 604abce

Please sign in to comment.