-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b398b48
commit a2ea25f
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,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}" |
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 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. |