Skip to content

Commit 2192888

Browse files
Merge pull request #271 from brunoapimentel/fix-prefetch-partials
Fix includes that have three colons in the prefetch docs
2 parents df175e8 + 05523cd commit 2192888

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/building/pages/prefetching-dependencies.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ To prefetch dependencies for a component build, complete the following steps:
259259

260260
. Have a Containerfile, for example:
261261
+
262-
include:::partial${context}-example-prefetch-rpm-containerfile.adoc[]
262+
include::partial${context}-example-prefetch-rpm-containerfile.adoc[]
263263

264264
. Create a `rpms.in.yaml` file in your git repository, with the following contents:
265265

266266
+
267-
include:::partial${context}-example-prefetch-rpm-rpms_in_yaml.adoc[]
267+
include::partial${context}-example-prefetch-rpm-rpms_in_yaml.adoc[]
268268
<1> The `*packages*` list is the list of packages you want to install in your Container. You don't have to declare transitive dependencies here. The rpm-lockfile-prototype tool will resolve them for you.
269269
<2> This should be a reference to a repo file, like those found in `/etc/yum.repos.d/`. This tells the tooling where to find your rpm and its dependencies.
270270
<3> The `arches` array allows you to specify which architectures the dependencies should be downloaded for. If you're building a multi-arch container this array is mandatory, otherwise the build task will fail.
@@ -275,20 +275,20 @@ https://github.com/konflux-ci/rpm-lockfile-prototype?tab=readme-ov-file#whats-th
275275
. Copy any necessary yum/dnf repo files into your git repository. For example:
276276

277277
+
278-
include:::partial${context}-example-prefetch-rpm-copy-repo.adoc[]
278+
include::partial${context}-example-prefetch-rpm-copy-repo.adoc[]
279279

280280
+
281281
NOTE: For every repository defined in your set of repo files, make sure to add the corresponding sources repo (or make sure to enable them, if they’re already present). Otherwise, the lockfile generator will not include any SRPMs in your lockfile, cachi2 won’t download any SRPMs and the source container for your build will be incomplete.
282282

283283
. Run the following command to resolve your `rpms.in.yaml` file and produce a `rpms.lock.yaml` file.
284284

285285
+
286-
include:::partial${context}-example-prefetch-rpm-execute.adoc[]
286+
include::partial${context}-example-prefetch-rpm-execute.adoc[]
287287
<1> The produced `rpms.lock.yaml` file will include only your requested dependency plus its transitive dependencies, minus any rpms that are already installed in the provided base image.
288288
+
289289
Example of generated lockfile:
290290
+
291-
include:::partial${context}-example-prefetch-rpm-lockfile.adoc[]
291+
include::partial${context}-example-prefetch-rpm-lockfile.adoc[]
292292
+
293293
NOTE: The list of `arches.packages` is omitted for brevity.
294294

0 commit comments

Comments
 (0)