-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.1.0pre4
56 lines (47 loc) · 1.75 KB
/
Dockerfile.1.0pre4
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
FROM kernsuite/base:5
ARG CLIENT_BRANCH=b1.0-pre5
ARG CARTA_VERSION=v1.2.2
ARG CARTA_BASE=CARTA-$CARTA_VERSION-remote
ARG CARTA_TGZ=$CARTA_BASE.tgz
ARG CARTA_URL=https://github.com/CARTAvis/carta-releases/releases/download/$CARTA_VERSION/$CARTA_TGZ
################################
# install latest masters
################################
RUN echo "deb-src http://ppa.launchpad.net/kernsuite/kern-5/ubuntu bionic main" > /etc/apt/sources.list.d/kernsuite-ubuntu-kern-5-bionic.list
RUN apt-get update
RUN apt-get update
RUN docker-apt-install \
python3 \
python-pip python3-pip \
virtualenv \
python3-numpy \
python3-scipy \
libcfitsio-dev \
wcslib-dev \
git \
nodejs \
phantomjs \
ghostscript \
ipython python3-aplpy python3-astropy \
python3-matplotlib python3-pil python3-casacore \
wget lsof iproute2
## libfuse2 libnss3 libgtk-3-0 libx11-xcb1 libasound2 xvfb
## last one was for carta desktop version
# python-notebook jupyter-notebook jupyter-nbextension-jupyter-js-widgets \
RUN pip3 install -U pip setuptools
RUN pip3 install git+https://github.com/ratt-ru/CubiCal
RUN ldconfig
RUN mkdir /radiopadre
ADD . /radiopadre
# Setup a virtual env
#ENV VIRTUAL_ENV=/opt/venv
#RUN docker-apt-install python3-virtualenv
#RUN python3 -m virtualenv --python=/usr/bin/python3 $VIRTUAL_ENV
#ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN rm -fr /radiopadre/.git /radiopadre/js9/.git
RUN cd /radiopadre && if [ ! -d js9 ]; then git clone https://github.com/ericmandel/js9; fi
RUN cd /radiopadre/js9 && make clean
RUN git clone -b $CLIENT_BRANCH https://github.com/ratt-ru/radiopadre-client.git
RUN pip3 install -e /radiopadre-client
RUN /radiopadre/bin/bootstrap-radiopadre-install --inside-container --client-path None
CMD sleep infinity