Skip to content
Snippets Groups Projects
Commit e001ecb1 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

upstream ci: Build images for CentOS 9 Stream.

This patch add support for building testing images for CentOS 9 Stream.
parent 92522845
No related branches found
No related tags found
No related merge requests found
FROM quay.io/centos/centos:stream9
ENV container=docker
RUN rm -fv /var/cache/dnf/metadata_lock.pid; \
dnf makecache; \
dnf --assumeyes install \
/usr/bin/python3 \
/usr/bin/python3-config \
/usr/bin/dnf-3 \
sudo \
bash \
systemd \
procps-ng \
iproute && \
dnf clean all; \
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*; \
rm -rf /var/cache/dnf/;
STOPSIGNAL RTMIN+3
VOLUME ["/sys/fs/cgroup"]
CMD ["/usr/sbin/init"]
---
driver:
name: docker
platforms:
- name: centos-9-build
image: "quay.io/centos/centos:stream9"
dockerfile: Dockerfile
hostname: ipaserver.test.local
dns_servers:
- 8.8.8.8
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
command: /usr/sbin/init
privileged: true
provisioner:
name: ansible
playbooks:
prepare: ../resources/playbooks/prepare-build.yml
...@@ -27,6 +27,12 @@ jobs: ...@@ -27,6 +27,12 @@ jobs:
container_name: centos-8 container_name: centos-8
build_scenario_name: centos-8-build build_scenario_name: centos-8-build
- template: templates/build_container.yml
parameters:
job_name_suffix: Centos9
container_name: centos-9
build_scenario_name: centos-9-build
- template: templates/build_container.yml - template: templates/build_container.yml
parameters: parameters:
job_name_suffix: FedoraLatest job_name_suffix: FedoraLatest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment