-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added CMAKE BUILD TYPE flag for potential speed up as per CGAL compile message * Added docker build instructions * Updated reference to dockerhub image
- Loading branch information
Showing
3 changed files
with
101 additions
and
1 deletion.
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,5 @@ | ||
build/ | ||
output/ | ||
examples/ | ||
MATLAB/ | ||
test/ |
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,45 @@ | ||
FROM ubuntu:bionic | ||
|
||
# Mount volumes - these are in root to make it easier to type | ||
# and to avoid confusion between those included in the Mesher directory | ||
|
||
VOLUME /output | ||
VOLUME /input | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
libcgal-dev \ | ||
libcgal-qt5-dev \ | ||
libglu1-mesa \ | ||
libglu1-mesa-dev \ | ||
libxi-dev \ | ||
libxmu-dev | ||
|
||
# Copy repo and make dirs | ||
COPY . /Mesher | ||
|
||
WORKDIR /Mesher | ||
RUN mkdir build && mkdir output | ||
|
||
# remove test from cmake list | ||
RUN sed -i 's/^\(add_subdirectory(test).*\)/#\1/g' CMakeLists.txt | ||
|
||
WORKDIR /Mesher/build | ||
RUN cmake .. && make | ||
WORKDIR /Mesher | ||
|
||
#RUN echo "BUILD DONE. CHECKING MESHER RUNS" | ||
#RUN ./bin/mesher -i inputs/input.inr -e inputs/Electrodes.txt -p inputs/params.txt | ||
|
||
RUN apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
ENTRYPOINT [ "./bin/mesher" ] | ||
# default run with example inputs inside the container to demonstrate its working | ||
CMD ["-i", "inputs/input.inr", "-e", "inputs/Electrodes.txt", "-p", "inputs/params.txt"] | ||
|
||
# To run the Mesher, you need to mount the volumes and then direct the mesher to look into the correct directories e.g.: | ||
# docker run --rm -v ~/Mesher/inputs2:/input -v ~/Mesher/output2:/output mesher -i /input/input.inr -e /input/Electrodes.txt -p /input/params.txt -d /output/ -o testing | ||
|
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