Skip to content

Commit 341754d

Browse files
mnaserclaude
andcommitted
fix: add docker build for Debian image (backport #46)
Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
1 parent c8e0e40 commit 341754d

3 files changed

Lines changed: 41 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,30 @@ on:
1010

1111
jobs:
1212
image:
13+
name: ${{ matrix.name }}
1314
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
- name: ubuntu
20+
image-name: python-base-ubuntu
21+
from: ubuntu:24.04
22+
- name: ubuntu-cloud-archive
23+
image-name: python-base-ubuntu-cloud-archive
24+
from: ghcr.io/vexxhost/ubuntu-cloud-archive:2023.1@sha256:cee673994251c6538ad920a66141576e1e7b1252e17a7db17e422a01728278a0
25+
- name: ubuntu-cloud-archive-legacy
26+
image-name: python-base
27+
from: ghcr.io/vexxhost/ubuntu-cloud-archive:2023.1@sha256:cee673994251c6538ad920a66141576e1e7b1252e17a7db17e422a01728278a0
28+
- name: debian
29+
image-name: python-base-debian
30+
from: debian:trixie
31+
- name: rockylinux
32+
image-name: python-base-rockylinux
33+
from: rockylinux:9
34+
- name: almalinux
35+
image-name: python-base-almalinux
36+
from: almalinux:9
1437
permissions:
1538
contents: read
1639
id-token: write
@@ -19,5 +42,6 @@ jobs:
1942
steps:
2043
- uses: vexxhost/docker-atmosphere/.github/actions/build-image@main
2144
with:
22-
image-name: python-base
45+
image-name: ${{ matrix.image-name }}
46+
build-args: FROM=${{ matrix.from }}
2347
push: ${{ github.event_name != 'pull_request' }}

Dockerfile

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
22
# SPDX-License-Identifier: GPL-3.0-or-later
33

4-
FROM ghcr.io/vexxhost/ubuntu-cloud-archive:2023.1@sha256:cee673994251c6538ad920a66141576e1e7b1252e17a7db17e422a01728278a0
4+
ARG FROM
5+
6+
FROM ${FROM}
57
ENV PATH=/var/lib/openstack/bin:$PATH
6-
RUN \
7-
apt-get update -qq && \
8-
apt-get install -qq -y --no-install-recommends \
9-
ca-certificates \
10-
libpython3.10 \
11-
lsb-release \
12-
python3-distutils \
13-
sudo && \
14-
apt-get clean && \
15-
rm -rf /var/lib/apt/lists/*
8+
RUN --mount=type=bind,source=bindep.txt,target=/bindep.txt \
9+
--mount=type=bind,from=ghcr.io/vexxhost/build-utils:latest,source=/bin,target=/build \
10+
/build/install-bindep-packages

bindep.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ca-certificates
2+
libpcre2-8-0 [platform:debian]
3+
libpcre3 [platform:ubuntu]
4+
libpython3.12 [platform:ubuntu]
5+
libpython3.13 [platform:debian]
6+
pcre2 [platform:redhat]
7+
python3-libs [platform:redhat]
8+
lsb-release [platform:dpkg]
9+
python3-setuptools
10+
sudo

0 commit comments

Comments
 (0)