{"id":24954784,"url":"https://github.com/gbraad-fedora/fedora-bootc-example","last_synced_at":"2025-03-28T20:13:46.172Z","repository":{"id":272891172,"uuid":"918081182","full_name":"gbraad-fedora/fedora-bootc-example","owner":"gbraad-fedora","description":"Presentation \"From `Containerfile` to (Virtual) Machine\"; a Fedora bootc example by @gbraad","archived":false,"fork":false,"pushed_at":"2025-02-02T12:23:22.000Z","size":9791,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T13:19:20.228Z","etag":null,"topics":["bootc","containers","fedora","podman","presentation"],"latest_commit_sha":null,"homepage":"http://docs.gbraad.nl/from-containerfile-to-virtual-machine","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gbraad-fedora.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["gbraad"],"patreon":"gbraad","liberapay":"gbraad","custom":["https://paypal.me/gbraad","https://www.buymeacoffee.com/gbraad"]}},"created_at":"2025-01-17T08:04:33.000Z","updated_at":"2025-02-02T12:29:15.000Z","dependencies_parsed_at":"2025-01-20T10:25:33.671Z","dependency_job_id":null,"html_url":"https://github.com/gbraad-fedora/fedora-bootc-example","commit_stats":null,"previous_names":["gbraad-devenv/fedora-bootc","gbraad-redhat/fedora-bootc"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbraad-fedora%2Ffedora-bootc-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbraad-fedora%2Ffedora-bootc-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbraad-fedora%2Ffedora-bootc-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbraad-fedora%2Ffedora-bootc-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbraad-fedora","download_url":"https://codeload.github.com/gbraad-fedora/fedora-bootc-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246093188,"owners_count":20722402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootc","containers","fedora","podman","presentation"],"created_at":"2025-02-03T05:13:13.038Z","updated_at":"2025-03-28T20:13:46.146Z","avatar_url":"https://github.com/gbraad-fedora.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/gbraad","https://patreon.com/gbraad","https://liberapay.com/gbraad","https://paypal.me/gbraad","https://www.buymeacoffee.com/gbraad"],"categories":[],"sub_categories":[],"readme":"Fedora bootc (Bootable Containers) example\r\n==========================================\r\n\r\n### \"From `Containerfile` to (Virtual) Machine\"\r\n\r\n\r\n## Summary\r\n\r\nThis 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.\r\n\r\n\r\n## Presentation\r\n\r\nThe source of the presentation is available in the `presentation` directory. The presentation is written in Markdown (revealjs) and uses Obsidian's Extended Slides plugin.\r\n\r\nAn export is available at [http://docs.gbraad.nl/from-containerfile-to-virtual-machine/](http://docs.gbraad.nl/from-containerfile-to-virtual-machine/)\r\n\r\n\r\n## Containers\r\n\r\nThe `container` directory contains the `Containerfile`, which is build using the workflow scripts in `.github/workflows`.\r\n\r\nRuns 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)\r\n\r\nSuccessful container builds are available at:\r\n  - https://github.com/orgs/gbraad-redhat/packages/container/package/fedora-bootc-example%2Ffedora  \r\n    `podman run -d ghcr.io/gbraad-redhat/fedora-bootc-example/fedora:latest`\r\n  - https://github.com/orgs/gbraad-redhat/packages/container/package/fedora-bootc-example%2Ffedora-bootc  \r\n    `ghcr.io/gbraad-redhat/fedora-bootc-example/fedora-bootc:latest`\r\n\r\n\r\n## Disk image\r\n\r\nThe 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.\r\n\r\nThis file is named `disk.qcow2` and can be run with:\r\n\r\n```shell\r\n$ sudo virt-install \\\r\n    --name fedora-bootc --os-variant fedora-eln \\\r\n    --cpu host --vcpus 2 --memory 2048 \\\r\n    --import --disk disk.qcow2\r\n```\r\n\r\nAfter the machine came up, you can log in using:\r\n\r\n```shell\r\n$ ssh admin@\u003cip\u003e\r\n```\r\n\r\n\u003e [!NOTE]\r\n\u003e The password is `password`.\r\n\r\n\r\n## Release flow\r\n\r\n![Release flow](./images/release-flow.png)\r\n\r\nThe bootc-based container images are pushed to a 'public' registry, while the disk image is released as a GitHub release.\r\nAfter an update to the container image, you push to the registry and update the running VM using `bootc update`.\r\n\r\n\r\nAuthors\r\n-------\r\n\r\n| [![\"Gerard Braad\"](http://gravatar.com/avatar/e466994eea3c2a1672564e45aca844d0.png?s=60)](http://gbraad.nl \"Gerard Braad \u003cme@gbraad.nl\u003e\") |\r\n|---|\r\n| [@gbraad](https://gbraad.nl/social)  |\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbraad-fedora%2Ffedora-bootc-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbraad-fedora%2Ffedora-bootc-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbraad-fedora%2Ffedora-bootc-example/lists"}