-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dockerfile to containerize conman #10
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
docker run -it --rm -v $HOME/conman:/home/conman_user/work conman | ||
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 |
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,17 @@ | ||||||||||||||||
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' | ||||||||||||||||
|
||||||||||||||||
WORKDIR /home/conman_user/conman/src | ||||||||||||||||
|
||||||||||||||||
RUN make | ||||||||||||||||
|
||||||||||||||||
WORKDIR /home/conman_user | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could simplify this without change of functionality as:
Suggested change
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This container hosts a built version of conman. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please include command to run the container here (the line from the docker-devel file above). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a newline at the end of the file (VS code tends to not store with ending newline and github complains about it).