Skip to content

Commit cd75cae

Browse files
authored
Restore api db version - before the upstream migration (#777)
* Restore db for web api * Use backup EBS volume for staging
1 parent b079bc8 commit cd75cae

3 files changed

Lines changed: 4 additions & 20 deletions

File tree

images/db/Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
# Stage 1: Compilar el plugin para PostgreSQL 17
12
FROM postgres:17 AS builder
23

3-
# Install build dependencies
4+
# Instalar dependencias de compilación
45
RUN apt-get update && apt-get install -y --no-install-recommends \
56
ca-certificates \
67
build-essential \
@@ -17,7 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1718
&& update-ca-certificates \
1819
&& rm -rf /var/lib/apt/lists/*
1920

20-
# Clone and build osmdbt plugin for PostgreSQL 17
21+
# Clonar y compilar el plugin osmdbt para PostgreSQL 17
2122
RUN git clone https://github.com/openstreetmap/osmdbt.git /tmp/osmdbt && \
2223
cd /tmp/osmdbt && \
2324
git checkout v0.9 && \
@@ -28,15 +29,6 @@ RUN git clone https://github.com/openstreetmap/osmdbt.git /tmp/osmdbt && \
2829

2930
FROM postgres:17
3031

31-
RUN apt-get update && apt-get install -y --no-install-recommends \
32-
postgresql-17-postgis-3 \
33-
postgresql-17-postgis-3-scripts \
34-
&& rm -rf /var/lib/apt/lists/*
35-
36-
# Auto-create required extensions on fresh initdb
37-
COPY ./scripts/init-extensions.sh /docker-entrypoint-initdb.d/10-extensions.sh
38-
RUN chmod +x /docker-entrypoint-initdb.d/10-extensions.sh
39-
4032
COPY --from=builder /tmp/osmdbt/postgresql-plugin/build/osm-logical.so /usr/lib/postgresql/17/lib/osm-logical.so
4133

4234
RUN ln -s /usr/lib/postgresql/17/lib/osm-logical.so /usr/lib/postgresql/17/lib/osm_logical.so

images/db/scripts/init-extensions.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

values.staging.template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ osm-seed:
4747
accessMode: ReadWriteOnce
4848
mountPath: /var/lib/postgresql/data
4949
subPath: postgresql-db
50-
AWS_ElasticBlockStore_volumeID : vol-0d06904bb508e31b9
50+
AWS_ElasticBlockStore_volumeID: vol-025cab988ae190a7b
5151
AWS_ElasticBlockStore_size: 200Gi
5252
resources:
5353
enabled: false

0 commit comments

Comments
 (0)