Skip to content

Commit 87ea96f

Browse files
committed
cleanup
1 parent 76d4723 commit 87ea96f

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

12-alpine/Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ WORKDIR /external_extensions/sequential-uuids/
99

1010
RUN apk update && apk add build-base icu-dev postgresql-dev
1111
RUN make clean && make install
12-
# run find / -name 'sequential_uuids*' to find newly compiled files and copy to next stage
1312

1413
# main image
1514
FROM postgres:${postgres_version}-alpine
@@ -19,6 +18,4 @@ LABEL maintainer="[email protected]"
1918
COPY --from=extension_builder /usr/local/lib/postgresql/ /usr/local/lib/postgresql/
2019
COPY --from=extension_builder /usr/local/share/postgresql/extension /usr/local/share/postgresql/extension
2120

22-
RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql
23-
24-
# ref: https://github.com/docker-library/postgres/issues/340
21+
RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql

12/Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ WORKDIR /external_extensions/sequential-uuids/
1010

1111
RUN apt-get update && apt install build-essential libicu-dev postgresql-server-dev-${postgres_version} -y --no-install-recommends
1212
RUN make clean && make install
13-
# run find / -name 'sequential_uuids*' to find newly compiled files and copy to next stage
1413

1514
# main image
1615
FROM postgres:${postgres_version}
@@ -21,6 +20,4 @@ LABEL maintainer="[email protected]"
2120
COPY --from=extension_builder /usr/lib/postgresql/${pg_version_in_path}/lib /usr/lib/postgresql/${pg_version_in_path}/lib
2221
COPY --from=extension_builder /usr/share/postgresql/${pg_version_in_path}/extension /usr/share/postgresql/${pg_version_in_path}/extension
2322

24-
RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql
25-
26-
# ref: https://github.com/docker-library/postgres/issues/340
23+
RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql

13-alpine/Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ WORKDIR /external_extensions/sequential-uuids/
99

1010
RUN apk update && apk add build-base icu-dev postgresql-dev
1111
RUN make clean && make install
12-
# run find / -name 'sequential_uuids*' to find newly compiled files and copy to next stage
1312

1413
# main image
1514
FROM postgres:${postgres_version}-alpine
@@ -19,6 +18,4 @@ LABEL maintainer="[email protected]"
1918
COPY --from=extension_builder /usr/local/lib/postgresql/ /usr/local/lib/postgresql/
2019
COPY --from=extension_builder /usr/local/share/postgresql/extension /usr/local/share/postgresql/extension
2120

22-
RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql
23-
24-
# ref: https://github.com/docker-library/postgres/issues/340
21+
RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql

13/Dockerfile

-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ WORKDIR /external_extensions/sequential-uuids/
1010

1111
RUN apt-get update && apt install build-essential libicu-dev postgresql-server-dev-${postgres_version} -y --no-install-recommends
1212
RUN make clean && make install
13-
# run find / -name 'sequential_uuids*' to find newly compiled files and copy to next stage
1413

1514
# main image
1615
FROM postgres:${postgres_version}
@@ -22,5 +21,3 @@ COPY --from=extension_builder /usr/lib/postgresql/${pg_version_in_path}/lib /usr
2221
COPY --from=extension_builder /usr/share/postgresql/${pg_version_in_path}/extension /usr/share/postgresql/${pg_version_in_path}/extension
2322

2423
RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql
25-
26-
# ref: https://github.com/docker-library/postgres/issues/340

0 commit comments

Comments
 (0)