-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdockerfile
More file actions
62 lines (45 loc) · 1.45 KB
/
dockerfile
File metadata and controls
62 lines (45 loc) · 1.45 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
61
62
FROM jncc/snap-base:1.0.5-SNAP-12.0.0
# Setup app folder
WORKDIR /app
# Configure apt
RUN apt-get update && apt-get -y install \
apt-utils \
build-essential \
git \
bc
# Install packages from apt
RUN apt-get update && apt-get -y install \
python3 \
python3-venv
# --------- Place machine build layers before this line ---------
# Install snap toolbox scripts.
COPY SLCCoh_Scot_CommandLine.xml /app/toolchain/SLCCoh_Scot_CommandLine.xml
# Copy workflow requirements
COPY workflows/requirements.txt /app/workflows/
# Set gpt memory configuration
COPY workflows/config/esa-snap/bin/gpt.vmoptions /usr/local/esa-snap/bin
# Build virtual env
COPY workflows/install-venv.sh /app/workflows
RUN chmod +x /app/workflows/install-venv.sh \
&& /app/workflows/install-venv.sh \
&& rm -f /app/workflows/install-venv.sh
# Create processing paths
RUN mkdir /input/ \
&& mkdir /static/ \
&& mkdir /state/ \
&& mkdir /working/ \
&& mkdir /output/
# Copy the singularity test script
#COPY app/test-luigi.sh ./
# Initialise startup script
COPY workflows/exec.sh /app/exec.sh
RUN chmod +rx /app/exec.sh
COPY workflows/CopyState.py ./
# Copy the workflow
COPY workflows/process_slc_pair ./workflows/process_slc_pair
# Copy workflow config
COPY workflows/config/process_slc_pair/luigi.cfg.template /app/workflows/luigi.cfg
RUN chmod +r ./workflows/luigi.cfg
# Copy container readme
COPY workflows/README.md ./
ENTRYPOINT ["/app/exec.sh"]