Last active
September 9, 2017 17:29
-
-
Save yaodong/9dd6e0962212084c7069 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo apt-get update && apt-get install vim wget build-essential -y | |
sudo apt-get install guile-2.0 guile-2.0-dev hdf5-* -y | |
export LDFLAGS="-L/usr/local/lib -lm" | |
export CPPFLAGS="-I/usr/local/include" | |
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" | |
export PATH=/lib64/mpich/bin:$PATH | |
cd ~ && wget http://www.fftw.org/fftw-3.3.4.tar.gz && tar -zxf fftw-3.3.4.tar.gz | |
cd ~/fftw-3.3.4 && ./configure && make && sudo make install | |
cd ~ && wget http://ab-initio.mit.edu/libctl/libctl-3.2.2.tar.gz && tar -zxf libctl-3.2.2.tar.gz | |
cd ~/libctl-3.2.2 && ./configure && make && sudo make install | |
cd ~ && wget http://ab-initio.mit.edu/mpb/mpb-1.5.tar.gz && tar -zxf mpb-1.5.tar.gz | |
cd ~/mpb-1.5 && ./configure && make && sudo make install | |
sudo apt-get install harminv -y | |
cd ~ && wget http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz && tar -zxf mpich-3.2.tar.gz | |
cd ~/mpich-3.2 && ./configure && make && sudo make install | |
cd ~ && wget https://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.17.tar.gz && tar -zxf hdf5-1.8.17.tar.gz | |
cd ~/hdf5-1.8.17 && ./configure --prefix=/usr/local --enable-parallel && make && sudo make install | |
cd ~ && wget http://ab-initio.mit.edu/meep/meep-1.3.tar.gz && tar -zxf meep-1.3.tar.gz | |
cd ~/meep-1.3 && ./configure --with-mpi && make && sudo make install | |
sudo apt-get install libmatheval-dev libhdf4-dev libhdf4-dev -y | |
cd ~ && wget http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz && tar -zxf h5utils-1.12.1.tar.gz | |
cd ~/h5utils-1.12.1 && ./configure && make && sudo make install | |
rm -rf ~/*.tar.gz | |
cd ~ |
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get install apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get purge lxc-docker | |
apt-cache policy docker-engine | |
sudo apt-get update | |
sudo apt-get install docker-engine | |
sudo service docker start |
This file contains hidden or 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
FROM debian:8.3 | |
RUN apt-get update && apt-get install vim wget build-essential -y | |
RUN apt-get install guile-2.0 guile-2.0-dev hdf5-* -y | |
ENV LDFLAGS="-L/usr/local/lib -lm" | |
ENV CPPFLAGS="-I/usr/local/include" | |
ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" | |
ENV PATH=/lib64/mpich/bin:$PATH | |
RUN cd ~ && wget http://www.fftw.org/fftw-3.3.4.tar.gz && tar -zxf fftw-3.3.4.tar.gz | |
RUN cd ~/fftw-3.3.4 && ./configure && make && make install | |
RUN cd ~ && wget http://ab-initio.mit.edu/libctl/libctl-3.2.2.tar.gz && tar -zxf libctl-3.2.2.tar.gz | |
RUN cd ~/libctl-3.2.2 && ./configure && make && make install | |
RUN cd ~ && wget http://ab-initio.mit.edu/mpb/mpb-1.5.tar.gz && tar -zxf mpb-1.5.tar.gz | |
RUN cd ~/mpb-1.5 && ./configure && make && make install | |
RUN apt-get install harminv -y | |
RUN cd ~ && wget https://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.17.tar.gz && tar -zxf hdf5-1.8.17.tar.gz | |
RUN cd ~/hdf5-1.8.17 && ./configure --prefix=/usr/local && make && make install | |
RUN cd ~ && wget http://ab-initio.mit.edu/meep/meep-1.3.tar.gz && tar -zxf meep-1.3.tar.gz | |
RUN cd ~/meep-1.3 && ./configure && make && make install | |
RUN apt-get install libmatheval-dev libhdf4-dev libhdf4-dev -y | |
RUN cd ~ && wget http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz && tar -zxf h5utils-1.12.1.tar.gz | |
RUN cd ~/h5utils-1.12.1 && ./configure && make && make install | |
RUN rm -rf ~/*.tar.gz | |
WORKDIR /root |
This file contains hidden or 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
build: | |
docker build --tag=meep . | |
docker run --rm -i -t --name meep -v /home/yourname/meep/test:/root/test meep /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ref: http://geek-mag.com/posts/248514/