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

Include HypoPG in the Docker image #7

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Build and publish Docker image

env:
POSTGRES_VERSION: "15.7"
HYPOPG_VERSION: "1.4.0"
PGVECTOR_VERSION: "0.6.0"

on:
Expand Down Expand Up @@ -37,7 +38,8 @@ jobs:
context: .
build-args: |
POSTGRES_VERSION=${{env.POSTGRES_VERSION}}
HYPOPG_VERSION=${{env.HYPOPG_VERSION}}
PGVECTOR_VERSION=${{env.PGVECTOR_VERSION}}
platforms: linux/amd64,linux/arm64
tags: ghcr.io/zapgram/pilot-postgres:${{env.POSTGRES_VERSION}}-pgvector${{env.PGVECTOR_VERSION}}
tags: ghcr.io/zapgram/pilot-postgres:${{env.POSTGRES_VERSION}}-hypopg${{env.HYPOPG_VERSION}}-pgvector${{env.PGVECTOR_VERSION}}
push: ${{ github.ref_name == 'trunk' }}
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ FROM postgres:${POSTGRES_VERSION}-alpine
RUN apk add --no-cache \
git make gcc clang15 llvm15 musl-dev

ARG HYPOPG_VERSION

RUN cd /tmp \
&& git clone --branch ${HYPOPG_VERSION} https://github.com/HypoPG/hypopg.git \
&& cd hypopg \
&& make \
&& make install \
&& cd /tmp \
&& rm -rf /tmp/hypopg

ARG PGVECTOR_VERSION

RUN cd /tmp \
Expand Down