Skip to content

Commit f386ccc

Browse files
authored
Merge pull request #799 from ratt-ru/stimela2_updates
Stimela2 updates
2 parents eb550b2 + f6e6503 commit f386ccc

4 files changed

Lines changed: 65 additions & 3 deletions

File tree

stimela/cargo/base/stimela2/Dockerfile

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN docker-apt-install cmake \
1818
wcslib-dev \
1919
libhdf5-serial-dev \
2020
libfftw3-dev \
21-
python-numpy \
21+
python3-numpy \
2222
libboost-python-dev \
2323
libboost-all-dev \
2424
libpython2.7-dev \
@@ -27,6 +27,38 @@ RUN docker-apt-install cmake \
2727
casacore-dev \
2828
wsclean
2929

30-
RUN pip install cult-curgo stimela quartical breizorro
30+
RUN docker-apt-install python3-pip
31+
RUN pip install cult-cargo stimela quartical \
32+
aimfast \
33+
astro-tigger-lsm \
34+
bdsf \
35+
breizorro \
36+
casaconfig \
37+
casadata \
38+
casatasks \
39+
casatools
40+
41+
RUN docker-apt-install \
42+
git \
43+
xvfb \
44+
curl
45+
46+
RUN pip install -U "git+https://github.com/caracal-pipeline/stimela.git"
47+
RUN pip install -U "git+https://github.com/caracal-pipeline/cult-cargo.git"
48+
3149
RUN ulimit -p 11000
32-
RUN stimela
50+
RUN stimela --help
51+
52+
RUN ln -s /usr/bin/python3 /usr/bin/python
53+
RUN mkdir -p /opt/casa/data
54+
COPY casasiteconfig.py /opt/casa
55+
ENV CASASITECONFIG /opt/casa/casasiteconfig.py
56+
RUN python -m casaconfig --measurespath /opt/casa/data --update-all
57+
RUN python -m casaconfig --measurespath /opt/casa/data --current-data
58+
# point to CASA data
59+
RUN mkdir -p /usr/local/share/data/
60+
RUN ln -s /opt/casa/data /usr/local/share/data/casacore
61+
COPY xvfb.init.d /etc/init.d/xvfb
62+
RUN chmod 755 /etc/init.d/xvfb
63+
RUN chmod 777 /var/run
64+
ENV DISPLAY :99
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import casadata
2+
measurespath = casadata.datapath
3+
measures_auto_update = False
4+
data_auto_update = False
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
XVFB=/usr/bin/Xvfb
2+
XVFBARGS=":99 -screen 0 1024x768x24 -fbdir /var/run -ac"
3+
RGS=":99 -screen 0 1024x768x24 -fbdir /var/run -ac"
4+
PIDFILE=/var/run/xvfb.pid
5+
case "$1" in
6+
start)
7+
echo -n "Starting virtual X frame buffer: Xvfb"
8+
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS
9+
echo "."
10+
;;
11+
stop)
12+
echo -n "Stopping virtual X frame buffer: Xvfb"
13+
start-stop-daemon --stop --quiet --pidfile $PIDFILE
14+
echo "."
15+
;;
16+
restart)
17+
$0 stop
18+
$0 start
19+
;;
20+
*)
21+
echo "Usage: /etc/init.d/xvfb {start|stop|restart}"
22+
exit 1
23+
esac
24+
25+
exit 0

stimela/cargo/cab/stimela2/src/run.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import os
23
import sys
34
import shlex

0 commit comments

Comments
 (0)