This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 37aff5159 feat(ci/linux-packages/apt): add support for Ubuntu 24.04 
packages (#2482)
37aff5159 is described below

commit 37aff51599dbb62c4a810f392476da1d85ff8f37
Author: Sutou Kouhei <[email protected]>
AuthorDate: Thu Jan 23 18:35:34 2025 +0900

    feat(ci/linux-packages/apt): add support for Ubuntu 24.04 packages (#2482)
    
    Fixes #2478.
---
 .github/workflows/packaging.yml               |  1 +
 ci/linux-packages/Rakefile                    |  2 +
 ci/linux-packages/apt/ubuntu-noble/Dockerfile | 62 +++++++++++++++++++++++++++
 3 files changed, 65 insertions(+)

diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index 0e25a9a36..da9e7389b 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -300,6 +300,7 @@ jobs:
           - almalinux-9
           - debian-bookworm
           - ubuntu-jammy
+          - ubuntu-noble
     steps:
       - uses: actions/download-artifact@v4
         with:
diff --git a/ci/linux-packages/Rakefile b/ci/linux-packages/Rakefile
index ca11a1345..3800ba466 100644
--- a/ci/linux-packages/Rakefile
+++ b/ci/linux-packages/Rakefile
@@ -133,6 +133,8 @@ class ADBCPackageTask < PackageTask
       # "debian-bookworm-arm64",
       "ubuntu-jammy",
       # "ubuntu-jammy-arm64",
+      "ubuntu-noble",
+      # "ubuntu-noble-arm64",
     ]
   end
 
diff --git a/ci/linux-packages/apt/ubuntu-noble/Dockerfile 
b/ci/linux-packages/apt/ubuntu-noble/Dockerfile
new file mode 100644
index 000000000..bd6da68a7
--- /dev/null
+++ b/ci/linux-packages/apt/ubuntu-noble/Dockerfile
@@ -0,0 +1,62 @@
+# 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:noble
+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 \
+    lsb-release \
+    wget && \
+  wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | 
tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename 
--short).deb && \
+  apt install -y -V ${quiet} \
+    ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \
+  rm apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \
+  grep " $(lsb_release --codename --short) " /etc/apt/sources.list | \
+    sed -e "s/$(lsb_release --codename --short)/$(lsb_release --codename 
--short)-backports/g" > \
+    /etc/apt/sources.list.d/backports.list && \
+  apt update && \
+  apt install -y -V ${quiet} \
+    build-essential \
+    ccache \
+    cmake \
+    debhelper \
+    devscripts \
+    gobject-introspection \
+    golang \
+    libarrow-glib-dev \
+    libgirepository1.0-dev \
+    libpq-dev \
+    libsqlite3-dev \
+    meson \
+    ninja-build \
+    pkg-config \
+    tzdata \
+    valac && \
+  apt clean

Reply via email to