Skip to content

Commit 0f6acaa

Browse files
fix: uncomment useful lines in Dockerfile
Signed-off-by: thomas.boussekey <thomas.boussekey@mirakl.com>
1 parent dc8601b commit 0f6acaa

1 file changed

Lines changed: 5 additions & 19 deletions

File tree

pgrepack/Dockerfile

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,19 @@ USER 0
1818
# copied to /lib.
1919

2020
# Install extension via `apt-get`
21-
# RUN apt-get update && apt-get install -y --no-install-recommends \
22-
# "postgresql-${PG_MAJOR}-pg_repack=${EXT_VERSION}"
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
"postgresql-${PG_MAJOR}-repack=${EXT_VERSION}"
2323

2424
FROM scratch
2525
ARG PG_MAJOR
2626

2727
# Licenses
28-
# TODO: Uncomment and customize the COPY command below
29-
# Including license files is essential for legal compliance and transparency.
30-
# It ensures proper attribution to original authors, fulfills open source license
31-
# requirements, and enables automated compliance scanning tools to verify licensing.
32-
# COPY --from=builder /usr/share/doc/postgresql-${PG_MAJOR}-pg_repack/copyright /licenses/postgresql-${PG_MAJOR}-pg_repack/
28+
COPY --from=builder /usr/share/doc/postgresql-${PG_MAJOR}-repack/copyright /licenses/postgresql-${PG_MAJOR}-repack/
3329

3430
# Libraries
35-
# TODO: Uncomment and customize the COPY command below
36-
# Include the extension's shared objects and related dependencies under the /lib directory.
37-
# CNPG will configure PostgreSQL to locate these libraries at runtime by configuring
38-
# the "dynamic_library_path" GUC to include this path.
39-
# For more details, see: https://cloudnative-pg.io/docs/current/imagevolume_extensions#how-it-works
40-
# COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/lib/pg_repack* /lib/
31+
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/lib/pg_repack* /lib/
4132

4233
# Share
43-
# TODO: Uncomment and customize the COPY command below
44-
# Include the extension's SQL scripts and control files under the /share/extension directory.
45-
# CNPG will configure PostgreSQL to include this path via the "extension_control_path" GUC to
46-
# seamlessly find and manage the current extension.
47-
# For more details, see: https://cloudnative-pg.io/docs/current/imagevolume_extensions#how-it-works
48-
# COPY --from=builder /usr/share/postgresql/${PG_MAJOR}/extension/pg_repack* /share/extension/
34+
COPY --from=builder /usr/share/postgresql/${PG_MAJOR}/extension/pg_repack* /share/extension/
4935

5036
USER 65532:65532

0 commit comments

Comments
 (0)