-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (45 loc) · 1.58 KB
/
Dockerfile
File metadata and controls
53 lines (45 loc) · 1.58 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
FROM ubuntu:20.04
MAINTAINER Yong Wook Kim <ywkim@illinois.edu>
ARG VERSION="unknown"
ARG BUILDNUMBER="unknown
ARG GITSHA1="unknown"
# copy requirements file
COPY requirements.txt /home/clowder/
# Install any programs needed
#USER root
# Install any programs needed
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3 \
python-is-python3 \
python3-pip \
python3-gdal \
python3-rtree \
python3-scipy \
p7zip-full && \
pip3 install -r /home/clowder/requirements.txt && \
rm -rf /var/lib/apt/lists/*
# Switch to clowder, copy files and be ready to run
#USER clowder
# command to run when starting docker
ENTRYPOINT ["/home/clowder/entrypoint.sh"]
CMD ["extractor"]
# Setup environment variables. These are passed into the container. You can change
# these to your setup. If RABBITMQ_URI is not set, it will try and use the rabbitmq
# server that is linked into the container. MAIN_SCRIPT is set to the script to be
# executed by entrypoint.sh
ENV VERSION=${VERSION} \
BUILDNUMBER=${BUILDNUMBER} \
GITSHA1=${GITSHA1} \
RABBITMQ_URI="" \
RABBITMQ_EXCHANGE="clowder" \
RABBITMQ_VHOST="%2F" \
RABBITMQ_QUEUE="ncsa.pycsw.extractor" \
MAIN_SCRIPT="ncsa.geo.pycsw.py" \
GEOSERVER_URL="" \
GEOSERVER_WORKSPACE="clowder" \
PYCSW_URL="http://localhost:8000/pycsw" \
PROXY_URL='http://localhost:9000/api/proxy/' \
PROXY_ON='false'
# copy rest of the files needed
COPY entrypoint.sh *.py extractor_info.json pycsw_insert_template.xml pycsw_remove_template.xml /home/clowder/