-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (60 loc) · 1.98 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
72
FROM kernsuite/base:7
################################
# install latest masters
################################
RUN echo "deb-src http://ppa.launchpad.net/kernsuite/kern-7/ubuntu focal main" > /etc/apt/sources.list.d/kernsuite-ubuntu-kern-7-focal.list
RUN add-apt-repository ppa:cartavis-team/carta
RUN add-apt-repository ppa:saiarcot895/chromium-beta
RUN apt-get update
RUN docker-apt-install --no-install-recommends \
gcc g++ make carta-backend carta-frontend casacore-data \
python3-pip python3-virtualenv chromium-browser \
virtualenv \
python3-numpy \
python3-scipy \
libcfitsio-dev \
libboost-python-dev \
wcslib-dev \
git \
nodejs npm libxcomposite1 \
phantomjs \
ghostscript \
ipython3 python3-aplpy python3-astropy \
python3-matplotlib python3-pil python3-casacore \
wget lsof iproute2 \
npm nodejs \
libxcomposite1 \
firefox \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libatspi2.0-0 \
libgdk-pixbuf2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libxcursor1 \
libxrandr2 \
libxss1 \
libxtst6 \
thunderbird \
&& rm -rf /var/lib/apt/lists/*
# crazy list starting with npm needed for chromium within puppeteer. Don't ask me why.
RUN ldconfig
# Setup a virtual env
ENV VIRTUAL_ENV=/.radiopadre/venv
RUN virtualenv -p python3 $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip3 install --no-cache-dir -U pip setuptools numpy
ADD . /radiopadre
### override the override -- CARTA 2.0 installed from PPA above
## override due to problems with 1.4 in containers
#ARG RADIOPADRE_CARTA_VERSION=1.3.1
ARG CLIENT_BRANCH=b1.2.0
RUN git clone -b $CLIENT_BRANCH https://github.com/ratt-ru/radiopadre-client.git
RUN pip3 install --no-cache-dir -e /radiopadre-client
RUN pip3 install --no-cache-dir -e /radiopadre
RUN echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/userns.conf
ENTRYPOINT ["/.radiopadre/venv/bin/run-radiopadre"]