-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (25 loc) · 1002 Bytes
/
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
# vim:set ft=dockerfile:
FROM continuumio/miniconda3
MAINTAINER https://github.com/PaoloBonettiPolimi/hawk
LABEL Description="Hawk WPS" Vendor="Birdhouse" Version="0.1.0"
# Update Debian system
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Update conda
RUN conda update -n base conda
# Copy WPS project
COPY . /opt/wps
WORKDIR /opt/wps
# Create conda environment with PyWPS
RUN ["conda", "env", "create", "-n", "wps", "-f", "environment.yml"]
# Install WPS
RUN ["/bin/bash", "-c", "source activate wps && pip install -e ."]
# Start WPS service on port 5000 on 0.0.0.0
EXPOSE 5000
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["source activate wps && exec hawk start -b 0.0.0.0 -c /opt/wps/etc/demo.cfg"]
# docker build -t PaoloBonettiPolimi/hawk .
# docker run -p 5000:5000 PaoloBonettiPolimi/hawk
# http://localhost:5000/wps?request=GetCapabilities&service=WPS
# http://localhost:5000/wps?request=DescribeProcess&service=WPS&identifier=all&version=1.0.0