diff --git a/.obs/dockerfile/elemental-channel-image/sl-micro-61-baremetal.packages.tar b/.obs/dockerfile/elemental-channel-image/sl-micro-61-baremetal.packages.tar new file mode 120000 index 0000000..5482ad0 --- /dev/null +++ b/.obs/dockerfile/elemental-channel-image/sl-micro-61-baremetal.packages.tar @@ -0,0 +1 @@ +../../../channels/sl-micro-61-baremetal.packages.tar \ No newline at end of file diff --git a/.obs/dockerfile/elemental-channel-image/sl-micro-61-base.packages.tar b/.obs/dockerfile/elemental-channel-image/sl-micro-61-base.packages.tar new file mode 120000 index 0000000..2ed8cdd --- /dev/null +++ b/.obs/dockerfile/elemental-channel-image/sl-micro-61-base.packages.tar @@ -0,0 +1 @@ +../../../channels/sl-micro-61-base.packages.tar \ No newline at end of file diff --git a/.obs/dockerfile/elemental-channel-image/sl-micro-61-kvm.packages.tar b/.obs/dockerfile/elemental-channel-image/sl-micro-61-kvm.packages.tar new file mode 120000 index 0000000..bee3d5b --- /dev/null +++ b/.obs/dockerfile/elemental-channel-image/sl-micro-61-kvm.packages.tar @@ -0,0 +1 @@ +../../../channels/sl-micro-61-kvm.packages.tar \ No newline at end of file diff --git a/.obs/dockerfile/elemental-channel-image/sl-micro-61-rt.packages.tar b/.obs/dockerfile/elemental-channel-image/sl-micro-61-rt.packages.tar new file mode 120000 index 0000000..7dee44d --- /dev/null +++ b/.obs/dockerfile/elemental-channel-image/sl-micro-61-rt.packages.tar @@ -0,0 +1 @@ +../../../channels/sl-micro-61-rt.packages.tar \ No newline at end of file diff --git a/channels/sl-micro-61-baremetal.json b/channels/sl-micro-61-baremetal.json index 87bac8c..13ebba0 100644 --- a/channels/sl-micro-61-baremetal.json +++ b/channels/sl-micro-61-baremetal.json @@ -1,4 +1,19 @@ [ + { + "metadata": { + "name": "baremetal-v2.2.0-3.12-os" + }, + "spec": { + "version": "v2.2.0-3.12", + "type": "container", + "metadata": { + "upgradeImage": "registry.suse.com/suse/sl-micro/6.1/baremetal-os-container:2.2.0-3.12", + "displayName": "SL Micro Baremetal 6.1 OS", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1732723935 + } + } + }, { "metadata": { "name": "baremetal-v2.2.0-3.9-os" @@ -14,6 +29,21 @@ } } }, + { + "metadata": { + "name": "baremetal-v2.2.0-3.8-os" + }, + "spec": { + "version": "v2.2.0-3.8", + "type": "container", + "metadata": { + "upgradeImage": "registry.suse.com/suse/sl-micro/6.1/baremetal-os-container:2.2.0-3.8", + "displayName": "SL Micro Baremetal 6.1 OS", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1731339707 + } + } + }, { "metadata": { "name": "baremetal-v2.2.0-3.7-iso" @@ -28,5 +58,35 @@ "created": 1730920423 } } + }, + { + "metadata": { + "name": "baremetal-v2.2.0-3.5-iso" + }, + "spec": { + "version": "v2.2.0-3.5", + "type": "iso", + "metadata": { + "uri": "registry.suse.com/suse/sl-micro/6.1/baremetal-iso-image:2.2.0-3.5", + "displayName": "SL Micro Baremetal 6.1 ISO", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1730283106 + } + } + }, + { + "metadata": { + "name": "baremetal-v2.2.0-3.4-iso" + }, + "spec": { + "version": "v2.2.0-3.4", + "type": "iso", + "metadata": { + "uri": "registry.suse.com/suse/sl-micro/6.1/baremetal-iso-image:2.2.0-3.4", + "displayName": "SL Micro Baremetal 6.1 ISO", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1730116249 + } + } } ] diff --git a/channels/sl-micro-61-baremetal.packages.tar b/channels/sl-micro-61-baremetal.packages.tar new file mode 100644 index 0000000..1154dce Binary files /dev/null and b/channels/sl-micro-61-baremetal.packages.tar differ diff --git a/channels/sl-micro-61-base.json b/channels/sl-micro-61-base.json index 6ca8659..25dd76a 100644 --- a/channels/sl-micro-61-base.json +++ b/channels/sl-micro-61-base.json @@ -1,4 +1,19 @@ [ + { + "metadata": { + "name": "base-v2.2.0-3.12-os" + }, + "spec": { + "version": "v2.2.0-3.12", + "type": "container", + "metadata": { + "upgradeImage": "registry.suse.com/suse/sl-micro/6.1/base-os-container:2.2.0-3.12", + "displayName": "SL Micro Base 6.1 OS", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1732723652 + } + } + }, { "metadata": { "name": "base-v2.2.0-3.9-os" @@ -14,6 +29,21 @@ } } }, + { + "metadata": { + "name": "base-v2.2.0-3.8-os" + }, + "spec": { + "version": "v2.2.0-3.8", + "type": "container", + "metadata": { + "upgradeImage": "registry.suse.com/suse/sl-micro/6.1/base-os-container:2.2.0-3.8", + "displayName": "SL Micro Base 6.1 OS", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1731339461 + } + } + }, { "metadata": { "name": "base-v2.2.0-3.7-iso" @@ -28,5 +58,35 @@ "created": 1730920380 } } + }, + { + "metadata": { + "name": "base-v2.2.0-3.5-iso" + }, + "spec": { + "version": "v2.2.0-3.5", + "type": "iso", + "metadata": { + "uri": "registry.suse.com/suse/sl-micro/6.1/base-iso-image:2.2.0-3.5", + "displayName": "SL Micro Base 6.1 ISO", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1730283062 + } + } + }, + { + "metadata": { + "name": "base-v2.2.0-3.4-iso" + }, + "spec": { + "version": "v2.2.0-3.4", + "type": "iso", + "metadata": { + "uri": "registry.suse.com/suse/sl-micro/6.1/base-iso-image:2.2.0-3.4", + "displayName": "SL Micro Base 6.1 ISO", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1730116208 + } + } } ] diff --git a/channels/sl-micro-61-base.packages.tar b/channels/sl-micro-61-base.packages.tar new file mode 100644 index 0000000..8940311 Binary files /dev/null and b/channels/sl-micro-61-base.packages.tar differ diff --git a/channels/sl-micro-61-kvm.json b/channels/sl-micro-61-kvm.json index adeb5e0..59a9dc1 100644 --- a/channels/sl-micro-61-kvm.json +++ b/channels/sl-micro-61-kvm.json @@ -1,4 +1,19 @@ [ + { + "metadata": { + "name": "kvm-v2.2.0-3.15-os" + }, + "spec": { + "version": "v2.2.0-3.15", + "type": "container", + "metadata": { + "upgradeImage": "registry.suse.com/suse/sl-micro/6.1/kvm-os-container:2.2.0-3.15", + "displayName": "SL Micro KVM 6.1 OS", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1732723835 + } + } + }, { "metadata": { "name": "kvm-v2.2.0-3.12-os" @@ -14,6 +29,21 @@ } } }, + { + "metadata": { + "name": "kvm-v2.2.0-3.11-os" + }, + "spec": { + "version": "v2.2.0-3.11", + "type": "container", + "metadata": { + "upgradeImage": "registry.suse.com/suse/sl-micro/6.1/kvm-os-container:2.2.0-3.11", + "displayName": "SL Micro KVM 6.1 OS", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1731339615 + } + } + }, { "metadata": { "name": "kvm-v2.2.0-3.9-iso" @@ -28,5 +58,35 @@ "created": 1730920378 } } + }, + { + "metadata": { + "name": "kvm-v2.2.0-3.7-iso" + }, + "spec": { + "version": "v2.2.0-3.7", + "type": "iso", + "metadata": { + "uri": "registry.suse.com/suse/sl-micro/6.1/kvm-iso-image:2.2.0-3.7", + "displayName": "SL Micro KVM 6.1 ISO", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1730283049 + } + } + }, + { + "metadata": { + "name": "kvm-v2.2.0-3.6-iso" + }, + "spec": { + "version": "v2.2.0-3.6", + "type": "iso", + "metadata": { + "uri": "registry.suse.com/suse/sl-micro/6.1/kvm-iso-image:2.2.0-3.6", + "displayName": "SL Micro KVM 6.1 ISO", + "platforms": ["linux/x86_64","linux/aarch64"], + "created": 1730116199 + } + } } ] diff --git a/channels/sl-micro-61-kvm.packages.tar b/channels/sl-micro-61-kvm.packages.tar new file mode 100644 index 0000000..d1a4c34 Binary files /dev/null and b/channels/sl-micro-61-kvm.packages.tar differ diff --git a/channels/sl-micro-61-rt.json b/channels/sl-micro-61-rt.json index 1e26cac..d6ec7a4 100644 --- a/channels/sl-micro-61-rt.json +++ b/channels/sl-micro-61-rt.json @@ -1,4 +1,19 @@ [ + { + "metadata": { + "name": "rt-v2.2.0-3.12-os" + }, + "spec": { + "version": "v2.2.0-3.12", + "type": "container", + "metadata": { + "upgradeImage": "registry.suse.com/suse/sl-micro/6.1/rt-os-container:2.2.0-3.12", + "displayName": "SL Micro RT 6.1 OS", + "platforms": ["linux/x86_64"], + "created": 1732724266 + } + } + }, { "metadata": { "name": "rt-v2.2.0-3.9-os" @@ -14,6 +29,21 @@ } } }, + { + "metadata": { + "name": "rt-v2.2.0-3.8-os" + }, + "spec": { + "version": "v2.2.0-3.8", + "type": "container", + "metadata": { + "upgradeImage": "registry.suse.com/suse/sl-micro/6.1/rt-os-container:2.2.0-3.8", + "displayName": "SL Micro RT 6.1 OS", + "platforms": ["linux/x86_64"], + "created": 1731339988 + } + } + }, { "metadata": { "name": "rt-v2.2.0-3.7-iso" @@ -28,5 +58,35 @@ "created": 1730920760 } } + }, + { + "metadata": { + "name": "rt-v2.2.0-3.5-iso" + }, + "spec": { + "version": "v2.2.0-3.5", + "type": "iso", + "metadata": { + "uri": "registry.suse.com/suse/sl-micro/6.1/rt-iso-image:2.2.0-3.5", + "displayName": "SL Micro RT 6.1 ISO", + "platforms": ["linux/x86_64"], + "created": 1730283402 + } + } + }, + { + "metadata": { + "name": "rt-v2.2.0-3.4-iso" + }, + "spec": { + "version": "v2.2.0-3.4", + "type": "iso", + "metadata": { + "uri": "registry.suse.com/suse/sl-micro/6.1/rt-iso-image:2.2.0-3.4", + "displayName": "SL Micro RT 6.1 ISO", + "platforms": ["linux/x86_64"], + "created": 1730116564 + } + } } ] diff --git a/channels/sl-micro-61-rt.packages.tar b/channels/sl-micro-61-rt.packages.tar new file mode 100644 index 0000000..d1c65c1 Binary files /dev/null and b/channels/sl-micro-61-rt.packages.tar differ diff --git a/refresh_channels.sh b/refresh_channels.sh index cde88ce..8544fc6 100755 --- a/refresh_channels.sh +++ b/refresh_channels.sh @@ -166,6 +166,11 @@ function process_repo() { local intermediate_entry="{\"uri\":\"$image_uri\",\"created\":\"$image_creation_date\",\"version\":\"$version\",\"managedOSVersionName\":\"$managed_os_version_name\",\"displayName\":\"$display_name\",\"platforms\":$platforms}" echo "Intermediate: $intermediate_entry" local intermediate_list=("${intermediate_list[@]}" "$intermediate_entry") + if [[ "${repo_type}" == "os" ]]; then + podman pull "${image_uri}" + podman run --rm "${image_uri}" rpm -qa --qf "%{NAME}|%{EPOCH}|%{VERSION}|%{RELEASE}|%{ARCH}|%{DISTURL}|%{LICENSE}\n" | sort > "channels/${managed_os_version_name}.packages" + podman rmi "${image_uri}" + fi img_count=$((img_count + 1)) done @@ -212,6 +217,12 @@ while IFS=\= read watch; do # Validate the JSON file cat $file | jq empty + + # Create tarball for packages list of ech image in the channel + while IFS= read -r -d '' pkgs_file; do + tar rf "channels/${file_name}.packages.tar" "${pkgs_file}" + rm "${pkgs_file}" + done < <(find channels/ -mindepth 1 -maxdepth 1 -type f -name "*.packages" -print0) done <