Skip to content

Commit

Permalink
ensure ulid extension exists, too
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jun 11, 2024
1 parent 348f7e4 commit 751c5f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.db
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ COPY --from=builder-pgx_ulid /tmp/pgx_ulid/target/release/ulid-pg${PG_VERSION_MA
COPY --from=builder-pgx_ulid /tmp/pgx_ulid/target/release/ulid-pg${PG_VERSION_MAJOR}/usr/share/postgresql/${PG_VERSION_MAJOR}/extension/* /usr/share/postgresql/${PG_VERSION_MAJOR}/extension

# Configure shared_preload_libraries
RUN echo "ALTER SYSTEM SET shared_preload_libraries = 'ulid';" > /docker-entrypoint-initdb.d/01-init.sql
RUN echo 'ALTER SYSTEM SET shared_preload_libraries = 'ulid';\n\
CREATE EXTENSION IF NOT EXISTS ulid;\n' > /docker-entrypoint-initdb.d/01-init.sql

USER postgres

Expand Down

0 comments on commit 751c5f2

Please sign in to comment.