-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_miricle_test
41 lines (34 loc) · 1.13 KB
/
Dockerfile_miricle_test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM continuumio/anaconda
MAINTAINER Vincent Geers <[email protected]>
# Input arguments
ARG version
# Update and install dependencies
RUN apt-get update && apt-get install -y \
g++ \
gcc \
libgl1-mesa-dev \
libx11-dev \
make
# Set environment variables for MIRICLE
ENV MIRICLE_ROOT /opt/MIRICLE
ENV CDP_DIR $MIRICLE_ROOT/CDP
ENV CRDS_PATH $MIRICLE_ROOT/CRDS
ENV CRDS_SERVER_URL "https://jwst-crds.stsci.edu"
ENV PYSYN_CDBS $MIRICLE_ROOT/cdbs/
# Create standard directories
RUN mkdir -p $CDP_DIR && \
mkdir -p $CRDS_PATH && \
mkdir -p $HOME/repos && \
mkdir -p $HOME/simulations && \
mkdir -p $MIRICLE_ROOT
# Download and run MIRICLE install script
RUN if [ "x$version" = "x" ] ; then \
wget http://miri.ster.kuleuven.be/MIRICLE/MIRICLE_install.bash && \
bash MIRICLE_install.bash --test ; \
else \
wget http://miri.ster.kuleuven.be/MIRICLE/MIRICLE_install.bash && \
bash MIRICLE_install.bash --test --version $version ; fi
# Create bashrc to always activate conda env.
RUN echo "source activate miricle.test" >> $HOME/.bashrc
# Set default working directory
WORKDIR /root/simulations