https://github.com/gbraad-fedora/fedora-bootc-example
Presentation "From `Containerfile` to (Virtual) Machine"; a Fedora bootc example by @gbraad
https://github.com/gbraad-fedora/fedora-bootc-example
bootc containers fedora podman presentation
Last synced: about 1 month ago
JSON representation
Presentation "From `Containerfile` to (Virtual) Machine"; a Fedora bootc example by @gbraad
- Host: GitHub
- URL: https://github.com/gbraad-fedora/fedora-bootc-example
- Owner: gbraad-fedora
- License: other
- Created: 2025-01-17T08:04:33.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-02T12:23:22.000Z (3 months ago)
- Last Synced: 2025-02-02T13:19:20.228Z (3 months ago)
- Topics: bootc, containers, fedora, podman, presentation
- Language: Dockerfile
- Homepage: http://docs.gbraad.nl/from-containerfile-to-virtual-machine
- Size: 9.34 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fedora bootc (Bootable Containers) example
==========================================### "From `Containerfile` to (Virtual) Machine"
## Summary
This repository contains the material used for the presentation "From `Containerfile` to Virtual Machine". It describes the use of [bootc](https://containers.github.io/bootc/) (bootable containers), which uses a `Containerfile` to create a container and converts this to a (virtual) machine.
## Presentation
The source of the presentation is available in the `presentation` directory. The presentation is written in Markdown (revealjs) and uses Obsidian's Extended Slides plugin.
An export is available at [http://docs.gbraad.nl/from-containerfile-to-virtual-machine/](http://docs.gbraad.nl/from-containerfile-to-virtual-machine/)
## Containers
The `container` directory contains the `Containerfile`, which is build using the workflow scripts in `.github/workflows`.
Runs of these actions can be found at [https://github.com/gbraad-redhat/fedora-bootc-example/actions](https://github.com/gbraad-redhat/fedora-bootc-example/actions)
Successful container builds are available at:
- https://github.com/orgs/gbraad-redhat/packages/container/package/fedora-bootc-example%2Ffedora
`podman run -d ghcr.io/gbraad-redhat/fedora-bootc-example/fedora:latest`
- https://github.com/orgs/gbraad-redhat/packages/container/package/fedora-bootc-example%2Ffedora-bootc
`ghcr.io/gbraad-redhat/fedora-bootc-example/fedora-bootc:latest`## Disk image
The latest disk image is available at [https://github.com/gbraad-redhat/fedora-bootc-example/releases/tag/latest](https://github.com/gbraad-redhat/fedora-bootc-example/releases/tag/latest), which is purposely a release behind the container builds. Therefore you can use `sudo bootc update` to update the disk image to the latest version.
This file is named `disk.qcow2` and can be run with:
```shell
$ sudo virt-install \
--name fedora-bootc --os-variant fedora-eln \
--cpu host --vcpus 2 --memory 2048 \
--import --disk disk.qcow2
```After the machine came up, you can log in using:
```shell
$ ssh admin@
```> [!NOTE]
> The password is `password`.## Release flow

The bootc-based container images are pushed to a 'public' registry, while the disk image is released as a GitHub release.
After an update to the container image, you push to the registry and update the running VM using `bootc update`.Authors
-------| [](http://gbraad.nl "Gerard Braad ") |
|---|
| [@gbraad](https://gbraad.nl/social) |