Skip to content

Commit

Permalink
added build of cubit learn
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Apr 3, 2021
1 parent 3a9a910 commit b6d1ac0
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -186,30 +186,35 @@ RUN if [ "$include_neutronics" = "true" ] ; \
pip install openmc_data_downloader ; \
fi

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN if [ "$include_neutronics" = "true" ] ; \
wget https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/master/Linux/Coreform-Cubit-master-b7317c72-Lin64.deb ; \
dpkg -i Coreform-Cubit-master-b7317c72-Lin64.deb ; \
fi

# COPY requirements.txt requirements.txt
# RUN pip install -r requirements.txt

ENV OPENMC_CROSS_SECTIONS=/root/nndc_hdf5/cross_sections.xml
ENV PATH="/MOAB/build/bin:${PATH}"
ENV PATH="/DAGMC/bin:${PATH}"
# ENV OPENMC_CROSS_SECTIONS=/root/nndc_hdf5/cross_sections.xml
# ENV PATH="/MOAB/build/bin:${PATH}"
# ENV PATH="/DAGMC/bin:${PATH}"

RUN mkdir /home/paramak
EXPOSE 8888
WORKDIR /home/paramak
# RUN mkdir /home/paramak
# EXPOSE 8888
# WORKDIR /home/paramak


FROM dependencies as final
# FROM dependencies as final

COPY run_tests.sh run_tests.sh
COPY paramak paramak/
COPY examples examples/
COPY setup.py setup.py
COPY tests tests/
COPY README.md README.md
# COPY run_tests.sh run_tests.sh
# COPY paramak paramak/
# COPY examples examples/
# COPY setup.py setup.py
# COPY tests tests/
# COPY README.md README.md

# using setup.py instead of pip due to https://github.com/pypa/pip/issues/5816
RUN python setup.py install
# # using setup.py instead of pip due to https://github.com/pypa/pip/issues/5816
# RUN python setup.py install

# this helps prevent the kernal failing
RUN echo "#!/bin/bash\n\njupyter lab --notebook-dir=/home/paramak --port=8888 --no-browser --ip=0.0.0.0 --allow-root" >> /home/paramak/docker-cmd.sh
CMD bash /home/paramak/docker-cmd.sh
# # this helps prevent the kernal failing
# RUN echo "#!/bin/bash\n\njupyter lab --notebook-dir=/home/paramak --port=8888 --no-browser --ip=0.0.0.0 --allow-root" >> /home/paramak/docker-cmd.sh
# CMD bash /home/paramak/docker-cmd.sh

0 comments on commit b6d1ac0

Please sign in to comment.