Skip to content

Commit

Permalink
Merge pull request #10 from JarettBakerDunn/docker
Browse files Browse the repository at this point in the history
add dockerfile to containerize conman
  • Loading branch information
gassmoeller authored Apr 15, 2024
2 parents 12ec014 + de97493 commit 3fab883
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/conman-buildenv-bionic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ RUN apt update && \
DEBCONF_NONINTERACTIVE_SEEN='true' \
apt install --yes \
build-essential \
git \
gfortran
15 changes: 15 additions & 0 deletions docker/conman/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM geodynamics/conman-buildenv-bionic:latest

RUN useradd \
--create-home \
conman_user

USER conman_user

WORKDIR /home/conman_user

RUN git clone 'https://github.com/geodynamics/conman.git'

ENV PATH="/home/conman_user/conman:${PATH}"

RUN cd conman/src; make
5 changes: 5 additions & 0 deletions docker/conman/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This container hosts a built version of conman.

docker run -it --rm -v $HOME/conman:/home/conman_user/work geodynamics/conman

This command will start the conman docker image and give you terminal access. Any changes made in the /home/conman_user/work directory will be reflected on the host machine at home/conman.

0 comments on commit 3fab883

Please sign in to comment.