-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
126 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[datacube] | ||
db_hostname: postgres | ||
db_database: opendatacube_test | ||
db_username: opendatacube | ||
db_password: opendatacubepassword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
PGPASSWORD=${DB_PASSWORD} psql -h ${DB_HOSTNAME} -U ${DB_USERNAME} -c 'create database opendatacube_test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,41 @@ | ||
FROM opendatacube/datacube-core:latest | ||
FROM ubuntu:bionic | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
python3-fiona \ | ||
python3-shapely \ | ||
libpng-dev \ | ||
wget \ | ||
vim \ | ||
unzip \ | ||
postgresql-client \ | ||
jq \ | ||
awscli \ | ||
curl \ | ||
libev-dev \ | ||
RUN apt-get update && apt-get install -y wget gnupg | ||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \ | ||
apt-key add - \ | ||
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" \ | ||
>> /etc/apt/sources.list.d/postgresql.list | ||
|
||
ADD requirements-apt.txt requirements-test.txt /tmp/ | ||
|
||
RUN apt-get update \ | ||
&& sed 's/#.*//' /tmp/requirements-apt.txt | xargs apt-get install -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Upgrade pip first: pip3 install --upgrade pip. | ||
RUN pip3 install --upgrade pip \ | ||
&& rm -rf $HOME/.cache/pip | ||
RUN export CPLUS_INCLUDE_PATH=/usr/include/gdal && \ | ||
export C_INCLUDE_PATH=/usr/include/gdal && \ | ||
export GDAL_DATA="$(gdal-config --datadir)" && \ | ||
pip3 install GDAL==$(gdal-config --version) | ||
|
||
RUN pip3 install gunicorn flask pyorbital colorama sentry-sdk[flask] raven \ | ||
RUN pip3 install --upgrade pip | ||
|
||
RUN pip3 install -r /tmp/requirements-test.txt \ | ||
&& rm -rf $HOME/.cache/pip | ||
|
||
RUN mkdir -p /code | ||
WORKDIR /code | ||
RUN mkdir /code/product-summaries | ||
|
||
ADD . . | ||
ADD setup.py setup.cfg versioneer.py pylintrc Makefile /code/ | ||
ADD cubedash /code/cubedash | ||
ADD integration_tests /code/integration_tests | ||
|
||
RUN pip3 install --upgrade --extra-index-url \ | ||
https://packages.dea.gadevs.ga/ 'datacube' 'digitalearthau' | ||
RUN pip3 install -e .[test] | ||
|
||
# RUN pip3 install .[deployment] | ||
RUN pip3 install -U --extra-index-url https://packages.dea.gadevs.ga/ 'datacube>=0.0.dev0' 'digitalearthau>=0.0.dev0'; | ||
RUN pip3 install -e .[test]; | ||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
|
||
CMD gunicorn -b '0.0.0.0:8080' -w 1 '--worker-class=egg:meinheld#gunicorn_worker' --timeout 60 cubedash:app | ||
CMD flask run --host 0.0.0.0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: "3.4" | ||
services: | ||
explorer: | ||
volumes: | ||
# This is in here, because the .override file is default | ||
# and I don't want this code dir mounted when I run tests. | ||
- ./:/code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters