-
Notifications
You must be signed in to change notification settings - Fork 174
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
Showing
3 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
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,73 @@ | ||
# pull ubuntu 18.04 from Docker repo | ||
FROM ubuntu:18.04 | ||
|
||
MAINTAINER "Zhicheng Geng <[email protected]>" | ||
|
||
# install packages for madagascar | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
python2.7 \ | ||
python-pip \ | ||
openssh-client \ | ||
tar \ | ||
gzip \ | ||
wget \ | ||
vim \ | ||
emacs \ | ||
make \ | ||
man \ | ||
&& apt-get install -y \ | ||
libblas-dev \ | ||
liblapack-dev \ | ||
swig \ | ||
libxaw7-dev \ | ||
freeglut3-dev \ | ||
libnetpbm10-dev \ | ||
libtiff5-dev \ | ||
libgd-dev \ | ||
libplplot-dev \ | ||
libavcodec-dev \ | ||
libcairo2-dev \ | ||
libjpeg-dev \ | ||
libopenmpi-dev \ | ||
libfftw3-dev \ | ||
libsuitesparse-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# install python packages | ||
RUN pip install numpy scipy | ||
|
||
# get code from github | ||
RUN git clone https://github.com/ahay/src.git $HOME/RSFSRC | ||
|
||
# set environment variable for installing madagascar | ||
ENV RSFROOT /root/RSFROOT | ||
|
||
# install madagascar | ||
RUN cd ~/RSFSRC \ | ||
&& ./configure \ | ||
&& make install | ||
|
||
# install latex | ||
RUN apt-get update && apt-get install -y \ | ||
texlive-latex-recommended \ | ||
texlive-latex-extra \ | ||
texlive-fonts-recommended \ | ||
texlive-bibtex-extra \ | ||
texlive-lang-english \ | ||
texlive-generic-extra \ | ||
biber \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# install segtex | ||
RUN git clone https://github.com/SEGTeX/texmf $HOME/texmf \ | ||
&& texhash | ||
|
||
RUN echo 'export RSFROOT="$HOME/RSFROOT"' >> $HOME/.bashrc \ | ||
&& echo 'source $RSFROOT/share/madagascar/etc/env.sh' >> $HOME/.bashrc | ||
|
||
WORKDIR /root | ||
|
||
CMD ["/bin/bash"] |
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
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