-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloci_java_layer
More file actions
61 lines (60 loc) · 2.96 KB
/
loci_java_layer
File metadata and controls
61 lines (60 loc) · 2.96 KB
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
FROM openjdk:8
# Required jars
ADD docker/ngat_loci.jar ngat_loci.jar
ADD docker/json-20240303.jar json-20240303.jar
ADD docker/ngat_util_logging.jar ngat_util_logging.jar
ADD docker/ngat_util.jar ngat_util.jar
ADD docker/ngat_phase2.jar ngat_phase2.jar
ADD docker/ngat_net.jar ngat_net.jar
ADD docker/ngat_math.jar ngat_math.jar
ADD docker/ngat_fits.jar ngat_fits.jar
ADD docker/ngat_flask.jar ngat_flask.jar
ADD docker/ngat_message_iss_inst.jar ngat_message_iss_inst.jar
ADD docker/ngat_message_inst_dp.jar ngat_message_inst_dp.jar
ADD docker/ngat_message_base.jar ngat_message_base.jar
#
# Shared libraries
# Note these should be built from source, this is really dodgy
#
ADD docker/libngatutil.so libngatutil.so
#
#
# EXPOSE ports
#
# loci JMS server port
EXPOSE 7679
# loci TIT server port
EXPOSE 8473
# ISS uses port 7383, this is outgoing from this container
#
# Volumes
# These should these be runtime created bind mount points, not docker VOLUMEs
#
# Where ngat.loci.Loci expects to find it's configuration file tree
#VOLUME /icc
# Where the Loci CCD Flask API puts Loci FITS images
#VOLUME /data
#
# directory structure
#
#RUN mkdir -p /icc/log/
#RUN mkdir -p /icc/tmp/
#RUN mkdir -p /icc/config/
#RUN mkdir -p /home/dev/tmp/
# Setup CLASSPATH
ENV CLASSPATH="ngat_loci.jar:json-20240303.jar:ngat_util_logging.jar:ngat_util.jar:ngat_net.jar:ngat_phase2.jar:ngat_math.jar:ngat_fits.jar:ngat_flask.jar:ngat_message_iss_inst.jar:ngat_message_inst_dp.jar:ngat_message_base.jar"
# Setup LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:."
# Command line example:
#java ngat.loci.Loci -current_filter_property_filename current.filter.properties -filter_property_filename filter.properties -fits_property_filename fits.properties -loci_property_filename loci.properties -net_property_filename loci.net.properties -log 5
#ENTRYPOINT ["java", "ngat.loci.Loci", "-current_filter_property_filename", "current.filter.properties", "-filter_property_filename", "filter.properties", "-fits_property_filename", "fits.properties", "-loci_property_filename", "loci.properties", "-net_property_filename", "loci.net.properties", "-log", "5"]
# Config files in '.'
#ENTRYPOINT java ngat.loci.Loci -current_filter_property_filename current.filter.properties -filter_property_filename filter.properties -fits_property_filename fits.properties -loci_property_filename loci.properties -net_property_filename loci.net.properties -log 5
# Config files in /icc tree
# This expects the following config files:
# /icc/config/current.filter.properties
# /icc/config/filter.properties
# /icc/bin/loci/java/fits.properties
# /icc/bin/loci/java/loci.properties
# /icc/bin/loci/java/loci.net.properties
ENTRYPOINT java ngat.loci.Loci -current_filter_property_filename /icc/config/current.filter.properties -filter_property_filename /icc/config/filter.properties -fits_property_filename /icc/bin/loci/java/fits.properties -loci_property_filename /icc/bin/loci/java/loci.properties -net_property_filename /icc/bin/loci/java/loci.net.properties -log 5