Skip to content

Commit

Permalink
Merge pull request #2 from ExCALIBUR-NEPTUNE/fix-docker-build
Browse files Browse the repository at this point in the history
Fix docker build
  • Loading branch information
mdave authored Mar 12, 2024
2 parents 3cf257e + 4cf252a commit db1edc2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Dockerfile
docker-compose.yml
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ COPY example $INSTALL_PREFIX/share/doc/nektar++/driftwave-solver

RUN cd /root/tmp && mkdir build && cd build && \
cmake -DNektar++_DIR=$INSTALL_PREFIX/lib64/nektar++/cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX/bin .. && \
make install && cd /root && rm -Rf /root/tmp
make install && \
cd /root && chmod -R u+w /root/tmp/.git/objects && rm -Rf /root/tmp

USER nektar
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3.9'

services:
nektar-driftwave:
image: nektar-driftwave:0.0.1
build: .
container_name: nektar-driftwave
# Keep container alive
entrypoint: "tail -f /dev/null"

0 comments on commit db1edc2

Please sign in to comment.