Skip to content

Commit 12c71f9

Browse files
authored
Vtiles improvements - communication_lines, transport_lines and route_lines (#703)
* Include street and communication layers in vtiles * Update imposm config to import data to routes and communication multilines * update sql scripts * Update imposm configs * Update tiler compose * update comunication * script to reimport * update to reimport tables * Update * Create a Mview for transport lines * Update communication mview * Add highway in routes_line layer * Update columns for communication * Update communication props * Display communication from zoom 10 on * Do not returm empty values for communitacion_lines layer * Add relation attribute * Display the way itseff too. * Merge results in only one feature in case the attributes are the same * Update branch naem to generate docker images
1 parent bc7b597 commit 12c71f9

24 files changed

+1088
-2331
lines changed

.github/workflows/chartpress.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- 'main'
66
- 'staging'
7-
- 'configs_cgimap'
7+
- 'communication_and_street'
88
jobs:
99
build:
1010
runs-on: ubuntu-22.04
@@ -71,7 +71,7 @@ jobs:
7171
OHM_SLACK_WEBHOOK_URL: ${{ secrets.OHM_SLACK_WEBHOOK_URL }}
7272
################ Staging secrets ################
7373
- name: Staging - substitute secrets
74-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/configs_cgimap'
74+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/communication_and_street'
7575
uses: bluwy/substitute-string-action@v1
7676
with:
7777
_input-file: 'values.staging.template.yaml'
@@ -189,14 +189,14 @@ jobs:
189189
PRODUCTION_OPENSTREETMAP_AUTH_SECRET: ${{ secrets.PRODUCTION_OPENSTREETMAP_AUTH_SECRET }}
190190

191191
- name: AWS Credentials
192-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/configs_cgimap'
192+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/communication_and_street'
193193
uses: aws-actions/configure-aws-credentials@v1
194194
with:
195195
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
196196
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
197197
aws-region: us-east-1
198198
- name: Setup Kubectl and Helm Dependencies
199-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/configs_cgimap'
199+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/communication_and_street'
200200
run: |
201201
sudo pip install awscli --ignore-installed six
202202
sudo curl -L -o /usr/bin/kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.17.7/2020-07-08/bin/linux/amd64/kubectl
@@ -210,22 +210,22 @@ jobs:
210210
helm version
211211
212212
- name: Update kube-config staging
213-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/configs_cgimap'
213+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/communication_and_street'
214214
run: aws eks --region us-east-1 update-kubeconfig --name osmseed-staging
215215
- name: Update kube-config prod
216216
if: github.ref == 'refs/heads/main'
217217
run: aws eks --region us-east-1 update-kubeconfig --name osmseed-production-v2
218218
- name: Add Helm repository
219-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/configs_cgimap'
219+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/communication_and_street'
220220
run: |
221221
helm repo add osm-seed https://osm-seed.github.io/osm-seed-chart/
222222
helm repo update
223223
- name: Install helm dependencies for
224-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/configs_cgimap'
224+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/communication_and_street'
225225
run: cd ohm && helm dep up
226226
# Staging
227227
- name: Staging - helm deploy
228-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/configs_cgimap'
228+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/communication_and_street'
229229
run: helm upgrade --install staging --wait ohm/ -f values.staging.yaml -f ohm/values.yaml
230230
# Production
231231
- name: Production - helm deploy

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ hetzner/*/.envs.*.production
3333
hetzner/traefik/cloudflare-ips.txt
3434
hetzner/traefik/traefik.yml
3535
.vscode/
36+
imposm3.json
37+
38+
cachedir_reimport/
39+
config_reimport.json
40+
imposm3_reimport.json

compose/tiler.yml

Lines changed: 51 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
services:
22
db:
3-
image: ohm-tiler-db:v1
3+
image: rub21/ohm-tiler-db:v1
4+
container_name: db
45
build:
56
context: ../images/tiler-db
67
dockerfile: Dockerfile
78
ports:
8-
- "5432:5432"
9-
# volumes:
10-
# - ../data/tiler-db-data2:/var/lib/postgresql/data
9+
- "54321:5432"
10+
volumes:
11+
- tiler_pgdata:/var/lib/postgresql/data
1112
env_file:
1213
- ../envs/.env.tiler
1314
restart: always
1415
networks:
15-
- tiler_network
16+
- ohm_network
1617

1718
imposm:
18-
image: rub21/tiler-imposm:v70
19+
image: rub21/tiler-imposm:v1
20+
container_name: imposm
1921
build:
2022
context: ../images/tiler-imposm
2123
dockerfile: Dockerfile
2224
volumes:
2325
- ../images/tiler-imposm:/osm
24-
- ../hetzner:/hetzner
26+
- tiler_imposm_data:/mnt/data
2527
command:
2628
- sh
2729
- -c
2830
- "./start.sh"
2931
env_file:
3032
- ../envs/.env.tiler
3133
networks:
32-
- tiler_network
34+
- ohm_network
3335

3436
tiler:
35-
image: rub21/tiler-server:v73
37+
image: rub21/tiler-server:v1
38+
container_name: tiler
3639
build:
3740
context: ../images/tiler-server
3841
dockerfile: Dockerfile
@@ -45,39 +48,47 @@ services:
4548
- ../envs/.env.tiler
4649
restart: always
4750
networks:
48-
- tiler_network
51+
- ohm_network
4952

50-
tiler-cache:
51-
image: rub21/tiler-cache:v2
52-
build:
53-
context: ../images/tiler-cache
54-
dockerfile: Dockerfile
55-
volumes:
56-
- ../images/tiler-cache:/app
57-
env_file:
58-
- ../envs/.env.tiler
59-
restart: always
60-
networks:
61-
- tiler_network
53+
# tiler-cache:
54+
# image: rub21/tiler-cache:v2
55+
# build:
56+
# context: ../images/tiler-cache
57+
# dockerfile: Dockerfile
58+
# volumes:
59+
# - ../images/tiler-cache:/app
60+
# env_file:
61+
# - ../envs/.env.tiler
62+
# restart: always
63+
# networks:
64+
# - ohm_network
6265

6366

64-
tiler-monitor:
65-
image: rub21/tiler-monitor:v1
66-
build:
67-
context: ../images/tiler-monitor
68-
dockerfile: Dockerfile
69-
volumes:
70-
- /var/run/docker.sock:/var/run/docker.sock
71-
- ../images/tiler-monitor:/app
72-
- ../hetzner:/app/hetzner
73-
environment:
74-
- DOCKER_CONFIG_ENVIRONMENT=staging
75-
env_file:
76-
- ../envs/.env.tiler
77-
stdin_open: true
78-
tty: true
67+
# tiler-monitor:
68+
# image: rub21/tiler-monitor:v1
69+
# build:
70+
# context: ../images/tiler-monitor
71+
# dockerfile: Dockerfile
72+
# volumes:
73+
# - /var/run/docker.sock:/var/run/docker.sock
74+
# - ../images/tiler-monitor:/app
75+
# - ../hetzner:/app/hetzner
76+
# environment:
77+
# - DOCKER_CONFIG_ENVIRONMENT=staging
78+
# env_file:
79+
# - ../envs/.env.tiler
80+
# stdin_open: true
81+
# tty: true
7982

8083
networks:
81-
tiler_network:
82-
driver: bridge
83-
84+
ohm_network:
85+
external: true
86+
87+
volumes:
88+
tiler_pgdata:
89+
driver: local
90+
name: tiler_db
91+
92+
tiler_imposm_data:
93+
driver: local
94+
name: tiler_imposm

0 commit comments

Comments
 (0)