Skip to content

Commit

Permalink
Merge pull request #15 from beclab/fix/citus-image
Browse files Browse the repository at this point in the history
fix: add arm64 arch for citus image
  • Loading branch information
eball authored Jun 18, 2024
2 parents 33ceb34 + bb97e34 commit c476690
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docker/citus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ RUN apt-get update \
&& curl -s https://install.citusdata.com/community/deb.sh | bash \
&& apt-get install -y postgresql-$PG_MAJOR-citus-11.3=$CITUS_VERSION \
postgresql-$PG_MAJOR-hll=2.17.citus-1 \
postgresql-$PG_MAJOR-topn=2.5.0.citus-1
# && apt-get purge -y --auto-remove curl \
# && rm -rf /var/lib/apt/lists/* \
postgresql-$PG_MAJOR-topn=2.5.0.citus-1

RUN curl -sfLO https://github.com/tensorchord/pgvecto.rs/releases/download/v0.2.1/vectors-pg15_0.2.1_amd64.deb && \
apt-get install ./vectors-pg15_0.2.1_amd64.deb && rm vectors-pg15_0.2.1_amd64.deb
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \
curl -sfLO https://github.com/tensorchord/pgvecto.rs/releases/download/v0.2.1/vectors-pg15_0.2.1_${arch}.deb && \
apt-get install ./vectors-pg15_0.2.1_${arch}.deb && rm vectors-pg15_0.2.1_${arch}.deb

RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null \
&& sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' \
Expand Down

0 comments on commit c476690

Please sign in to comment.