Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,30 @@ on:

jobs:
image:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: ubuntu
image-name: python-base-ubuntu
from: ubuntu:24.04
- name: ubuntu-cloud-archive
image-name: python-base-ubuntu-cloud-archive
from: ghcr.io/vexxhost/ubuntu-cloud-archive:2024.2@sha256:8c123d93f28e98b761945c7f38f6364adaa41a1eaf56d2084aa46a58b96cd519
- name: ubuntu-cloud-archive-legacy
image-name: python-base
from: ghcr.io/vexxhost/ubuntu-cloud-archive:2024.2@sha256:8c123d93f28e98b761945c7f38f6364adaa41a1eaf56d2084aa46a58b96cd519
- name: debian
image-name: python-base-debian
from: debian:trixie
- name: rockylinux
image-name: python-base-rockylinux
from: rockylinux:9
- name: almalinux
image-name: python-base-almalinux
from: almalinux:9
permissions:
contents: read
id-token: write
Expand All @@ -19,5 +42,6 @@ jobs:
steps:
- uses: vexxhost/docker-atmosphere/.github/actions/build-image@main
with:
image-name: python-base
image-name: ${{ matrix.image-name }}
build-args: FROM=${{ matrix.from }}
push: ${{ github.event_name != 'pull_request' }}
18 changes: 6 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
# SPDX-License-Identifier: GPL-3.0-or-later

FROM ghcr.io/vexxhost/ubuntu-cloud-archive:2024.2@sha256:8c123d93f28e98b761945c7f38f6364adaa41a1eaf56d2084aa46a58b96cd519
ARG FROM

FROM ${FROM}
ENV PATH=/var/lib/openstack/bin:$PATH
RUN \
apt-get update -qq && \
apt-get install -qq -y --no-install-recommends \
ca-certificates \
libpython3.12 \
lsb-release \
libpcre3 \
python3-setuptools \
sudo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN --mount=type=bind,source=bindep.txt,target=/bindep.txt \
--mount=type=bind,from=ghcr.io/vexxhost/build-utils:latest,source=/bin,target=/build \
/build/install-bindep-packages
10 changes: 10 additions & 0 deletions bindep.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ca-certificates
libpcre2-8-0 [platform:debian]
libpcre3 [platform:ubuntu]
libpython3.12 [platform:ubuntu]
libpython3.13 [platform:debian]
pcre2 [platform:redhat]
python3-libs [platform:redhat]
lsb-release [platform:dpkg]
python3-setuptools
sudo
Loading