diff --git a/.gitignore b/.gitignore index 856314e..f10a9cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Compose +compose.override.yml + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/compose.dev.yml b/compose.dev.yml new file mode 100644 index 0000000..681530f --- /dev/null +++ b/compose.dev.yml @@ -0,0 +1,6 @@ +services: + cli: + image: "nsidc/antarctica_today:dev" + build: "." + volumes: + - "./antarctica_today/:/app/antarctica_today/" diff --git a/compose.yml b/compose.yml index 82d0949..9f82149 100644 --- a/compose.yml +++ b/compose.yml @@ -1,7 +1,6 @@ services: cli: - image: "nsidc/antarctica_today:local" - build: "." + image: "nsidc/antarctica_today:${ANTARCTICA_TODAY_VERSION:-latest}" user: "root" volumes: - "./Tb/:/app/Tb/" diff --git a/doc/CONTRIBUTING.md b/doc/CONTRIBUTING.md index 0d40c68..0e9477a 100644 --- a/doc/CONTRIBUTING.md +++ b/doc/CONTRIBUTING.md @@ -20,3 +20,10 @@ pre-commit install ### Mypy There's a basic config for Mypy, but it doesn't pass yet. + + +## Development with Docker + +```bash +ln -s compose.dev.yml compose.override.yml +```