From fbbe263414f40dbe7b8603d6d9028bf1fa2e72ab Mon Sep 17 00:00:00 2001 From: Pratik Mahalle Date: Sat, 20 Sep 2025 15:44:05 +0530 Subject: [PATCH 1/2] fix: add the initial step for the devfile registry guide Signed-off-by: Pratik Mahalle --- .../docs/no-version/building-a-custom-devfile-registry.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/docs/src/docs/no-version/building-a-custom-devfile-registry.md b/libs/docs/src/docs/no-version/building-a-custom-devfile-registry.md index c6c898cb..ce35c441 100644 --- a/libs/docs/src/docs/no-version/building-a-custom-devfile-registry.md +++ b/libs/docs/src/docs/no-version/building-a-custom-devfile-registry.md @@ -69,10 +69,12 @@ your cloud or cluster to form the devfile registry. ### Procedure -1. Run `./build_image.sh ` to build a +1. Navigate to the `build-tools/` directory that contains the registry build scripts (for example, `devfile/registry-support/build-tools`), where `build_image.sh` is located. + +2. Run `./build_image.sh ` to build a devfile registry repository. -2. In a multi-stage Docker build, add a Dockerfile to your devfile +3. In a multi-stage Docker build, add a Dockerfile to your devfile registry repository. Make sure the Dockerfile contains the following: @@ -95,7 +97,7 @@ your cloud or cluster to form the devfile registry. COPY --from=builder /build/stacks /stacks ``` -3. Run `docker build -t devfile-index` to build the devfile registry +4. Run `docker build -t devfile-index` to build the devfile registry into a container image. The build script builds the index generator, generates the `index.json` From 388944676765ee9d455e3f8c88ecfc1832b88485 Mon Sep 17 00:00:00 2001 From: Pratik Mahalle Date: Mon, 22 Sep 2025 19:57:44 +0530 Subject: [PATCH 2/2] docs: add the extra step in the procedure Signed-off-by: Pratik Mahalle --- .../no-version/building-a-custom-devfile-registry.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/docs/src/docs/no-version/building-a-custom-devfile-registry.md b/libs/docs/src/docs/no-version/building-a-custom-devfile-registry.md index ce35c441..5c87458e 100644 --- a/libs/docs/src/docs/no-version/building-a-custom-devfile-registry.md +++ b/libs/docs/src/docs/no-version/building-a-custom-devfile-registry.md @@ -69,12 +69,14 @@ your cloud or cluster to form the devfile registry. ### Procedure -1. Navigate to the `build-tools/` directory that contains the registry build scripts (for example, `devfile/registry-support/build-tools`), where `build_image.sh` is located. +1. Clone the [devfile/registry-support](https://github.com/devfile/registry-support) repository. -2. Run `./build_image.sh ` to build a +2. Navigate to the `build-tools/` directory within the cloned repository where `build_image.sh` is located. + +3. Run `./build_image.sh ` to build a devfile registry repository. -3. In a multi-stage Docker build, add a Dockerfile to your devfile +4. In a multi-stage Docker build, add a Dockerfile to your devfile registry repository. Make sure the Dockerfile contains the following: @@ -97,7 +99,7 @@ your cloud or cluster to form the devfile registry. COPY --from=builder /build/stacks /stacks ``` -4. Run `docker build -t devfile-index` to build the devfile registry +5. Run `docker build -t devfile-index` to build the devfile registry into a container image. The build script builds the index generator, generates the `index.json`