Skip to content
Snippets Groups Projects
Commit a13adfa3 authored by Adam Fekete's avatar Adam Fekete
Browse files

cleanup

parent 58102a46
No related branches found
No related tags found
1 merge request!121Draft: Resolve "Refactoring the infrastructure"
...@@ -85,9 +85,6 @@ ...@@ -85,9 +85,6 @@
[submodule "3rdparty/atomic-features-package"] [submodule "3rdparty/atomic-features-package"]
path = 3rdparty/atomic-features-package path = 3rdparty/atomic-features-package
url = https://gitlab.mpcdf.mpg.de/nomad-lab/atomic-features-package.git url = https://gitlab.mpcdf.mpg.de/nomad-lab/atomic-features-package.git
[submodule "3rdparty/cpp_sisso"]
path = 3rdparty/cpp_sisso
url = https://gitlab.mpcdf.mpg.de/nomad-lab/cpp_sisso.git
[submodule "tutorials/analytics-sgd-alloys-oxygen-reduction-evolution"] [submodule "tutorials/analytics-sgd-alloys-oxygen-reduction-evolution"]
path = tutorials/analytics-sgd-alloys-oxygen-reduction-evolution path = tutorials/analytics-sgd-alloys-oxygen-reduction-evolution
url = https://gitlab.mpcdf.mpg.de/nomad-lab/analytics-sgd-alloys-oxygen-reduction-evolution.git url = https://gitlab.mpcdf.mpg.de/nomad-lab/analytics-sgd-alloys-oxygen-reduction-evolution.git
......
Subproject commit 7cf0dc12bae7481aaed1bb5660416dcb05bc6c44
ARG BUILDER_BASE_IMAGE=jupyter/tensorflow-notebook:2022-06-27
FROM $BUILDER_BASE_IMAGE
# more: https://sissopp_developers.gitlab.io/sissopp/quick_start/Installation.html
# ================================================================================
# Linux applications and libraries
# ================================================================================
USER root
RUN apt-get update \
&& apt-get install --yes --quiet --no-install-recommends \
gcc \
gfortran \
cmake \
liblapack-dev \
libblas-dev \
# zlib1g-dev \
libz-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-mpi-dev \
libboost-serialization-dev \
openssh-client \
dvipng \
&& rm -rf /var/lib/apt/lists/*
RUN mamba install --quiet --yes \
'numpy' \
'pandas' \
'scipy' \
'seaborn' \
'scikit-learn' \
'toml' \
'pytest' \
&& mamba clean --all -f -y \
&& fix-permissions "${CONDA_DIR}" \
&& fix-permissions "/home/${NB_USER}"
# ================================================================================
# SISSO++
# ================================================================================
WORKDIR /opt/cpp_sisso
COPY 3rdparty/cpp_sisso .
RUN mkdir build && cd build \
&& cmake -C ../cmake/toolchains/gnu_param_py.cmake -DEXTERNAL_BOOST=ON ../ \
&& make \
&& make install
# make test
ARG BUILDER_BASE_IMAGE=jupyter/tensorflow-notebook:2022-06-27 ARG BUILDER_BASE_IMAGE=jupyter/tensorflow-notebook:2022-06-27
FROM $BUILDER_BASE_IMAGE FROM $BUILDER_BASE_IMAGE
# Read more: https://gitlab.com/qmml/qmmlpack
# ================================================================================ # ================================================================================
# Linux applications and libraries # Linux applications and libraries
# ================================================================================ # ================================================================================
...@@ -14,13 +16,12 @@ RUN apt-get update \ ...@@ -14,13 +16,12 @@ RUN apt-get update \
lsof \ lsof \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# RUN mamba install --quiet --yes \ # RUN pip install --no-cache-dir pytest
# 'pytest' \ RUN mamba install --quiet --yes \
# && mamba clean --all -f -y \ 'pytest' \
# && fix-permissions "${CONDA_DIR}" \ && mamba clean --all -f -y \
# && fix-permissions "/home/${NB_USER}" && fix-permissions "${CONDA_DIR}" \
&& fix-permissions "/home/${NB_USER}"
RUN pip install --no-cache-dir pytest
# ================================================================================ # ================================================================================
...@@ -36,9 +37,13 @@ ENV TMPDIR "/tmp/" ...@@ -36,9 +37,13 @@ ENV TMPDIR "/tmp/"
RUN ./make --debug --verbose cpp --include-path /usr/include/gsl/ --library-path /usr/lib/ RUN ./make --debug --verbose cpp --include-path /usr/include/gsl/ --library-path /usr/lib/
RUN ./make --debug --verbose python --include-path /usr/include/gsl/ --library-path /usr/lib/ RUN ./make --debug --verbose python --include-path /usr/include/gsl/ --library-path /usr/lib/
# RUN ./make --debug --verbose install # RUN ./make --verbose install
ENV PYTHONPATH "/opt/qmmlpack/python:$PYTHONPATH" ENV PYTHONPATH "/opt/qmmlpack/python:$PYTHONPATH"
# https://gitlab.com/qmml/qmmlpack
# ================================================================================
# Testing (it also runs durign the build process)
# ================================================================================
# RUN ./build/cpptests \ # RUN ./build/cpptests \
# && pytest ./python/tests/ # && pytest ./python/tests/
ARG BUILDER_BASE_IMAGE=jupyter/tensorflow-notebook:2022-06-27 ARG BUILDER_BASE_IMAGE=jupyter/tensorflow-notebook:2022-06-27
FROM $BUILDER_BASE_IMAGE FROM $BUILDER_BASE_IMAGE
# more: https://sissopp_developers.gitlab.io/sissopp/quick_start/Installation.html # Read more: https://sissopp_developers.gitlab.io/sissopp/quick_start/Installation.html
# ================================================================================ # ================================================================================
# Linux applications and libraries # Linux applications and libraries
...@@ -44,4 +44,9 @@ RUN mkdir build && cd build \ ...@@ -44,4 +44,9 @@ RUN mkdir build && cd build \
&& make \ && make \
&& make install && make install
# ================================================================================
# Testing
# ================================================================================
RUN pytest tests/pytest RUN pytest tests/pytest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment