Skip to content

Commit

Permalink
test: import tar for centos
Browse files Browse the repository at this point in the history
Generated using `./test/data/images-ref/gen-image-def` for test reference. In
the future, these will be generated on-demand for testing as long as we need
them.

Also adds implementation omnifests.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
  • Loading branch information
supakeen committed Sep 23, 2024
1 parent aedf6eb commit 0a751f2
Show file tree
Hide file tree
Showing 13 changed files with 1,932 additions and 0 deletions.
77 changes: 77 additions & 0 deletions example/centos/centos-9-aarch64-tar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
otk.version: "1"

otk.define:
kernel:
cmdline: console=tty0 console=ttyS0,115200n8 no_timer_check net.ifnames=0
packages:
build:
otk.external.osbuild-gen-depsolve-dnf4:
architecture: aarch64
module_platform_id: c9s
releasever: "9"
repositories:
otk.include: "common/repositories.yaml"
packages:
include:
- coreutils
- glibc
- platform-python
- policycoreutils
- python3
- rpm
- selinux-policy-targeted
- systemd
- tar
- xz
exclude: []
os:
otk.external.osbuild-gen-depsolve-dnf4:
architecture: aarch64
module_platform_id: c9s
releasever: "9"
repositories:
otk.include: "common/repositories.yaml"
packages:
include:
- selinux-policy-targeted
- policycoreutils
- selinux-policy-targeted
exclude:
- rng-tools

otk.target.osbuild:
pipelines:
- otk.include: "pipeline/build/tar.yaml"
- name: os
build: name:build
stages:
- otk.external.osbuild-make-depsolve-dnf4-rpm-stage:
packageset: ${packages.os}
gpgkeys:
otk.include: "common/gpgkeys.yaml"
- type: org.osbuild.fix-bls
options: {}
- type: org.osbuild.locale
options:
language: C.UTF-8
- type: org.osbuild.timezone
options:
zone: America/New_York
- type: org.osbuild.sysconfig
options:
kernel:
update_default: true
default_kernel: kernel
network:
networking: true
no_zero_conf: true
- type: org.osbuild.selinux
options:
file_contexts: etc/selinux/targeted/contexts/files/file_contexts
- otk.include: pipeline/tar.yaml

sources:
otk.external.osbuild-make-depsolve-dnf4-curl-source:
packagesets:
- ${packages.build}
- ${packages.os}
77 changes: 77 additions & 0 deletions example/centos/centos-9-ppc64le-tar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
otk.version: "1"

otk.define:
kernel:
cmdline: console=tty0 console=ttyS0,115200n8 no_timer_check net.ifnames=0
packages:
build:
otk.external.osbuild-gen-depsolve-dnf4:
architecture: s390x
module_platform_id: c9s
releasever: "9"
repositories:
otk.include: "common/repositories.yaml"
packages:
include:
- coreutils
- glibc
- platform-python
- policycoreutils
- python3
- rpm
- selinux-policy-targeted
- systemd
- tar
- xz
exclude: []
os:
otk.external.osbuild-gen-depsolve-dnf4:
architecture: s390x
module_platform_id: c9s
releasever: "9"
repositories:
otk.include: "common/repositories.yaml"
packages:
include:
- selinux-policy-targeted
- policycoreutils
- selinux-policy-targeted
exclude:
- rng-tools

otk.target.osbuild:
pipelines:
- otk.include: "pipeline/build/tar.yaml"
- name: os
build: name:build
stages:
- otk.external.osbuild-make-depsolve-dnf4-rpm-stage:
packageset: ${packages.os}
gpgkeys:
otk.include: "common/gpgkeys.yaml"
- type: org.osbuild.fix-bls
options: {}
- type: org.osbuild.locale
options:
language: C.UTF-8
- type: org.osbuild.timezone
options:
zone: America/New_York
- type: org.osbuild.sysconfig
options:
kernel:
update_default: true
default_kernel: kernel
network:
networking: true
no_zero_conf: true
- type: org.osbuild.selinux
options:
file_contexts: etc/selinux/targeted/contexts/files/file_contexts
- otk.include: pipeline/tar.yaml

