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 for Selen #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions docker/selen/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM geodynamics/selen-buildenv-bionic:latest

RUN apt update && \
DEBIAN_FRONTEND='noninteractive' \
DEBCONF_NONINTERACTIVE_SEEN='true' \
apt install --yes \
git

RUN useradd \
--create-home \
selen_user

USER selen_user

WORKDIR /home/selen_user

RUN git clone 'https://github.com/geodynamics/selen.git';

RUN cd selen/DATA; gunzip *.gz;

RUN cd selen/src; make;

ENV PATH="/home/selen_user/selen:${PATH}"
5 changes: 5 additions & 0 deletions docker/selen/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This container hosts a built version of selen.

docker run -it --rm -v $HOME/selen:/home/selen_user/work geodynamics/selen

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