Skip to content

Commit 2e2eee3

Browse files
committed
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 <[email protected]>
1 parent ee35410 commit 2e2eee3

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

docs/faq.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,9 @@ nav_order: 4
66

77
## How do users include their own packages/binaries in a custom "bootc compatible" container?
88

9-
The "bootc compatible" containers are OCI container images, so you can customize them in the same way you build containers today.
9+
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.
1010

11-
For example, using your own yum/dnf repo in a Dockerfile:
12-
13-
```Dockerfile
14-
FROM quay.io/redhat/rhel-base:10
15-
COPY custom.repo /etc/yum.repos.d/
16-
RUN dnf -y install custom-rpm & \
17-
dnf clean all && \
18-
ostree container commit
19-
```
20-
21-
Or using multi-stage builds in your Dockerfile:
22-
23-
```Dockerfile
24-
# Build a small Go program
25-
FROM registry.access.redhat.com/ubi8/ubi:latest as builder
26-
WORKDIR /build
27-
COPY . .
28-
RUN yum -y install go-toolset
29-
RUN go build hello-world.go
30-
31-
FROM quay.io/redhat/rhel-base:10
32-
COPY --from=builder /build/hello-world /usr/bin
33-
RUN ostree container commit
34-
```
35-
36-
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).
11+
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).
3712

3813
## How does the use of OCI artifacts intersect with this effort?
3914

0 commit comments

Comments
 (0)