Skip to content

nypl-spacetime/docker-image-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NYC Space/Time Directory Docker Image Build

This repository is used to build a Docker image that is used to:

For more information about the NYC Space/Time Directory project, see spacetime.nypl.org.

Configuration

Environment variables:

DIGITAL_COLLECTIONS_TOKEN
SPACETIME_AWS_ACCESS_KEY_ID
SPACETIME_AWS_SECRET_ACCESS_KEY

Datasets

See dist/datasets.json.

Every dataset corresponds to a NYC Space/Time Directory ETL module, e.g. nyc-streets corresponds to etl-nyc-streets.

Building the Docker Image

To build the Docker image, run:

./build.sh

For building without cache, run:

./build.sh --no-cache

To run the latest image:

./run-bash

To run the image and execute all ETL steps, run:

./run-etl

Pushing image to Amazon

First, build the image, then get authorization key:

aws ecr get-login --region us-east-1 --profile spacetime --no-include-email

On MacOS, you can also copy the output from the command above directly to your clipboard:

aws ecr get-login --region us-east-1 --profile spacetime --no-include-email | pbcopy

Copy/paste/run the output of that command in bash to log in, and then push the image to ECR:

docker tag spacetime/etl:latest 843376026590.dkr.ecr.us-east-1.amazonaws.com/spacetime/etl:latest
docker push 843376026590.dkr.ecr.us-east-1.amazonaws.com/spacetime/etl:latest

See also

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages