File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ COPY . .
10
10
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/event_handler ./cmd/event_handler
11
11
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/failover_validation ./cmd/failover_validation
12
12
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/pg_unregister ./cmd/pg_unregister
13
-
14
13
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start_monitor ./cmd/monitor
15
14
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start_admin_server ./cmd/admin_server
16
-
17
15
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start ./cmd/start
18
16
19
17
COPY ./bin/* /fly/bin/
@@ -24,6 +22,8 @@ FROM postgres:${PG_VERSION}
24
22
ENV PGDATA=/data/postgresql
25
23
ARG VERSION
26
24
ARG PG_MAJOR_VERSION
25
+ ARG POSTGIS_MAJOR=3
26
+
27
27
28
28
LABEL fly.app_role=postgres_cluster
29
29
LABEL fly.version=${VERSION}
@@ -34,6 +34,10 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
34
34
ca-certificates iproute2 postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim procps jq pgbouncer ssh \
35
35
&& apt autoremove -y
36
36
37
+ RUN apt-get update && apt-get install --no-install-recommends -y \
38
+ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
39
+ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts
40
+
37
41
COPY --from=0 /fly/bin/* /usr/local/bin
38
42
COPY --from=postgres_exporter /postgres_exporter /usr/local/bin/
39
43
You can’t perform that action at this time.
0 commit comments