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

fix pgmq install in docker build #61

Merged
merged 1 commit into from
Sep 25, 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
8 changes: 2 additions & 6 deletions images/pglater-pg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ RUN apt-get update \
pkg-config \
postgresql-server-dev-16

COPY . .
# install pgmq
RUN git clone https://github.com/tembo-io/pgmq.git && \
cd pgmq && \
make && \
make install && \
cd .. && rm -rf pgmq
RUN make install-pgmq PGRX_PG_CONFIG=$(which pg_config)

# Install Rust dependencies
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
Expand All @@ -29,7 +26,6 @@ RUN $HOME/.cargo/bin/cargo install cargo-pgrx --version=$PGRX_VER --locked
RUN $HOME/.cargo/bin/cargo pgrx init --pg16 $(which pg_config)

# install pglater
COPY . .
RUN $HOME/.cargo/bin/cargo pgrx install --pg-config=$(which pg_config)

FROM postgres:16-bookworm
Expand Down
Loading