Skip to content

Commit

Permalink
Add spilo
Browse files Browse the repository at this point in the history
  • Loading branch information
drivebyer committed Jul 26, 2023
1 parent 8709bb9 commit 2cfa31b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 5 deletions.
39 changes: 34 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,36 @@ jobs:
# ${{ env.ONLINE_REGISTER }}/postgres-operator:${{ github.ref_name }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
logical-backup:
# logical-backup:
# runs-on: ubuntu-latest
# steps:
# - name: Git clone repo
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/[email protected]
# - name: logical-backup
# uses: docker/[email protected]
# with:
# context: ./arm64/images/logical-backup
# file: ./arm64/images/logical-backup/Dockerfile
# github-token: ${{ secrets.GITHUB_TOKEN }}
# push: true
# platforms: ${{ env.BUILD_PLATFORM }}
# tags: |
# ${{ env.ONLINE_REGISTER }}/logical-backup:${{ github.ref_name }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
spilo:
runs-on: ubuntu-latest
steps:
- name: Git clone repo
Expand All @@ -172,15 +201,15 @@ jobs:
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: logical-backup
- name: spilo
uses: docker/[email protected]
with:
context: ./arm64/images/logical-backup
file: ./arm64/images/logical-backup/Dockerfile
context: ./arm64/images/spilo
file: ./arm64/images/spilo/Dockerfile
github-token: ${{ secrets.GITHUB_TOKEN }}
push: true
platforms: ${{ env.BUILD_PLATFORM }}
tags: |
${{ env.ONLINE_REGISTER }}/logical-backup:${{ github.ref_name }}
${{ env.ONLINE_REGISTER }}/spilo-15:${{ github.ref_name }}
cache-from: type=gha
cache-to: type=gha,mode=max
15 changes: 15 additions & 0 deletions arm64/images/spilo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM --platform=$TARGETPLATFORM ghcr.io/zalando/spilo-15:3.0-p1

RUN apt-get update && \
apt-get install -y --no-install-recommends gcc postgresql-server-dev-15 git make && \
rm -rf /var/lib/apt/lists/*

RUN cd /tmp && \
git clone --branch v0.4.4 https://github.com/pgvector/pgvector.git && \
cd pgvector && \
make && \
make install

# cleanup
RUN rm -rf /tmp/pgvector && \
apt-get purge -y --auto-remove gcc postgresql-server-dev-15 git make

0 comments on commit 2cfa31b

Please sign in to comment.