From 2e2eee3b0061dc93d67084b57413c0bdc244f6e7 Mon Sep 17 00:00:00 2001 From: Micah Abbott Date: Sat, 18 Nov 2023 15:30:20 -0500 Subject: [PATCH] faq: remove distro-specific examples We have examples on how to use "bootc compatible" images in other distro specific locations, so just link to those. Signed-off-by: Micah Abbott --- docs/faq.md | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 4d33a39c..0c619f6a 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -6,34 +6,9 @@ nav_order: 4 ## How do users include their own packages/binaries in a custom "bootc compatible" container? -The "bootc compatible" containers are OCI container images, so you can customize them in the same way you build containers today. +The "bootc compatible" containers are OCI container images, so you can customize them in the same way you build containers today. This means using a Containerfile to customize your image and build tools like `buildah`, `podman build`, or `docker build` to generate your customized "bootc compatible" container image. -For example, using your own yum/dnf repo in a Dockerfile: - -```Dockerfile -FROM quay.io/redhat/rhel-base:10 -COPY custom.repo /etc/yum.repos.d/ -RUN dnf -y install custom-rpm & \ - dnf clean all && \ - ostree container commit -``` - -Or using multi-stage builds in your Dockerfile: - -```Dockerfile -# Build a small Go program -FROM registry.access.redhat.com/ubi8/ubi:latest as builder -WORKDIR /build -COPY . . -RUN yum -y install go-toolset -RUN go build hello-world.go - -FROM quay.io/redhat/rhel-base:10 -COPY --from=builder /build/hello-world /usr/bin -RUN ostree container commit -``` - -You can find more examples at the [centos-boot-layered repo](https://github.com/CentOS/centos-boot-layered) repo or the [CoreOS layering-examples repo](https://github.com/coreos/layering-examples). +For examples of how use build a "bootc compatible" base image, see the [centos-boot repo](https://github.com/CentOS/centos-boot) as a starting point. For examples of how to use a Containerfile to build a customized "bootc compatible" image, see the [centos-boot-layered repo](https://github.com/CentOS/centos-boot-layered). ## How does the use of OCI artifacts intersect with this effort?