-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from JarettBakerDunn/docker
add dockerfile to containerize conman
- Loading branch information
Showing
3 changed files
with
21 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 |
---|---|---|
|
@@ -5,4 +5,5 @@ RUN apt update && \ | |
DEBCONF_NONINTERACTIVE_SEEN='true' \ | ||
apt install --yes \ | ||
build-essential \ | ||
git \ | ||
gfortran |
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,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 |
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 @@ | ||
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. |