-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI jobs for PostgreSQL 17 (#196)
Closes GH-195
- Loading branch information
Showing
20 changed files
with
351 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ jobs: | |
postgresql-version: | ||
- "15" | ||
- "16" | ||
- "17" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Prepare | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ jobs: | |
postgresql-version: | ||
- "15" | ||
- "16" | ||
- "17" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Prepare | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
FROM postgres:17-bookworm | ||
|
||
COPY package/docker/postgresql-17-pgdg-apache-arrow-flight-sql_*_amd64.deb ./ | ||
RUN \ | ||
apt update && \ | ||
apt install -y -V lsb-release wget && \ | ||
wget https://apache.jfrog.io/artifactory/arrow/debian/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ | ||
apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ | ||
rm apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ | ||
apt update && \ | ||
apt install -y -V \ | ||
./postgresql-17-pgdg-apache-arrow-flight-sql_*.deb && \ | ||
rm -f postgresql-17-pgdg-apache-arrow-flight-sql_*.deb && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY package/docker/apache-arrow-flight-sql-enable.sh /docker-entrypoint-initdb.d/ | ||
|
||
EXPOSE 15432 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- ruby -*- | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
require_relative "../arrow-flight-sql-postgresql-package-task" | ||
|
||
class PostgreSQL17PGDGPackageTask < ArrowFlightSQLPostgreSQLPackageTask | ||
def initialize | ||
super("postgresql-17-pgdg-apache-arrow-flight-sql") | ||
end | ||
|
||
def enable_yum? | ||
false | ||
end | ||
end | ||
|
||
PostgreSQL17PGDGPackageTask.new.define |
71 changes: 71 additions & 0 deletions
71
package/postgresql-17-pgdg/apt/debian-bookworm-amd64/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
ARG FROM=debian:bookworm | ||
FROM ${FROM} | ||
|
||
RUN \ | ||
echo "debconf debconf/frontend select Noninteractive" | \ | ||
debconf-set-selections | ||
|
||
RUN \ | ||
echo 'APT::Install-Recommends "false";' > \ | ||
/etc/apt/apt.conf.d/disable-install-recommends | ||
|
||
RUN \ | ||
sed -i'' -e 's/main$/main contrib non-free/g' \ | ||
/etc/apt/sources.list.d/debian.sources | ||
|
||
ARG DEBUG | ||
RUN \ | ||
quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \ | ||
apt update ${quiet} && \ | ||
apt install -y -V ${quiet} \ | ||
ca-certificates \ | ||
gpg \ | ||
lsb-release \ | ||
wget && \ | ||
distribution=$(lsb_release --id --short | tr 'A-Z' 'a-z') && \ | ||
code_name=$(lsb_release --codename --short) && \ | ||
wget https://apache.jfrog.io/artifactory/arrow/${distribution}/apache-arrow-apt-source-latest-${code_name}.deb && \ | ||
apt install -y -V ${quiet} \ | ||
./apache-arrow-apt-source-latest-${code_name}.deb && \ | ||
rm apache-arrow-apt-source-latest-${code_name}.deb && \ | ||
wget -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \ | ||
gpg --no-default-keyring --keyring ./pgdg.kbx --import - && \ | ||
gpg --no-default-keyring --keyring ./pgdg.kbx --export --armor > \ | ||
/usr/share/keyrings/pgdg.asc && \ | ||
rm pgdg.kbx && \ | ||
(echo "Types: deb"; \ | ||
echo "URIs: http://apt.postgresql.org/pub/repos/apt"; \ | ||
echo "Suites: ${code_name}-pgdg"; \ | ||
echo "Components: main"; \ | ||
echo "Signed-By: /usr/share/keyrings/pgdg.asc") | \ | ||
tee /etc/apt/sources.list.d/pgdg.sources && \ | ||
apt update && \ | ||
apt install -y -V ${quiet} \ | ||
build-essential \ | ||
ccache \ | ||
cmake \ | ||
debhelper \ | ||
devscripts \ | ||
libarrow-flight-sql-dev \ | ||
libkrb5-dev \ | ||
meson \ | ||
ninja-build \ | ||
postgresql-server-dev-17 && \ | ||
apt clean |
68 changes: 68 additions & 0 deletions
68
package/postgresql-17-pgdg/apt/ubuntu-noble-amd64/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
ARG FROM=ubuntu:24.04 | ||
FROM ${FROM} | ||
|
||
RUN \ | ||
echo "debconf debconf/frontend select Noninteractive" | \ | ||
debconf-set-selections | ||
|
||
RUN \ | ||
echo 'APT::Install-Recommends "false";' > \ | ||
/etc/apt/apt.conf.d/disable-install-recommends | ||
|
||
ARG DEBUG | ||
RUN \ | ||
quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \ | ||
apt update ${quiet} && \ | ||
apt install -y -V ${quiet} \ | ||
ca-certificates \ | ||
gpg \ | ||
lsb-release \ | ||
wget && \ | ||
distribution=$(lsb_release --id --short | tr 'A-Z' 'a-z') && \ | ||
code_name=$(lsb_release --codename --short) && \ | ||
wget https://apache.jfrog.io/artifactory/arrow/${distribution}/apache-arrow-apt-source-latest-${code_name}.deb && \ | ||
apt install -y -V ${quiet} \ | ||
./apache-arrow-apt-source-latest-${code_name}.deb && \ | ||
rm apache-arrow-apt-source-latest-${code_name}.deb && \ | ||
wget -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \ | ||
gpg --no-default-keyring --keyring ./pgdg.kbx --import - && \ | ||
gpg --no-default-keyring --keyring ./pgdg.kbx --export --armor > \ | ||
/usr/share/keyrings/pgdg.asc && \ | ||
rm pgdg.kbx && \ | ||
(echo "Types: deb"; \ | ||
echo "URIs: http://apt.postgresql.org/pub/repos/apt"; \ | ||
echo "Suites: ${code_name}-pgdg"; \ | ||
echo "Components: main"; \ | ||
echo "Signed-By: /usr/share/keyrings/pgdg.asc") | \ | ||
tee /etc/apt/sources.list.d/pgdg.sources && \ | ||
apt update && \ | ||
apt install -y -V ${quiet} \ | ||
build-essential \ | ||
ccache \ | ||
cmake \ | ||
debhelper \ | ||
devscripts \ | ||
libarrow-flight-sql-dev \ | ||
libkrb5-dev \ | ||
meson \ | ||
ninja-build \ | ||
pkg-config \ | ||
postgresql-server-dev-17 && \ | ||
apt clean |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
Source: postgresql-17-pgdg-apache-arrow-flight-sql | ||
Section: database | ||
Priority: optional | ||
Maintainer: Apache Arrow Developers <[email protected]> | ||
Build-Depends: | ||
cmake, | ||
debhelper-compat (= 13), | ||
libarrow-flight-sql-dev, | ||
libkrb5-dev, | ||
meson, | ||
postgresql-server-dev-17 | ||
Standards-Version: 4.6.0 | ||
Homepage: https://arrow.apache.org/flight-sql-postgresql/ | ||
|
||
Package: postgresql-17-pgdg-apache-arrow-flight-sql | ||
Architecture: any | ||
Depends: | ||
${misc:Depends}, | ||
${shlibs:Depends}, | ||
postgresql-17 | ||
Description: Apache Arrow Flight SQL adapter for PostgreSQL | ||
. | ||
It provides a PostgreSQL module that adds Apache Arrow Flight SQL | ||
interface to PostgreSQL. |
Oops, something went wrong.