Skip to content

Commit 44131d6

Browse files
committed
add create extension
1 parent 5127508 commit 44131d6

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

12-alpine/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ LABEL maintainer="[email protected]"
1919
COPY --from=extension_builder /usr/local/lib/postgresql/ /usr/local/lib/postgresql/
2020
COPY --from=extension_builder /usr/local/share/postgresql/extension /usr/local/share/postgresql/extension
2121

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

24-
# after in sql:
25-
# CREATE EXTENSION sequential_uuids;
24+
# ref: https://github.com/docker-library/postgres/issues/340

12/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ LABEL maintainer="[email protected]"
2121
COPY --from=extension_builder /usr/lib/postgresql/${pg_version_in_path}/lib /usr/lib/postgresql/${pg_version_in_path}/lib
2222
COPY --from=extension_builder /usr/share/postgresql/${pg_version_in_path}/extension /usr/share/postgresql/${pg_version_in_path}/extension
2323

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

26-
# after in sql:
27-
# CREATE EXTENSION sequential_uuids;
26+
# ref: https://github.com/docker-library/postgres/issues/340

13-alpine/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ LABEL maintainer="[email protected]"
1919
COPY --from=extension_builder /usr/local/lib/postgresql/ /usr/local/lib/postgresql/
2020
COPY --from=extension_builder /usr/local/share/postgresql/extension /usr/local/share/postgresql/extension
2121

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

24-
# after in sql:
25-
# CREATE EXTENSION sequential_uuids;
24+
# ref: https://github.com/docker-library/postgres/issues/340

13/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ LABEL maintainer="[email protected]"
2121
COPY --from=extension_builder /usr/lib/postgresql/${pg_version_in_path}/lib /usr/lib/postgresql/${pg_version_in_path}/lib
2222
COPY --from=extension_builder /usr/share/postgresql/${pg_version_in_path}/extension /usr/share/postgresql/${pg_version_in_path}/extension
2323

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

26-
# after in sql:
27-
# CREATE EXTENSION sequential_uuids;
26+
# ref: https://github.com/docker-library/postgres/issues/340

0 commit comments

Comments
 (0)