Skip to content

Commit d7c6ade

Browse files
authored
Change yarn -> pnpm overpass-turbo and Docker images for Tiler (#705)
* Fixed pnpm * Fixed communication - layer name * Update docker images and volume for prod deployment
1 parent 12c71f9 commit d7c6ade

File tree

6 files changed

+29
-44
lines changed

6 files changed

+29
-44
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-
- 'communication_and_street'
7+
- 'fixed_pnpm'
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/communication_and_street'
74+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/fixed_pnpm'
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/communication_and_street'
192+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fixed_pnpm'
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/communication_and_street'
199+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fixed_pnpm'
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/communication_and_street'
213+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/fixed_pnpm'
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/communication_and_street'
219+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fixed_pnpm'
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/communication_and_street'
224+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fixed_pnpm'
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/communication_and_street'
228+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/fixed_pnpm'
229229
run: helm upgrade --install staging --wait ohm/ -f values.staging.yaml -f ohm/values.yaml
230230
# Production
231231
- name: Production - helm deploy

.github/workflows/frontend-overpass.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- "main"
77
- "staging"
8+
- "fixed_pnpm"
89

910
jobs:
1011
build:
@@ -20,7 +21,7 @@ jobs:
2021
access_token: ${{ github.token }}
2122

2223
- name: Set environment variables - Staging
23-
if: github.ref == 'refs/heads/staging'
24+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/fixed_pnpm'
2425
uses: allenevans/[email protected]
2526
with:
2627
OVERPASS_API: overpass-api.openhistoricalmap.org
@@ -55,11 +56,11 @@ jobs:
5556
working-directory: overpass-turbo
5657

5758
- name: Install dependencies
58-
run: yarn install
59+
run: pnpm install
5960
working-directory: overpass-turbo
6061

6162
- name: Build project
62-
run: yarn build
63+
run: pnpm build
6364
working-directory: overpass-turbo
6465

6566
- name: Setup Python

hetzner/tiler/tiler.base.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
tiler_server:
33
container_name: tiler_server
4-
image: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.3225.h2122f3e
4+
image: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.3296.h0e45d176
55
# image: tiler-server:staging
66
# build:
77
# context: ../../images/tiler-server
@@ -15,14 +15,6 @@ services:
1515
# - ../../images/tiler-server/start.sh:/app/start.sh:ro
1616
networks:
1717
- ohm_network
18-
19-
volumes:
20-
tiler_pgdata:
21-
driver: local
22-
name: tiler_db_11_02
23-
tiler_imposm_data:
24-
driver: local
25-
name: tiler_imposm_11_02
2618

2719
networks:
2820
ohm_network:

hetzner/tiler/tiler.production.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616

1717
tiler_imposm:
1818
container_name: tiler_imposm
19-
image: ghcr.io/openhistoricalmap/tiler-imposm:0.0.1-0.dev.git.3208.h6ef73bb
19+
image: ghcr.io/openhistoricalmap/tiler-imposm:0.0.1-0.dev.git.3294.h12c71f95
2020
volumes:
2121
- tiler_imposm_data:/mnt/data
2222
env_file:
@@ -38,7 +38,7 @@ services:
3838
# Tiler server
3939
tiler_server:
4040
container_name: tiler_server
41-
image: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.3225.h2122f3e
41+
image: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.3296.h0e45d176
4242
# ports:
4343
# - "9090:9090"
4444
restart: always
@@ -81,7 +81,7 @@ services:
8181

8282
tile_global_seeding:
8383
container_name: tiler_global_seeding
84-
image: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.3225.h2122f3e
84+
image: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.3296.h0e45d176
8585
env_file:
8686
- .env.tiler
8787
volumes:
@@ -96,7 +96,7 @@ services:
9696

9797
tile_coverage_seeding:
9898
container_name: tiler_coverage_seeding
99-
image: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.3225.h2122f3e
99+
image: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.3296.h0e45d176
100100
volumes:
101101
- ./seed.sh:/opt/seed.sh
102102
entrypoint:
@@ -128,10 +128,10 @@ services:
128128
volumes:
129129
tiler_pgdata:
130130
driver: local
131-
name: tiler_db_11_02
131+
name: tiler_db_25_02
132132
tiler_imposm_data:
133133
driver: local
134-
name: tiler_imposm_11_02
134+
name: tiler_imposm_25_02
135135

136136
networks:
137137
ohm_network:

hetzner/tiler/tiler.staging.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ services:
1212
- postgres
1313
- "-c"
1414
- "config_file=/etc/postgresql/postgresql.conf"
15-
# ports:
16-
# - "54321:5432"
15+
ports:
16+
- "5432:5432"
1717
env_file:
1818
- .env.tiler
1919
networks:
2020
- ohm_network
2121
tiler_imposm:
2222
container_name: tiler_imposm
23-
image: ghcr.io/openhistoricalmap/tiler-imposm:0.0.1-0.dev.git.3208.h6ef73bb
24-
# image: tiler-imposm:staging
25-
# build:
26-
# context: ../../images/tiler-imposm
27-
# dockerfile: Dockerfile
23+
# image: ghcr.io/openhistoricalmap/tiler-imposm:0.0.1-0.dev.git.3208.h6ef73bb
24+
image: tiler-imposm:staging
25+
build:
26+
context: ../../images/tiler-imposm
27+
dockerfile: Dockerfile
2828
volumes:
2929
- tiler_imposm_data:/mnt/data
3030
command:
@@ -41,15 +41,7 @@ volumes:
4141
tiler_pgdata:
4242
driver: local
4343
name: tiler_db_11_02
44-
driver_opts:
45-
type: none
46-
o: bind
47-
device: /mnt/HC_Volume_104590709/staging/tiler/pgdata
4844

4945
tiler_imposm_data:
5046
driver: local
5147
name: tiler_imposm_11_02
52-
driver_opts:
53-
type: none
54-
o: bind
55-
device: /mnt/HC_Volume_104590709/staging/tiler/imposmdata

images/tiler-server/config/providers/communication_lines.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,19 @@ WHERE
116116
"""
117117
#######Maps
118118
[[maps.layers]]
119-
name = "communication"
119+
name = "communication_lines"
120120
provider_layer = "ohm.communication_z10_12"
121121
min_zoom = 10
122122
max_zoom = 12
123123

124124
[[maps.layers]]
125-
name = "communication"
125+
name = "communication_lines"
126126
provider_layer = "ohm.communication_z13_15"
127127
min_zoom = 13
128128
max_zoom = 15
129129

130130
[[maps.layers]]
131-
name = "communication"
131+
name = "communication_lines"
132132
provider_layer = "ohm.communication_z16_20"
133133
min_zoom = 16
134134
max_zoom = 20

0 commit comments

Comments
 (0)