-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
72 lines (45 loc) · 1.32 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM jupyter/scipy-notebook:db3ee82ad08a
#FROM continuumio/miniconda3
#########
# Setup #
#########
ENV HOME /home/jovyan
WORKDIR $HOME
# Clone lcbg repo
RUN git clone https://github.com/crawfordsm/lcbg.git
ENV LCBGDIR $HOME/lcbg
# Clone kcorrect @ dcad853
RUN git clone https://github.com/blanton144/kcorrect.git
ENV KCORRECT_DIR $HOME/kcorrect
# Clone kcorrect_python @ 8ea0c62
RUN git clone https://github.com/nirinA/kcorrect_python.git
ENV KCORRECT_PYTHON_DIR $HOME/kcorrect_python
########################################
# Setup Conda and Install Requirements #
########################################
#RUN conda env update --file $LCBGDIR/environment.yml
RUN conda env create -f $LCBGDIR/environment.yml
ENV PATH /opt/conda/envs/lcbg/bin:$PATH
RUN echo "source activate lcbg" >> $HOME/.bashrc
ENV CONDA_DEFAULT_ENV lcbg
####################
# Install kcorrect #
####################
ENV PATH $KCORRECT_DIR/bin:$PATH
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$KCORRECT_DIR/lib
ENV IDL_PATH $KCORRECT_DIR/pro
WORKDIR $KCORRECT_DIR
RUN kevilmake -k
WORKDIR $HOME
###########################
# Install kcorrect_python #
###########################
WORKDIR $KCORRECT_PYTHON_DIR
RUN python setup.py install
WORKDIR $HOME
################
# Install lcbg #
################
WORKDIR $LCBGDIR
RUN python setup.py develop
WORKDIR $HOME