Skip to content

Commit

Permalink
update builds for local runner (#41)
Browse files Browse the repository at this point in the history
* update builds for local runner

* tmp, rebuild latest image

* rollback temp change
  • Loading branch information
ChuckHend authored Jan 30, 2024
1 parent 5cb8f9b commit fde3c51
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.2'

services:
postgres:
restart: always
image: quay.io/tembo/vectorize-pg:latest
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=postgres
vector-serve:
restart: always
image: quay.io/tembo/vector-serve:latest
ports:
- 3000:3000
14 changes: 7 additions & 7 deletions images/vectorize-pg/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM postgres:15.4-bookworm as builder

ARG PGMQ_VER=0.33.1
ARG VECTOR_VER=0.5.1
ARG VECTORIZE_VER=0.5.0
ARG PARTMAN_VER=4.7.3
ARG PGMQ_VER=1.1.1
ARG VECTOR_VER=0.6.0
ARG CRON_VER=1.6.2
ARG PGRX_VER=0.11.3

RUN apt-get update \
&& apt-get install -y \
Expand All @@ -28,7 +28,7 @@ RUN git clone https://github.com/pgvector/pgvector.git && \
cd .. && rm -rf pgvector

# install pg_cron
RUN git clone https://github.com/citusdata/pg_cron.git && \
RUN git clone https://github.com/citusdata/pg_cron.git --branch v$CRON_VER && \
cd pg_cron && \
make && make install && \
cd .. && rm -rf pg_cron
Expand All @@ -38,7 +38,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN $HOME/.cargo/bin/rustup default stable

# install pgrx
RUN $HOME/.cargo/bin/cargo install cargo-pgrx --version=0.11.0 --locked
RUN $HOME/.cargo/bin/cargo install cargo-pgrx --version=$PGRX_VER --locked

# install pgmq
RUN $HOME/.cargo/bin/cargo pgrx init --pg15 $(which pg_config)
Expand All @@ -62,4 +62,4 @@ RUN apt-get update \
COPY images/vectorize-pg/postgresql.conf /usr/share/postgresql/15/postgresql.conf.sample

USER postgres
CMD ["postgres"]
CMD ["postgres"]
1 change: 1 addition & 0 deletions images/vectorize-pg/postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -816,3 +816,4 @@ pg_stat_statements.track = all # Track statements generated by stored pr
# Add settings for extensions here
shared_preload_libraries = 'vectorize,pg_cron'
cron.database_name = 'postgres'
vectorize.embedding_service_url = 'http://vector-serve:3000/v1/embeddings'

0 comments on commit fde3c51

Please sign in to comment.