mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
[redhat-3.10] build: rpm lock for konflux builds (PROJQUAY-8930) (#3995)
rpm lock for konflux builds Co-authored-by: Marcus Kok <mkok@redhat.com>
This commit is contained in:
committed by
GitHub
parent
f57c4ef286
commit
550cf42e69
15
hack/generate-rpms.sh
Executable file
15
hack/generate-rpms.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOCKER="docker"
|
||||
CONTAINER_DIR="/work"
|
||||
BASE_IMAGE="registry.access.redhat.com/ubi8/ubi-minimal:latest"
|
||||
|
||||
$DOCKER run -it $BASE_IMAGE cat /etc/yum.repos.d/ubi.repo > ubi.repo
|
||||
|
||||
sed -i '' 's/ubi-9-codeready-builder/codeready-builder-for-ubi-9-$basearch/' ubi.repo
|
||||
sed -i '' 's/\[ubi-9/[ubi-9-for-$basearch/' ubi.repo
|
||||
|
||||
curl https://raw.githubusercontent.com/konflux-ci/rpm-lockfile-prototype/refs/heads/main/Containerfile \
|
||||
| $DOCKER build -t localhost/rpm-lockfile-prototype -
|
||||
|
||||
$DOCKER run --rm -v ${PWD}:${CONTAINER_DIR} localhost/rpm-lockfile-prototype:latest --outfile=${CONTAINER_DIR}/rpms.lock.yaml --bare ${CONTAINER_DIR}/rpms.in.yaml
|
||||
35
rpms.in.yaml
Normal file
35
rpms.in.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
packages: [
|
||||
dnsmasq,
|
||||
memcached,
|
||||
nginx,
|
||||
libpq-devel,
|
||||
openldap,
|
||||
openssl,
|
||||
python39,
|
||||
python3-gpg,
|
||||
skopeo,
|
||||
findutils,
|
||||
tzdata,
|
||||
gcc-c++,
|
||||
git,
|
||||
openldap-devel,
|
||||
python39-devel,
|
||||
libffi-devel,
|
||||
openssl-devel,
|
||||
diffutils,
|
||||
file,
|
||||
make,
|
||||
libjpeg-turbo,
|
||||
libjpeg-turbo-devel,
|
||||
wget,
|
||||
rust-toolset,
|
||||
libxml2-devel,
|
||||
libxslt-devel,
|
||||
freetype-devel,
|
||||
glibc,
|
||||
glibc-minimal-langpack,
|
||||
glibc-devel,
|
||||
]
|
||||
contentOrigin:
|
||||
repofiles: ["./ubi.repo"]
|
||||
arches: [x86_64]
|
||||
2063
rpms.lock.yaml
Normal file
2063
rpms.lock.yaml
Normal file
File diff suppressed because it is too large
Load Diff
70
ubi.repo
Normal file
70
ubi.repo
Normal file
@@ -0,0 +1,70 @@
|
||||
[ubi-8-baseos-rpms]
|
||||
name = Red Hat Universal Base Image 8 (RPMs) - BaseOS
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/os
|
||||
enabled = 1
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
[ubi-8-baseos-debug-rpms]
|
||||
name = Red Hat Universal Base Image 8 (Debug RPMs) - BaseOS
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/debug
|
||||
enabled = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
[ubi-8-baseos-source]
|
||||
name = Red Hat Universal Base Image 8 (Source RPMs) - BaseOS
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/source/SRPMS
|
||||
enabled = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
[ubi-8-appstream-rpms]
|
||||
name = Red Hat Universal Base Image 8 (RPMs) - AppStream
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/os
|
||||
enabled = 1
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
[ubi-8-appstream-debug-rpms]
|
||||
name = Red Hat Universal Base Image 8 (Debug RPMs) - AppStream
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/debug
|
||||
enabled = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
[ubi-8-appstream-source]
|
||||
name = Red Hat Universal Base Image 8 (Source RPMs) - AppStream
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/source/SRPMS
|
||||
enabled = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
[ubi-8-codeready-builder-rpms]
|
||||
name = Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/os
|
||||
enabled = 1
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
[ubi-8-codeready-builder]
|
||||
name = Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/os
|
||||
enabled = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
|
||||
[ubi-8-codeready-builder-debug-rpms]
|
||||
name = Red Hat Universal Base Image 8 (Debug RPMs) - CodeReady Builder
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/debug
|
||||
enabled = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
|
||||
[ubi-8-codeready-builder-source]
|
||||
name = Red Hat Universal Base Image 8 (Source RPMs) - CodeReady Builder
|
||||
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/source/SRPMS
|
||||
enabled = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
gpgcheck = 1
|
||||
Reference in New Issue
Block a user