Skip to content

Commit

Permalink
Add Dockerfile for Selen
Browse files Browse the repository at this point in the history
  • Loading branch information
JarettBakerDunn committed Sep 19, 2024
1 parent b398b48 commit a2ea25f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
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.

0 comments on commit a2ea25f

Please sign in to comment.