-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:22.04 | ||
|
||
WORKDIR /home | ||
COPY . . | ||
|
||
RUN apt -y update | ||
RUN apt -y upgrade | ||
RUN apt -y install --no-install-recommends wget git ca-certificates make g++ mpi-default-dev libboost-dev libboost-program-options-dev libboost-filesystem-dev libboost-date-time-dev libboost-iostreams-dev libtool yasm | ||
|
||
RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.3/cmake-3.27.3-linux-x86_64.tar.gz | ||
RUN tar -xvf /home/cmake-3.27.3-linux-x86_64.tar.gz | ||
RUN git clone https://github.com/matsengrp/larch.git | ||
#RUN git submodule set-url deps/usher https://github.com/matsengrp/usher.git | ||
WORKDIR /home/larch/deps | ||
RUN echo "[submodule \"deps/usher\"]\n\tpath = deps/usher\n\turl = https://github.com/matsengrp/usher.git\n\tbranch = add-usher-callback" > ../.gitmodules | ||
RUN git submodule init | ||
RUN git submodule update | ||
WORKDIR /home/larch/build | ||
RUN mkdir -p /home/larch/build | ||
RUN /home/cmake-3.27.3-linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=Debug .. | ||
ENV LD_LIBRARY_PATH /home/larch/build/tbb_cmake_build/tbb_cmake_build_subdir_debug:$LD_LIBRARY_PATH | ||
RUN make larch-usher | ||
RUN make merge | ||
WORKDIR /home | ||
ENV runlarchusher /home/larch/build/larch-usher | ||
RUN mkdir -p data |