j7s-os/images/container.mpp.yml

126 lines
3.6 KiB
YAML

version: '2'
mpp-vars:
name: container
pipelines:
- mpp-import-pipelines:
path: include/build.ipp.yml
- name: rootfs
build: name:build
stages:
- type: org.osbuild.kernel-cmdline
options:
root_fs_uuid:
mpp-eval: rootfs_uuid
kernel_opts:
mpp-eval: ''' '' .join(kernel_opts)'
- type: org.osbuild.rpm
options:
gpgkeys:
- mpp-eval: centos_gpg_key
- mpp-eval: redhat_gpg_key
disable_dracut: true
inputs:
packages:
type: org.osbuild.files
origin: org.osbuild.source
mpp-depsolve:
architecture: $arch
ignore-weak-deps: true
module-platform-id: $distro_module_id
baseurl: $distro_baseurl/BaseOS/$arch/os/
repos:
mpp-join:
- mpp-eval: distro_repos
- mpp-eval: target_repos
- mpp-eval: extra_repos
- - id: copr-podman
baseurl: https://download.copr.fedorainfracloud.org/results/alexl/podman-snapshot/centos-stream-9-x86_64/
packages:
mpp-join:
- mpp-eval: base_rpms
- mpp-eval: image_rpms
- mpp-eval: extra_rpms
- - podman
- podman-quadlet
- curl
excludes:
- dracut-config-rescue
- type: org.osbuild.copy
inputs:
inlinefile:
type: org.osbuild.files
origin: org.osbuild.source
mpp-embed:
id: storage.conf
path: ../files/storage.conf
inlinefile2:
type: org.osbuild.files
origin: org.osbuild.source
mpp-embed:
id: podman-clean-transient.service
path: ../files/podman-clean-transient.service
options:
paths:
- from:
mpp-format-string: input://inlinefile/{embedded['storage.conf']}
to: tree:///etc/containers/storage.conf
- from:
mpp-format-string: input://inlinefile2/{embedded['podman-clean-transient.service']}
to: tree:///etc/systemd/system/podman-clean-transient.service
- type: org.osbuild.copy
inputs:
inlinefile:
type: org.osbuild.files
origin: org.osbuild.source
mpp-embed:
id: containers.conf
path: ../files/containers.conf
options:
paths:
- from:
mpp-format-string: input://inlinefile/{embedded['containers.conf']}
to: tree:///etc/containers/containers.conf
- type: org.osbuild.skopeo
inputs:
images:
type: org.osbuild.containers
origin: org.osbuild.source
mpp-resolve-images:
images:
- source: docker.io/library/ros
tag: noetic-ros-core
name: localhost/ros:noetic-ros-core
options:
destination:
type: containers-storage
storage-path: /usr/share/containers/storage
- type: org.osbuild.mkdir
options:
paths:
- path: /etc/containers/systemd
parents: true
- type: org.osbuild.copy
inputs:
inlinefile:
type: org.osbuild.files
origin: org.osbuild.source
mpp-embed:
id: ros-core.container
path: ../files/ros-core.container
options:
paths:
- from:
mpp-format-string: input://inlinefile/{embedded['ros-core.container']}
to: tree:///etc/containers/systemd/ros-core.container
- type: org.osbuild.locale
options:
language: en_US.UTF-8
- type: org.osbuild.systemd
options:
enabled_services:
- NetworkManager.service
- rngd.service
- podman-clean-transient
- mpp-import-pipelines:
path: include/image.ipp.yml