Skip to content

Feature/additional datasets #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Dockerfile
README.md
*.pyc
*.pyo
*.pyd
__pycache__
.pytest_cache
*.pdf
*.dbf
*.jpg
15 changes: 15 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
README.md
trees.csv
.git/
*.pyc
*.pyo
*.pyd
__pycache__
.pytest_cache
*.pdf
*.jpg
stiles.trees.csv
node_modules/
build/
tmp/
cloud_sql_proxy
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# Use the official lightweight Python image.
# https://hub.docker.com/_/python
FROM python:3.8.2-slim

# Copy local code to the container image.
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./

RUN apt-get update -y \
&& apt-get install -y build-essential curl

RUN pip3 install --no-cache-dir -r requirements.txt

CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 etl_http_listener:app
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Anything that needs to be done before the other rules run
SHELL := /bin/bash
setup:
mkdir -p build/data

Expand All @@ -10,6 +11,7 @@ release: setup
| node download-images.js \
| node split-trees.js build/data


# Runs the pipeline using local data, but skips the CPU-intensive python tasks
img-test: setup
cat data/trees.csv \
Expand Down
4 changes: 4 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args: ['-c', 'docker build -t us-west1-docker.pkg.dev/$PROJECT_ID/cloud-run-source-deploy/etl-image:prod .']
69 changes: 58 additions & 11 deletions data/species_attributes.csv

Large diffs are not rendered by default.

Loading