From 3ba0f095be759493a04a571a28c5ba53112cd5d3 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 1 Aug 2022 16:36:36 -0400 Subject: [PATCH] contrib/rhcs.md: document using odcs Explain how to use ODCS to generate a one-off unsigned compose for testing. Remove the reference to the rhceph-6 tools repo in prod pulp, because release engineering has not created that just yet. Signed-off-by: Ken Dreyer --- contrib/rhcs.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/contrib/rhcs.md b/contrib/rhcs.md index ada92bdb3..1e6a7f039 100644 --- a/contrib/rhcs.md +++ b/contrib/rhcs.md @@ -34,7 +34,15 @@ We use [OSBS](https://osbs.readthedocs.io/en/osbs_ocp3/) to build the images for To test a local build outside OSBS, you must mimic what OSBS does and insert some Yum repo definitions. -After the `RUN rm -f /etc/yum.repos.d/ubi.repo` step, add the following by-hand steps to your `staging/main-ubi9-latest-x86_64/composed/Dockerfile`: +First, create an ODCS compose from the candidate tag: + +``` +odcs --redhat create-tag --sigkey none ceph-6.0-rhel-9-candidate +``` + +Save the resulting id and baseurl for the next step. + +Next, after the `RUN rm -f /etc/yum.repos.d/ubi.repo` step, add the following by-hand steps to your `staging/main-ubi9-latest-x86_64/composed/Dockerfile`: ```Dockerfile RUN printf '[rhel-9-baseos]\n\ @@ -51,12 +59,13 @@ enabled = 1\n\ gpgcheck = 1\n\ gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release' >> /etc/yum.repos.d/rhel-9.repo -RUN printf '[rhceph-6-tools-for-rhel-9-rpms]\n\ -name = rhceph-6-tools-for-rhel-9-rpms\n\ -baseurl = http://rhsm-pulp.corp.redhat.com/content/dist/layered/rhel9/$basearch/rhceph-tools/6/os/\n\ +# Note: use your ODCS compose ID here (replacing "12345678"): + +RUN printf '[odcs]\n\ +name = odcs\n\ +baseurl = http://download.eng.bos.redhat.com/odcs/prod/odcs-12345678/compose/Temporary/x86_64/os/\n\ enabled = 1\n\ -gpgcheck = 1\n\ -gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release\n\ +gpgcheck = 0\n\ ' >> /etc/yum.repos.d/rhceph-6-rhel-9.repo ```