Skip to content
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

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Copy link
Member

Choose a reason for hiding this comment

The 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).


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.
Loading