[Starlingx-discuss] Starlingx iso [BUILD]

Scott Little scott.little at windriver.com
Tue Nov 29 16:59:14 UTC 2022


centos-mirror-tools/download_mirror.sh should be run inside the 
container for 'normal' usage.

I recommend you use 'download_mirror.sh -U' due to your geographic location.

It looks like one of the upstream 3rd party repos has gone missing, 
which is messing up the yum cache initialization.  download_mirror.sh is 
failing in a particularly ungraceful way.

I think the following stx-tools change might get us though the 
download_mirror.sh

diff --git 
a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo 
b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo
index 2fa55a6..6978ff0 100644
--- a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo
+++ b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo
@@ -4,4 +4,12 @@ type=rpm-md
  baseurl=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x86_64:/stable-1.11/CentOS_7/
  gpgcheck=1
  gpgkey=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x86_64:/stable-1.11/CentOS_7/repodata/repomd.xml.key
+enabled=0
+
+[CENGN_katacontainers_releases_x86_64_stable-1.11]
+name=Branch project for Kata Containers branch stable-1.11 (CentOS_7)
+type=rpm-md
+baseurl=http://mirror.starlingx.cengn.ca/mirror/centos/download.opensuse.org/repositories/home:/katacontainers:/releases:/x86_64:/stable-1.11/CentOS_7/
+gpgcheck=0
+ enabled=1






On 2022-11-27 19:10, Outback Dingo wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> Ok here is where we find the problems
>
> tb.sh create .... ok
> tb,sh exec ..... ok
>
> so reading this i think slim clarification is needed, do we run
>
> centos-mirror-tools/download_mirror.sh outside the container?
>
> Package mirror creation
> Once the StarlingX docker image has been built, you must create a
> mirror before creating the ISO image. Basically, a mirror is a
> directory that contains a series of packages. The packages are
> organized to be consumed by the ISO creation scripts.
>
> The HOST_MIRROR_DIR variable provides the path to the mirror. The
> buildrc file sets the value of this variable unless the localrc file
> has modified it.
>
> The mirror creation involves a set of scripts and configuration files
> required to download a group of RPMs, SRPMs, source code packages and
> so forth. These tools live inside centos-mirror-tools directory.
>
> All items included in this directory must be visble inside the
> container environment. Then the container shall be run from the same
> directory where these tools are stored. Basically, we run a container
> with the previously created StarlingX docker image, using the
> following configuration:
>
> As /localdisk is defined as the workdir of the container, the same
> folder name should be used to define the volume. The container will
> start to run and populate logs and output folders in this directory.
>
> _______________________________________________
> Starlingx-discuss mailing list
> Starlingx-discuss at lists.starlingx.io





More information about the Starlingx-discuss mailing list