sources:
otk.external.osbuild-make-depsolve-dnf4-curl-source:
packagesets:
- ${packages.build}
- ${packages.os}
77 changes: 77 additions & 0 deletions example/centos/centos-9-s390x-tar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
otk.version: "1"

otk.define:
kernel:
cmdline: console=tty0 console=ttyS0,115200n8 no_timer_check net.ifnames=0
packages:
build:
otk.external.osbuild-gen-depsolve-dnf4:
architecture: s390x
module_platform_id: c9s
releasever: "9"
repositories:
otk.include: "common/repositories.yaml"
packages:
include:
- coreutils
- glibc
- platform-python
- policycoreutils
- python3
- rpm
- selinux-policy-targeted
- systemd
- tar
- xz
exclude: []
os:
otk.external.osbuild-gen-depsolve-dnf4:
architecture: s390x
module_platform_id: c9s
releasever: "9"
repositories:
otk.include: "common/repositories.yaml"
packages:
include:
- selinux-policy-targeted
- policycoreutils
- selinux-policy-targeted
exclude:
- rng-tools

otk.target.osbuild:
pipelines:
- otk.include: "pipeline/build/tar.yaml"
- name: os
build: name:build
stages:
- otk.external.osbuild-make-depsolve-dnf4-rpm-stage:
packageset: ${packages.os}
gpgkeys:
otk.include: "common/gpgkeys.yaml"
- type: org.osbuild.fix-bls
options: {}
- type: org.osbuild.locale
options:
language: C.UTF-8
- type: org.osbuild.timezone
options:
zone: America/New_York
- type: org.osbuild.sysconfig
options:
kernel:
update_default: true
default_kernel: kernel
network:
networking: true
no_zero_conf: true
- type: org.osbuild.selinux
options:
file_contexts: etc/selinux/targeted/contexts/files/file_contexts
- otk.include: pipeline/tar.yaml

sources:
otk.external.osbuild-make-depsolve-dnf4-curl-source:
packagesets:
- ${packages.build}
- ${packages.os}
77 changes: 77 additions & 0 deletions example/centos/centos-9-x86_64-tar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
otk.version: "1"

otk.define:
kernel:
cmdline: console=tty0 console=ttyS0,115200n8 no_timer_check net.ifnames=0
packages:
build:
otk.external.osbuild-gen-depsolve-dnf4:
architecture: x86_64
module_platform_id: c9s
releasever: "9"
repositories:
otk.include: "common/repositories.yaml"
packages:
include:
- coreutils
- glibc
- platform-python
- policycoreutils
- python3
- rpm
- selinux-policy-targeted
- systemd
- tar
- xz
exclude: []
os:
otk.external.osbuild-gen-depsolve-dnf4:
architecture: x86_64
module_platform_id: c9s
releasever: "9"
repositories:
otk.include: "common/repositories.yaml"
packages:
include:
- selinux-policy-targeted
- policycoreutils
- selinux-policy-targeted
exclude:
- rng-tools

otk.target.osbuild:
pipelines:
- otk.include: "pipeline/build/tar.yaml"
- name: os
build: name:build
stages:
- otk.external.osbuild-make-depsolve-dnf4-rpm-stage:
packageset: ${packages.os}
gpgkeys:
otk.include: "common/gpgkeys.yaml"
- type: org.osbuild.fix-bls
options: {}
- type: org.osbuild.locale
options:
language: C.UTF-8
- type: org.osbuild.timezone
options:
zone: America/New_York
- type: org.osbuild.sysconfig
options:
kernel:
update_default: true
default_kernel: kernel
network:
networking: true
no_zero_conf: true
- type: org.osbuild.selinux
options:
file_contexts: etc/selinux/targeted/contexts/files/file_contexts
- otk.include: pipeline/tar.yaml

sources:
otk.external.osbuild-make-depsolve-dnf4-curl-source:
packagesets:
- ${packages.build}
- ${packages.os}
12 changes: 12 additions & 0 deletions example/centos/pipeline/tar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: archive
build: "name:build"
stages:
- type: org.osbuild.tar
options:
filename: root.tar.xz
inputs:
tree:
type: org.osbuild.tree
origin: org.osbuild.pipeline
references:
- "name:os"
Loading

0 comments on commit 0a751f2

Please sign in to comment.