Skip to content

Commit

Permalink
Run make all for pgvector
Browse files Browse the repository at this point in the history
Apparently, make without all doesn't build the extension
SQL script, resulting in an error when attempting to install it.

Move git reset outside of the loop for postgres versions, as we
make clean, one need to reset it only once in the beginning, in
case we have the work directory cached from another run.
  • Loading branch information
alexeyklyukin committed Sep 5, 2023
1 parent 119f9a4 commit a823926
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ RUN set -ex; \
git clone https://github.com/percona/pg_stat_monitor /build/pg_stat_monitor; \
cd /build/pg_stat_monitor; \
git checkout "${PG_STAT_MONITOR}"; \
git reset HEAD --hard; \
for pg in ${PG_VERSIONS}; do \
git reset HEAD --hard; \
PATH="/usr/lib/postgresql/${pg}/bin:${PATH}" make USE_PGXS=1 clean; \
PATH="/usr/lib/postgresql/${pg}/bin:${PATH}" make USE_PGXS=1 all; \
PATH="/usr/lib/postgresql/${pg}/bin:${PATH}" make USE_PGXS=1 install; \
done; \
fi
Expand All @@ -287,9 +288,10 @@ RUN set -ex; \
git clone https://github.com/pgvector/pgvector /build/pgvector; \
cd /build/pgvector; \
git checkout "${PGVECTOR}"; \
git reset HEAD --hard; \
for pg in ${PG_VERSIONS}; do \
git reset HEAD --hard; \
PATH="/usr/lib/postgresql/${pg}/bin:${PATH}" make OPTFLAGS="" clean; \
PATH="/usr/lib/postgresql/${pg}/bin:${PATH}" make OPTFLAGS="" all; \
PATH="/usr/lib/postgresql/${pg}/bin:${PATH}" make OPTFLAGS="" install; \
done; \
fi
Expand Down

0 comments on commit a823926

Please sign in to comment.