Skip to content
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

setup CITE demo #7

Closed
tomkralidis opened this issue Jan 2, 2020 · 3 comments
Closed

setup CITE demo #7

tomkralidis opened this issue Jan 2, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@tomkralidis
Copy link
Member

In relation to geopython/pygeoapi#325, I would like to setup an instance at https://demo.pygeoapi.io/cite which provides CITE specific data, configuration and endpoint against pygeoapi master. The instance needs to have a very small and basic Elasticsearch backend (with a single index of 50 records) instance of to expose the full functionality needed for CITE. Basic workflow on a commit would be:

  • stand up ES instance
  • load a single index with 50 records
  • generate OpenAPI document
  • start server
@justb4 justb4 added the enhancement New feature or request label Jan 3, 2020
@justb4
Copy link
Member

justb4 commented Jan 3, 2020

Should not be too hard, basically an adapted copy of service/pygeoapi_master into service/pygeoapi_cite plus some service/deploy support scripts:

NB we will need an extended ES Docker Image that includes .sh scripts+data as the DockerHub trigger script would not allow Docker Volume mapping.

@justb4
Copy link
Member

justb4 commented Jan 7, 2020

Good start! Think biggest challenge is to get the pygeoapi and ES Docker Containers initialized and interacting:

Some hints on services/pygeoapi_cite:

  • Dockerfile : last line (data copy) can be removed (data is loaded in ES Container).
  • Dockerfile: line 8: COPY ./cite.config.yml /pygeoapi/local.config.yml (as pygeoapi Docker Image expects config in /pygeoapi/local.config.yml
  • no need for OpenAPI docgen (happens at pygeoapi Container startup)
  • for clarity you could move Dockerfile and cite.config.yml to pygeoapi subdir (like ES).
  • Dockerfile.alpine can be removed
  • docker-compose.yml: add pygeoapi build (like ES build)
  • build.sh should now have one line: docker-compose build
  • docker-compose.yml: "5000:80" port mapping can be used for testing without Traefik.
  • docker-compose.yml: last lines: network is required for deployment (for all Containers from different docker-compose files to connect to each other).

@tomkralidis
Copy link
Member Author

Completed at https://demo.pygeoapi.io/cite . Thanks @just for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants