Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update enterprise dockerfile #148

Merged
merged 4 commits into from
Dec 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docker/pg-cnpg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
ARG SEMVER
ARG TARGETARCH

FROM tensorchord/vchord-binary:pg${PG_MAJOR}-v${SEMVER} as binary

Check warning on line 5 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (14)

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 5 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (15)

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 5 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (16)

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

FROM rust:1.78-bookworm as builder
ARG TRUNK_VER=0.12.25
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse
FROM rust:1.82-bookworm as builder

Check warning on line 7 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (14)

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 7 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (15)

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 7 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (16)

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
ARG TRUNK_VER=0.15.6
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse

Check warning on line 9 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (14)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 9 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (15)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 9 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (16)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
RUN cargo install --version $TRUNK_VER pg-trunk

FROM modelzai/pg-slim:${PG_MAJOR}-${TARGETARCH}

Check warning on line 12 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (14)

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ***/pg-slim:${PG_MAJOR}-${TARGETARCH} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 12 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (15)

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ***/pg-slim:${PG_MAJOR}-${TARGETARCH} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 12 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (16)

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ***/pg-slim:${PG_MAJOR}-${TARGETARCH} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/
ARG PG_MAJOR
ARG SEMVER
ARG TARGETARCH
Expand Down Expand Up @@ -132,6 +132,12 @@
# Install pgvector
RUN trunk install pgvector --version ${PGVECTOR}

# Install pgmq
RUN trunk install pgmq --version 1.4.5

# Install pg_later
RUN trunk install pg_later --version 0.3.0

# Clone and build AWS SDK for C++
RUN git clone https://github.com/aws/aws-sdk-cpp.git && \
cd aws-sdk-cpp && \
Expand Down Expand Up @@ -168,7 +174,7 @@
cd ../ && rm -rf pg_failover_slots

# cache all extensions
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Check warning on line 177 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (14)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 177 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (15)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 177 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (16)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

# Test trunk
COPY trunk-install.sh /usr/local/bin/
Expand All @@ -187,4 +193,4 @@

RUN chown -R postgres:postgres /tmp
USER 26
ENV PATH $PATH:/usr/lib/postgresql/${PG_MAJOR}/bin

Check warning on line 196 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (14)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 196 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (15)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 196 in docker/pg-cnpg/Dockerfile

View workflow job for this annotation

GitHub Actions / docker (16)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Loading