forked from microsoft/planetary-computer-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
85 lines (60 loc) · 2.13 KB
/
Dockerfile.dev
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM ubuntu:20.04
# Setup timezone info
ENV TZ=UTC
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:ubuntugis/ppa && \
apt-get update && \
apt-get install -y build-essential python3-dev python3-pip \
jq unzip ca-certificates wget curl && \
apt-get autoremove && apt-get autoclean && apt-get clean
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
# See https://github.com/mapbox/rasterio/issues/1289
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
RUN python -m pip install --upgrade pip
# Install azure-cli
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
# Install dev dependencies
COPY requirements-dev.txt /opt/src/requirements-dev.txt
RUN cd /opt/src && pip install -r requirements-dev.txt
#
# Copy and install packages
#
COPY pctasks/core /opt/src/pctasks/core
RUN cd /opt/src/pctasks/core && \
pip install -e .
COPY pctasks/cli /opt/src/pctasks/cli
RUN cd /opt/src/pctasks/cli && \
pip install -e .
COPY pctasks/task /opt/src/pctasks/task
RUN cd /opt/src/pctasks/task && \
pip install -e .
COPY pctasks/client /opt/src/pctasks/client
RUN cd /opt/src/pctasks/client && \
pip install -e .
COPY pctasks/ingest /opt/src/pctasks/ingest
RUN cd /opt/src/pctasks/ingest && \
pip install -e .
COPY pctasks/ingest_task /opt/src/pctasks/ingest_task
RUN cd /opt/src/pctasks/ingest_task && \
pip install -e .
COPY pctasks/run /opt/src/pctasks/run
RUN cd /opt/src/pctasks/run && \
pip install -e .
COPY pctasks/server /opt/src/pctasks/server
RUN cd /opt/src/pctasks/server && \
pip install -e .
COPY pctasks/dataset /opt/src/pctasks/dataset
RUN cd /opt/src/pctasks/dataset && \
pip install -e .
COPY pctasks/notify /opt/src/pctasks/notify
RUN cd /opt/src/pctasks/notify && \
pip install -e .
COPY pctasks/dev /opt/src/pctasks/dev
RUN cd /opt/src/pctasks/dev && \
pip install -e .[server]
# Setup Python Path to allow import of test modules
ENV PYTHONPATH=/opt/src:$PYTHONPATH
WORKDIR /opt/src