planetary-computer-apis/docker-compose.yml

92 строки
2.3 KiB
YAML
Исходник Обычный вид История

2021-10-18 19:13:28 +03:00
services:
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
stac:
image: pc-apis-stac
2021-10-18 19:13:28 +03:00
build:
context: .
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
dockerfile: pcstac/Dockerfile
env_file: ${PC_STAC_ENV_FILE:-./pc-stac.dev.env}
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
ports:
- "8081:8081"
volumes:
- ./pccommon:/opt/src/pccommon
- ./pcstac:/opt/src/pcstac
2021-10-18 19:13:28 +03:00
depends_on:
- database
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
command: >
bash -c "pypgstac pgready && uvicorn pcstac.main:app --host 0.0.0.0 --port 8081 --reload --proxy-headers"
tiler:
image: pc-apis-tiler
# For Mac OS M1 user, you'll need to add `platform: linux/amd64`.
# see https://github.com/developmentseed/titiler/discussions/387#discussioncomment-1643110
# platform: linux/amd64
2021-10-18 19:13:28 +03:00
build:
context: .
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
dockerfile: pctiler/Dockerfile
env_file: ${PC_TILER_ENV_FILE:-./pc-tiler.dev.env}
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
ports:
- "8082:8082"
volumes:
- ./pctiler:/opt/src/pctiler
- ./pctiler/templates:/opt/src/templates
- ./pccommon:/opt/src/pccommon
2021-10-18 19:13:28 +03:00
depends_on:
- database
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
command: [ "uvicorn", "pctiler.main:app", "--host", "0.0.0.0", "--port", "8082", "--reload", "--proxy-headers" ]
2021-10-18 19:13:28 +03:00
nginx:
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
image: pc-apis-nginx
container_name: pc-apis-nginx
2021-10-18 19:13:28 +03:00
build:
context: ./nginx
dockerfile: Dockerfile
links:
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
- stac
- tiler
2021-10-18 19:13:28 +03:00
depends_on:
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
- tiler
- stac
2021-10-18 19:13:28 +03:00
volumes:
- ./nginx/etc/nginx:/etc/nginx
ports:
- 8080:80
database:
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
container_name: pc-stac-db
image: pc-apis-stac-db
2021-10-18 19:13:28 +03:00
build:
context: ./pgstac
dockerfile: Dockerfile
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgis
ports:
- "5432:5432"
volumes:
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
- pc-apis-pgdata:/var/lib/postgresql/data
Use Azure Storage Tables for collection and container configuration (#48) * Add additional dependencies to pccommon * Fix mypy error in pctiler Brining in the type stubs for cachetools caused mypy to complain about unknown types for the key function * Refactor scripts to test pccommon Also run flake8 on pccommon, which wasn't happening * Linting fixups * Add tables classes * Refactor collection config in pccommon Also refactor CommonConfig to use pydantic settings. Create a table setup for collection configuration and container configuration. Use cachetools to cache the configuration. * Add Azurite setup Encode collection configuration and container configuration (which was hardcoded) as JSON. This can be used to populate the initial table structure in deployment as well, after which this test data will diverge from production settings. * Update codebase to use refactored configuration * Set azurite settings in docker-compose Also account for environment prefix for DEBUG that change with refactor to use BaseSettings in CommonConfig * Move to using only pytest for consistency * Test get render config for naip * Refactor config code layout Enable configuration of TTL * Run azurite setup in scripts/setup Also fix setup_azurite * Add mosaicInfo and queriables to collection config * Remove usage of requirements.txt This was being used inconsistently. * Add script for local package install * Fetch queryables from storage tables * Use orjson in pccommon * Use ORJSONResponse * Remove unused endpoint prefixes * Add mosiac/info endpoint * Add method to fetch all rows * Add CLI for loading and dumping config data * Variable for k8s version; update dev * Allow AKS to pull from ACR * Storage Tables in terraform * Add config table env vars to helm charts * Update ingress apiVersion * Make note in deploy README about updating tables * Update CHANGELOG * Linting/formatting * Remove unused __init__ override This was left over from a previous implementation, should have been cleaned up. * Remove unused vars in dev terraform * Allow cli to dump configs by id Co-authored-by: Matt McFarland <mmcfarland@microsoft.com>
2022-02-18 00:06:08 +03:00
azurite:
container_name: pcapis-azurite
image: mcr.microsoft.com/azure-storage/azurite
hostname: azurite
command: "azurite --silent --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost
0.0.0.0 -l /workspace"
ports:
- "10000:10000" # Blob
- "10001:10001" # Queue
- "10002:10002" # Table
volumes:
- pc-apis-azurite-data:/workspace
redis:
image: redis:6.2.6-buster
command: redis-server --port 6380 --requirepass devcache
ports:
- "6380:6380"
volumes:
- pc-apis-redis-data:/data
Use Azure Storage Tables for collection and container configuration (#48) * Add additional dependencies to pccommon * Fix mypy error in pctiler Brining in the type stubs for cachetools caused mypy to complain about unknown types for the key function * Refactor scripts to test pccommon Also run flake8 on pccommon, which wasn't happening * Linting fixups * Add tables classes * Refactor collection config in pccommon Also refactor CommonConfig to use pydantic settings. Create a table setup for collection configuration and container configuration. Use cachetools to cache the configuration. * Add Azurite setup Encode collection configuration and container configuration (which was hardcoded) as JSON. This can be used to populate the initial table structure in deployment as well, after which this test data will diverge from production settings. * Update codebase to use refactored configuration * Set azurite settings in docker-compose Also account for environment prefix for DEBUG that change with refactor to use BaseSettings in CommonConfig * Move to using only pytest for consistency * Test get render config for naip * Refactor config code layout Enable configuration of TTL * Run azurite setup in scripts/setup Also fix setup_azurite * Add mosaicInfo and queriables to collection config * Remove usage of requirements.txt This was being used inconsistently. * Add script for local package install * Fetch queryables from storage tables * Use orjson in pccommon * Use ORJSONResponse * Remove unused endpoint prefixes * Add mosiac/info endpoint * Add method to fetch all rows * Add CLI for loading and dumping config data * Variable for k8s version; update dev * Allow AKS to pull from ACR * Storage Tables in terraform * Add config table env vars to helm charts * Update ingress apiVersion * Make note in deploy README about updating tables * Update CHANGELOG * Linting/formatting * Remove unused __init__ override This was left over from a previous implementation, should have been cleaned up. * Remove unused vars in dev terraform * Allow cli to dump configs by id Co-authored-by: Matt McFarland <mmcfarland@microsoft.com>
2022-02-18 00:06:08 +03:00
2021-10-18 19:13:28 +03:00
volumes:
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
pc-apis-pgdata:
Use Azure Storage Tables for collection and container configuration (#48) * Add additional dependencies to pccommon * Fix mypy error in pctiler Brining in the type stubs for cachetools caused mypy to complain about unknown types for the key function * Refactor scripts to test pccommon Also run flake8 on pccommon, which wasn't happening * Linting fixups * Add tables classes * Refactor collection config in pccommon Also refactor CommonConfig to use pydantic settings. Create a table setup for collection configuration and container configuration. Use cachetools to cache the configuration. * Add Azurite setup Encode collection configuration and container configuration (which was hardcoded) as JSON. This can be used to populate the initial table structure in deployment as well, after which this test data will diverge from production settings. * Update codebase to use refactored configuration * Set azurite settings in docker-compose Also account for environment prefix for DEBUG that change with refactor to use BaseSettings in CommonConfig * Move to using only pytest for consistency * Test get render config for naip * Refactor config code layout Enable configuration of TTL * Run azurite setup in scripts/setup Also fix setup_azurite * Add mosaicInfo and queriables to collection config * Remove usage of requirements.txt This was being used inconsistently. * Add script for local package install * Fetch queryables from storage tables * Use orjson in pccommon * Use ORJSONResponse * Remove unused endpoint prefixes * Add mosiac/info endpoint * Add method to fetch all rows * Add CLI for loading and dumping config data * Variable for k8s version; update dev * Allow AKS to pull from ACR * Storage Tables in terraform * Add config table env vars to helm charts * Update ingress apiVersion * Make note in deploy README about updating tables * Update CHANGELOG * Linting/formatting * Remove unused __init__ override This was left over from a previous implementation, should have been cleaned up. * Remove unused vars in dev terraform * Allow cli to dump configs by id Co-authored-by: Matt McFarland <mmcfarland@microsoft.com>
2022-02-18 00:06:08 +03:00
pc-apis-azurite-data:
pc-apis-redis-data:
2021-10-18 19:13:28 +03:00
networks:
default:
Project renames; publish and deploy (#12) * Add helm chart publication * Remove old cipublish path * switch from "1" to "true" GitHub sets CI to "true" rather than 1: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables * wip -- attempt the run * don't condition deploy step for now * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * switch branch back to main youc an use $default-branch in templates, but not actual workflows: https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/ * set azure env variables * parse and echo from json * don't set tenant id? https://github.com/hashicorp/terraform-provider-azuread/issues/343#issuecomment-721455149 ?? * oops i don't think these are getting passed through * add override compose this compose file un-sets the env variables that we don't have because we don't have a .env file in ci, so I _think_ it should inherit them from the environment * add back mqe resource group why was this deleted am i being trolled * Add path debugging * check what tf keys we got * remove api management from ingress 🤞🏻 * all container registries through github * remove debug prints from jinja * re-remove the mqe resource group because it was deliberately missing, not accidentally * skip tests for a sec * debug echo cluster name and rg * require az account env variables * reuse tf env variable names * don't point to `latest` tag * Add workflow for publishing helm charts to GH Pages. * Rename charts, separate published, reset versions * Use -dev suffix for development release * Publish dev charts only on main * Rename mqe -> stac, dqe -> tiler in codebase * Update README Rename MQE to STAC API and DQE to Tiler; also editorally make things more terse * Remove testdata, move loadtestdata to tests * Remove out of date and generic docs for tiler * Use cipublish to publish images * Rename python packages to be prefixed with 'pc' * Remove stac-vrt * Remove unused model and method. Also formatting * Remove scripts/env * Upgrade to stac-fastapi 2.2.0 * Delete unusued doc images * Update deployment code with renames. * Update cert-manager, other deployment fixes * Test on cibuild, remove GA test branch trigger * Fixup PR template Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com> Co-authored-by: James Santucci <james.santucci@gmail.com>
2021-11-01 18:27:39 +03:00
name: pc-apis-dev-network