-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating submodule packages to drop-ins quadlet files (#700)
* Updating submodule packages to drop-ins quadlet files resolves #674 During latest changes all subpackages use drop-in qudlet files Under QM etc/containers/systemd/qm.container.d/ dir Qm nested container quadlets moved to subsystems/ dir Update to quadlet files Signed-off-by: Yariv Rachmani <[email protected]> * Fix subpackages make file It seems that subpackaged rpm was not set correctly Make subpackages creation could be done with the following command make TARGETS=kvm subpackages Signed-off-by: Yariv Rachmani <[email protected]> * make TARGETS=windowmanager subpackages make TARGETS=windowmanager subpackages Adding missing qm qualets Signed-off-by: Yariv Rachmani <[email protected]> * make TARGETS=sound subpackages Signed-off-by: Yariv Rachmani <[email protected]> * make TARGETS=video subpackages Signed-off-by: Yariv Rachmani <[email protected]> * Adding more targets make TARGETS=dvb subpackages make TARGETS=img_tmpdir subpackages make TARGETS=input subpackages make TARGETS=radio subpackages make TARGETS=tesxt2speech subpackages make TARGETS=tty7 subpackages make TARGETS=ttyUSB0 subpackages Signed-off-by: Yariv Rachmani <[email protected]> * Add target ros2 make TARGETS=ros2 subpackages Adding github workflow for subpackages renaming rpm/ros2/rolling/ros2_rolling.spec -> rpm/ros2/ros2_rolling.spec Adding fixes based on tests added Signed-off-by: Yariv Rachmani <[email protected]> --------- Signed-off-by: Yariv Rachmani <[email protected]>
- Loading branch information
Showing
36 changed files
with
367 additions
and
233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build Subpackages | ||
|
||
on: | ||
pull_request | ||
|
||
jobs: | ||
build-subpackages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y make | ||
|
||
- name: Run make for each subsystem | ||
run: | | ||
for dir in subsystems/*; do | ||
if [ -d "$dir" ]; then | ||
subsystem=$(basename "$dir") | ||
echo "Running make for $subsystem..." | ||
make TARGETS=$subsystem subpackages | ||
if [ $? -ne 0 ]; then | ||
echo "❌ Make failed for $subsystem" >&2 | ||
exit 1 | ||
fi | ||
fi | ||
done | ||
|
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
File renamed without changes.
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
File renamed without changes.
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
12 changes: 12 additions & 0 deletions
12
etc/containers/systemd/qm.container.d/qm_dropin_mount_bind_window_manager.conf
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,12 @@ | ||
# Drop-in configuration for Podman to mount bind tty from host to container | ||
# | ||
[Container] | ||
Mount=type=bind,source=/dev/tty0,target=/dev/tty0 | ||
Mount=type=bind,source=/dev/tty1,target=/dev/tty1 | ||
Mount=type=bind,source=/dev/tty2,target=/dev/tty2 | ||
Mount=type=bind,source=/dev/tty3,target=/dev/tty3 | ||
Mount=type=bind,source=/dev/tty4,target=/dev/tty4 | ||
Mount=type=bind,source=/dev/tty5,target=/dev/tty5 | ||
Mount=type=bind,source=/dev/tty6,target=/dev/tty6 | ||
Mount=type=bind,source=/dev/tty7,target=/dev/tty7 | ||
Mount=type=bind,source=/dev/tty0,target=/dev/tty0 |
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
%global debug_package %{nil} | ||
|
||
# Define the rootfs macros | ||
%global rootfs_qm %{_prefix}/lib/qm/rootfs/ | ||
|
||
Name: qm-mount-bind-dvb | ||
Version: 0 | ||
Release: 1%{?dist} | ||
Summary: Drop-in configuration for QM containers to mount bind /dev/dvb | ||
License: GPL-2.0-only | ||
URL: https://github.com/containers/qm | ||
Source0: %{url}/archive/v%{version}.tar.gz | ||
Source0: %{url}/archive/qm-dvb-%{version}.tar.gz | ||
|
||
BuildArch: noarch | ||
Requires: qm = %{version}-%{release} | ||
|
@@ -13,15 +18,21 @@ Requires: qm = %{version}-%{release} | |
This subpackage installs a drop-in configuration for QM containers to mount bind `/dev/dvb`. | ||
|
||
%prep | ||
%autosetup -Sgit -n qm-%{version} | ||
%autosetup -Sgit -n qm-dvb-%{version} | ||
|
||
%install | ||
install -d %{buildroot}%{_sysconfdir}/qm/containers/containers.conf.d | ||
install -m 644 etc/qm/containers/containers.conf.d/qm_dropin_mount_bind_dvb.conf \ | ||
%{buildroot}%{_sysconfdir}/qm/containers/containers.conf.d/ | ||
# Create the directory for drop-in configurations | ||
install -d %{buildroot}%{_sysconfdir}/containers/systemd/qm.container.d | ||
|
||
# Install the dvb drop-in configuration file | ||
install -m 644 %{_builddir}/qm-video-%{version}/etc/containers/systemd/qm.container.d/qm_dropin_mount_bind_dvb.conf \ | ||
%{buildroot}%{_sysconfdir}/containers/systemd/qm.container.d/qm_dropin_mount_bind_dvb.conf | ||
|
||
|
||
%files | ||
%{_sysconfdir}/qm/containers/containers.conf.d/qm_dropin_mount_bind_dvb.conf | ||
%license LICENSE | ||
%doc README.md SECURITY.md | ||
%{_sysconfdir}/containers/systemd/qm.container.d/qm_dropin_mount_bind_dvb.conf | ||
|
||
%changelog | ||
* Fri Jul 21 2023 RH Container Bot <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
%global debug_package %{nil} | ||
|
||
Name: qm_mount_bind_input | ||
Version: 0 | ||
Release: 1%{?dist} | ||
Summary: Drop-in configuration for QM containers to mount bind input devices | ||
License: GPL-2.0-only | ||
URL: https://github.com/containers/qm | ||
Source0: %{url}/archive/v%{version}.tar.gz | ||
Source0: %{url}/archive/qm-input-%{version}.tar.gz | ||
BuildArch: noarch | ||
|
||
Requires: qm = %{version}-%{release} | ||
|
@@ -13,17 +15,20 @@ Requires: qm = %{version}-%{release} | |
This sub-package installs drop-in configurations for QM containers to mount bind input devices. | ||
|
||
%prep | ||
%autosetup -Sgit -n qm-%{version} | ||
%autosetup -Sgit -n qm-input-%{version} | ||
|
||
%install | ||
install -d %{buildroot}%{_sysconfdir}/qm/containers/containers.conf.d | ||
install -m 644 etc/qm/containers/containers.conf.d/qm_dropin_mount_bind_input.conf \ | ||
%{buildroot}%{_sysconfdir}/qm/containers/containers.conf.d/ | ||
# Create the directory for drop-in configurations | ||
install -d %{buildroot}%{_sysconfdir}/containers/systemd/qm.container.d | ||
|
||
# Install the input drop-in configuration file | ||
install -m 644 %{_builddir}/qm-input-%{version}/etc/containers/systemd/qm.container.d/qm_dropin_mount_bind_input.conf \ | ||
%{buildroot}%{_sysconfdir}/containers/systemd/qm.container.d/qm_dropin_mount_bind_input.conf | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_sysconfdir}/qm/containers/containers.conf.d/qm_dropin_mount_bind_input.conf | ||
%{_sysconfdir}/containers/systemd/qm.container.d/qm_dropin_mount_bind_input.conf | ||
|
||
%changelog | ||
* Fri Jul 21 2023 RH Container Bot <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
%global debug_package %{nil} | ||
|
||
Name: qm-mount-bind-radio | ||
Version: 0 | ||
Release: 1%{?dist} | ||
Summary: Drop-in configuration for QM containers to mount bind /dev/radio | ||
License: GPL-2.0-only | ||
URL: https://github.com/containers/qm | ||
Source0: %{url}/archive/v%{version}.tar.gz | ||
Source0: %{url}/archive/qm-radio-%{version}.tar.gz | ||
|
||
BuildArch: noarch | ||
Requires: qm = %{version}-%{release} | ||
|
@@ -13,15 +15,19 @@ Requires: qm = %{version}-%{release} | |
This subpackage installs a drop-in configuration for QM containers to mount bind `/dev/radio`. | ||
|
||
%prep | ||
%autosetup -Sgit -n qm-%{version} | ||
%autosetup -Sgit -n qm-radio-%{version} | ||
|
||
%install | ||
install -d %{buildroot}%{_sysconfdir}/qm/containers/containers.conf.d | ||
install -m 644 etc/qm/containers/containers.conf.d/qm_dropin_mount_bind_radio.conf \ | ||
%{buildroot}%{_sysconfdir}/qm/containers/containers.conf.d/ | ||
# Create the directory for drop-in configurations | ||
install -d %{buildroot}%{_sysconfdir}/containers/systemd/qm.container.d | ||
# Install the KVM drop-in configuration file | ||
install -m 644 %{_builddir}/qm-radio-%{version}/etc/containers/systemd/qm.container.d/qm_dropin_mount_bind_radio.conf \ | ||
%{buildroot}%{_sysconfdir}/containers/systemd/qm.container.d/qm_dropin_mount_bind_radio.conf | ||
|
||
%files | ||
%{_sysconfdir}/qm/containers/containers.conf.d/qm_dropin_mount_bind_radio.conf | ||
%license LICENSE | ||
%doc README.md SECURITY.md | ||
%{_sysconfdir}/containers/systemd/qm.container.d/qm_dropin_mount_bind_radio.conf | ||
|
||
%changelog | ||
* Fri Jul 21 2023 RH Container Bot <[email protected]> | ||
|
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 |
---|---|---|
|
@@ -2,47 +2,42 @@ | |
|
||
# rootfs macros for QM ROS2 Rolling | ||
%global rootfs_qm %{_prefix}/lib/qm/rootfs/ | ||
%global ros2_container %{rootfs_qm}/%{_sysconfdir}/containers/systemd/ | ||
|
||
Name: qm-ros2-rolling | ||
Version: 0.6.9 | ||
Version: 0 | ||
Release: 1%{?dist} | ||
Summary: Subpackage container for quadlet container to ROS2 Rolling environment | ||
License: GPL-2.0-only | ||
URL: https://github.com/containers/qm | ||
Source0: %{url}/archive/v%{version}.tar.gz | ||
BuildArch: noarch | ||
Source0: %{url}/archive/qm-ros2-%{version}.tar.gz | ||
|
||
BuildRequires: make | ||
BuildRequires: git-core | ||
BuildRequires: pkgconfig(systemd) | ||
BuildArch: noarch | ||
Requires: qm = %{version}-%{release} | ||
Requires: podman | ||
|
||
%description | ||
This subpackage provides a containerized ROS2 Rolling environment within the | ||
Quality Management (QM) system. It enables ROS2 applications to run in isolated | ||
containers managed by Podman and systemd within the QM environment. | ||
|
||
%prep | ||
%autosetup -Sgit -n qm-%{version} | ||
%autosetup -Sgit -n qm-ros2-%{version} | ||
|
||
%build | ||
# No special build requirements for ROS2 Rolling container | ||
%{__make} all | ||
|
||
%install | ||
# Create the necessary directory structure | ||
mkdir -p %{buildroot}%{ros2_container} | ||
install -d %{buildroot}%{rootfs_qm}%{_sysconfdir}/containers/systemd | ||
|
||
# Install the ROS2 Rolling container file | ||
install -m 644 %{_builddir}/qm-ros2-%{version}/subsystems/ros2/etc/containers/systemd/ros2-rolling.container %{buildroot}%{rootfs_qm}%{_sysconfdir}/containers/systemd/ros2-rolling.container | ||
|
||
install -m 644 subsystems/ros2/etc/containers/systemd/ros2-rolling.container %{buildroot}%{ros2_container} | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{ros2_container}ros2-rolling.container | ||
%doc README.md SECURITY.md | ||
%{rootfs_qm}%{_sysconfdir}/containers/systemd/ros2-rolling.container | ||
|
||
|
||
%changelog | ||
* Fri Jul 21 2023 RH Container Bot <[email protected]> - 0.6.8-1 | ||
|
Oops, something went wrong.