Skip to content

Commit

Permalink
fix pgmq install in docker build (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHend authored Sep 25, 2024
1 parent 98af4f4 commit d16310d
Showing 1 changed file with 2 additions and 6 deletions.
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

0 comments on commit d16310d

Please sign in to comment.