Skip to content

Commit 31c68e4

Browse files
committed
Fix Docker build workflow for Ubuntu 24.04
- Add postgresml-python job to workflow to build Python package first - Update Docker build to install postgresml-python package separately - Ensures Python 3.12 is properly used for Ubuntu 24.04
1 parent caed629 commit 31c68e4

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/ubuntu-packages-and-docker-image.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,33 @@ on:
66
packageVersion:
77
default: "2.10.0"
88
jobs:
9+
#
10+
# PostgresML Python package.
11+
#
12+
postgresml-python:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: ["ubuntu-22.04", "buildjet-4vcpu-ubuntu-2204-arm"]
17+
ubuntu_version: ["20.04", "22.04", "24.04"]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Build and release Python package
22+
env:
23+
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
24+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
25+
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
26+
run: |
27+
sudo apt update
28+
sudo apt install -y python3-dev python3-pip python3-virtualenv
29+
bash packages/postgresml-python/release.sh ${{ inputs.packageVersion }} ${{ matrix.ubuntu_version }}
30+
931
#
1032
# PostgresML extension.
1133
#
1234
postgresml-pgml:
35+
needs: postgresml-python
1336
strategy:
1437
fail-fast: false # Let the other job finish
1538
matrix:

docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | te
1818

1919
ENV TZ=UTC
2020
ENV DEBIAN_FRONTEND=noninteractive
21-
RUN apt update -y && apt install git postgresml-17 postgresml-dashboard -y
21+
RUN apt update -y && \
22+
apt install -y git postgresml-python && \
23+
apt install -y postgresml-17 postgresml-dashboard
2224
RUN git clone --branch v0.8.0 https://github.com/pgvector/pgvector && \
2325
cd pgvector && \
2426
echo "trusted = true" >> vector.control && \

0 commit comments

Comments
 (0)