Skip to content

Commit

Permalink
[build] switch to 3.3.x in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed May 27, 2024
1 parent 3e31bf2 commit e24cb5e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
14 changes: 7 additions & 7 deletions Docker/github_ci_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,43 +99,43 @@ ENV CPATH=/triqs/include:${CPATH} \
CTEST_PARALLEL_LEVEL=${NCORES} \
TRIQS_ROOT=/triqs

RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/triqs \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/triqs \
&& cd triqs && mkdir -p build && cd build \
&& cmake ../ -DCMAKE_INSTALL_PREFIX=/triqs \
&& make -j$NCORES && ctest -j$NCORES && make install

# dft_tools
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/dft_tools.git \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/dft_tools.git \
&& cd dft_tools && mkdir -p build && cd build \
&& cmake ../ \
&& make -j$NCORES && ctest -j$NCORES && make install

# cthyb
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/cthyb.git \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/cthyb.git \
&& cd cthyb && mkdir -p build && cd build \
&& cmake ../ \
&& make -j$NCORES && ctest -j$NCORES && make install

# hubbardI
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/hubbardI.git \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/hubbardI.git \
&& cd hubbardI && mkdir -p build && cd build \
&& cmake ../ \
&& make -j$NCORES && ctest -j$NCORES && make install

# Hartree-Fock solver
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/hartree_fock.git \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/hartree_fock.git \
&& cd hartree_fock && mkdir -p build && cd build \
&& cmake ../ \
&& make -j$NCORES && ctest -j$NCORES && make install

# maxent needed for doc build
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/maxent.git \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/maxent.git \
&& cd maxent && mkdir -p build && cd build \
&& cmake ../ \
&& make -j$NCORES && ctest -j$NCORES && make install

# install sparse-ir into triqs pythonpath
pip install --target /triqs/lib/python3.10/site-packages sparse-ir[xprec]
RUN pip install --target /triqs/lib/python3.10/site-packages sparse-ir[xprec]

# remove source
RUN cd / && rm -rf source
Expand Down
19 changes: 10 additions & 9 deletions Docker/openmpi_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
libmkl-dev \
libnfft3-dev \
libomp-${LLVM}-dev \
libomp-dev \
libopenblas-dev \
libopenmpi-dev \
libpmi2-0-dev \
Expand Down Expand Up @@ -183,52 +184,52 @@ ENV CPATH=/triqs/include:/usr/include/mkl:${CPATH} \
BLA_VENDOR=Intel10_64_dyn \
TRIQS_ROOT=/triqs

RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/triqs triqs.src \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/triqs triqs.src \
&& mkdir -p triqs.build && cd triqs.build \
&& cmake ../triqs.src -DCMAKE_INSTALL_PREFIX=/triqs \
&& make -j$NCORES && ctest -j$NCORES && make install

# dft_tools
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/dft_tools.git dft_tools.src \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/dft_tools.git dft_tools.src \
&& mkdir -p dft_tools.build && cd dft_tools.build \
&& cmake ../dft_tools.src \
&& make -j$NCORES && ctest -j$NCORES && make install

# cthyb
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/cthyb.git cthyb.src \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/cthyb.git cthyb.src \
&& mkdir -p cthyb.build && cd cthyb.build \
&& cmake ../cthyb.src \
&& make -j$NCORES && ctest -j$NCORES && make install

# maxent
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/maxent.git maxent.src \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/maxent.git maxent.src \
&& mkdir -p maxent.build && cd maxent.build \
&& cmake ../maxent.src \
&& make -j$NCORES && ctest -j$NCORES && make install

# TPRF
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/tprf.git tprf.src \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/tprf.git tprf.src \
&& mkdir -p tprf.build && cd tprf.build \
&& cmake ../tprf.src \
&& make -j$NCORES && make test && make install

# hubbardI
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/hubbardI.git hubbardI.src \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/hubbardI.git hubbardI.src \
&& mkdir -p hubbardI.build && cd hubbardI.build \
&& cmake ../hubbardI.src \
&& make -j$NCORES && ctest -j$NCORES && make install

# hartree_fock
RUN cd /source && git clone -b unstable --depth 1 https://github.com/TRIQS/hartree_fock.git hartree_fock.src \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/TRIQS/hartree_fock.git hartree_fock.src \
&& mkdir -p hartree_fock.build && cd hartree_fock.build \
&& cmake ../hartree_fock.src \
&& make -j$NCORES && ctest -j$NCORES && make install

# install sparse-ir into triqs pythonpath
pip install --target /triqs/lib/python3.10/site-packages sparse-ir[xprec]
RUN pip install --target /triqs/lib/python3.10/site-packages sparse-ir[xprec]

# download solid_dmft and install
RUN cd /source && git clone -b unstable --depth 1 https://github.com/flatironinstitute/solid_dmft.git solid_dmft.src \
RUN cd /source && git clone -b 3.3.x --depth 1 https://github.com/flatironinstitute/solid_dmft.git solid_dmft.src \
&& mkdir -p solid_dmft.build && cd solid_dmft.build \
&& cmake ../solid_dmft.src \
&& make test && make install
Expand Down

0 comments on commit e24cb5e

Please sign in to comment.