Skip to content

Commit

Permalink
- added restart policy to pygeoapi container
Browse files Browse the repository at this point in the history
  • Loading branch information
doublebyte1 committed May 6, 2023
1 parent 5056287 commit 379e55c
Show file tree
Hide file tree
Showing 7 changed files with 6,062 additions and 39 deletions.
2 changes: 1 addition & 1 deletion ES/add_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ python3 /load_es_data.py /in/lansing_city_census_tracts_lowincomelowaccess.geojs
python3 /load_es_data.py /in/lansing_city_census_tracts_numberofpeopleaged65andabove_2020.geojson id
python3 /load_es_data.py /in/lansing_city_census_tracts_numberofpeoplebiketowork_2020.geojson id
python3 /load_es_data.py /in/lansing_city_census_tracts_peopleagedabove5disability.geojson id
# python3 /load_es_data.py /in/lansing_city_census_tracts_percentageofpeoplebiketowork_2020.geojson id
python3 /load_es_data.py /in/lansing_city_census_tracts_percentageofpeoplebiketowork_2020.geojson id
python3 /load_es_data.py /in/lansing_city_census_tracts_traveltimetowork_17_21.geojson id
python3 /load_es_data.py /in/lansing_coronaryheartdiseaseageabove18yrs_2019_cdc.geojson id
python3 /load_es_data.py /in/lansing_currentasthmaageabove18yrs_2019_cdc.geojson id
Expand Down
Empty file modified ES/data/activity_level_ldn.geojson
100644 → 100755
Empty file.
Empty file modified ES/data/cardivasular_disease_ldn.geojson
100644 → 100755
Empty file.
6,022 changes: 6,021 additions & 1 deletion ES/data/tweet_count_sample.geojson
100644 → 100755

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ services:
- elastic_search
depends_on:
- elastic_search
restart: on-failure

elastic_search:
build: ./ES
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ services:

depends_on:
- elastic_search

restart: on-failure


elastic_search:
Expand Down
74 changes: 37 additions & 37 deletions pygeoapi/docker.config.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2235,43 +2235,43 @@ resources:
name: pbf
mimetype: application/vnd.mapbox-vector-tile

# lansing_city_census_tracts_percentageofpeoplebiketowork_2020:
# type: collection
# title: "Number of People with Disability (aged 5 and above)"
# description: "Count of civilian noninstitutionalized population with one or more types of disabilities, between 2017-2021. According to the Census, disability is defined as the product of interactions among individuals' bodies, and it takes into consideration physical, emotional, and mental health, as well as the physical and social environment in which people live, work or play. Disability occurs where these interactions result in limitations of activity and restrictions to full participation in school, work, home or the community."
# keywords:
# - Disability
# - Lansing
# - eMOTIONAL Cities
# links:
# - type: text/html
# rel: canonical
# title: metadata
# # TODO: replace this later
# href: https://emotional.byteroad.net/collections/ec_catalog/items/6c22e1572c4f4a44121d0e50cf6141
# hreflang: en-US
# extents:
# spatial:
# bbox: [-84.6152831208922436,42.6555100041266542,-84.4991605004521631,42.7697938845623256]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# providers:
# - type: feature
# name: Elasticsearch
# data: http://elastic_search:9200/lansing_city_census_tracts_percentageofpeoplebiketowork_2020
# id_field: id
# - type: tile
# name: MVT
# data: http://elastic_search:9200/lansing_city_census_tracts_percentageofpeoplebiketowork_2020/_mvt/geometry/{z}/{x}/{y}?grid_precision=0
# options:
# metadata_format: raw # default | tilejson
# zoom:
# min: 0
# max: 15
# schemes:
# - WorldCRS84Quad
# format:
# name: pbf
# mimetype: application/vnd.mapbox-vector-tile
lansing_city_census_tracts_percentageofpeoplebiketowork_2020:
type: collection
title: "Number of People with Disability (aged 5 and above)"
description: "Count of civilian noninstitutionalized population with one or more types of disabilities, between 2017-2021. According to the Census, disability is defined as the product of interactions among individuals' bodies, and it takes into consideration physical, emotional, and mental health, as well as the physical and social environment in which people live, work or play. Disability occurs where these interactions result in limitations of activity and restrictions to full participation in school, work, home or the community."
keywords:
- Disability
- Lansing
- eMOTIONAL Cities
links:
- type: text/html
rel: canonical
title: metadata
# TODO: replace this later
href: https://emotional.byteroad.net/collections/ec_catalog/items/6c22e1572c4f4a44121d0e50cf6141
hreflang: en-US
extents:
spatial:
bbox: [-84.6152831208922436,42.6555100041266542,-84.4991605004521631,42.7697938845623256]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
providers:
- type: feature
name: Elasticsearch
data: http://elastic_search:9200/lansing_city_census_tracts_percentageofpeoplebiketowork_2020
id_field: id
- type: tile
name: MVT
data: http://elastic_search:9200/lansing_city_census_tracts_percentageofpeoplebiketowork_2020/_mvt/geometry/{z}/{x}/{y}?grid_precision=0
options:
metadata_format: raw # default | tilejson
zoom:
min: 0
max: 15
schemes:
- WorldCRS84Quad
format:
name: pbf
mimetype: application/vnd.mapbox-vector-tile

lansing_city_census_tracts_traveltimetowork_17_21:
type: collection
Expand Down

0 comments on commit 379e55c

Please sign in to comment.