-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (49 loc) · 2.66 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
# the osa-python-docker image with heasoft 6.33 does not contain xspec
# FROM integralsw/osa-python:11.2-2-g667521a3-20220403-190332-refcat-43.0-heasoft-6.33-python-3.10.11
FROM integralsw/osa-python:11.2-2-g667521a3-20220403-190332-refcat-43.0-heasoft-6.32.1-python-3.10.11
SHELL [ "bash", "-c" ]
#RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
ADD static-js9 /static-js9
ENV DISPATCHER_JS9_STATIC_DIR /static-js9
RUN source /init.sh && \
python -c 'import xspec; print(xspec)'
# why is it needed? why is it in a wrong place?
ADD dispatcher-plugin-gw/dispatcher_plugin_gw/config_dir/data_server_conf.yml /dispatcher/conf/conf.d/gw_data_server_conf.yml
ADD dispatcher-plugin-legacysurvey/dispatcher_plugin_legacysurvey/config_dir/data_server_conf.yml /dispatcher/conf/conf.d/legacysurvey_data_server_conf.yml
# these will be mounted at runtime
ENV DISPATCHER_CONFIG_FILE=/dispatcher/conf/conf.d/osa_data_server_conf.yml
ENV CDCI_OSA_PLUGIN_CONF_FILE=/dispatcher/conf/conf.d/osa_data_server_conf.yml
ENV CDCI_POLAR_PLUGIN_CONF_FILE=/dispatcher/conf/conf.d/polar_data_server_conf.yml
ENV CDCI_ANTARES_PLUGIN_CONF_FILE=/dispatcher/conf/conf.d/antares_data_server_conf.yml
ENV CDCI_NB2W_PLUGIN_CONF_FILE=/dispatcher/conf/conf.d/nb_data_server_conf.yml
ADD requirements.txt /requirements.txt
ADD cdci_data_analysis /cdci_data_analysis
ADD oda_api /oda_api
ADD cdci_osa_plugin /cdci_osa_plugin
ADD dispatcher-plugin-integral-all-sky /dispatcher-plugin-integral-all-sky
ADD dispatcher-plugin-antares /dispatcher-plugin-antares
ADD ddaclient /ddaclient
ADD dispatcher-plugin-polar /dispatcher-plugin-polar
ADD dispatcher-plugin-gw /dispatcher-plugin-gw
ADD dispatcher-plugin-legacysurvey /dispatcher-plugin-legacysurvey
ADD dispatcher-plugin-nb2workflow /dispatcher-plugin-nb2workflow
RUN source /init.sh && \
pip install pip --upgrade && \
pip install -r /requirements.txt \
/cdci_osa_plugin \
/dispatcher-plugin-integral-all-sky \
/oda_api \
/ddaclient \
/dispatcher-plugin-antares \
/dispatcher-plugin-polar \
/dispatcher-plugin-gw \
/dispatcher-plugin-legacysurvey \
/dispatcher-plugin-nb2workflow \
/cdci_data_analysis
RUN source /init.sh && \
python -c 'from gwpy.timeseries.timeseries import TimeSeries'
WORKDIR /data/dispatcher_scratch
RUN cd /data; \
curl https://www.isdc.unige.ch/~savchenk/dispatcher-plugin-integral-data-dummy_prods-default.tgz | tar xzvf - --strip-components 1
ADD entrypoint.sh /dispatcher/entrypoint.sh
ENTRYPOINT bash /dispatcher/entrypoint.sh