-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added diffutils and a basic README file
- Loading branch information
Showing
2 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# My Dev Toolbox | ||
|
||
> This image is meant to be used with the toolbox-create(1) command. | ||
Since I started using [Fedora Silverblue] I've switched my workflow to use toolbox to set up my dev environments, | ||
instead of overlaying packages, trying to keep my deployments as clean as possible. | ||
|
||
As I was learing my ways around it, I kept having to re-create my toolboxes and had to run multiple commands everytime | ||
to set them up as I wanted it to. | ||
|
||
Eventually, I wrote a bash script, which worked fine. | ||
|
||
But recently I came across the **Custom Images** section of the [Toolbx Documentation], where it describes how one can | ||
go on to create their own custom Toolbx image and use that. | ||
|
||
This repo is set up to track my Containerfile of my custom image for dev work, as well as notes and scripts related to | ||
it. | ||
|
||
The relevant GitHub Actions were set up in order to build a new image everytime my Containerfile, or the files in the | ||
`files` directory change. | ||
|
||
## Versioning | ||
|
||
The latest version of image _should_ always be available as `ghcr.io/elromanos/dev-toolbox:latest`. | ||
|
||
A cron job is defined to run and update it once a week, with the latest Fedora repo updates. The tag for such images is | ||
set as **YY.WW** where **YY** is the last two digits of the year and **WW** the week number it was build. | ||
|
||
## Setup | ||
|
||
In order for the custom image to be loaded by default when I create a new toolbox, I need to override toolbox's default | ||
settings. To do so, I had to create the `~/.config/containers/toolbox.conf` file with the following TOML content: | ||
|
||
```toml | ||
[general] | ||
image = "ghcr.io/elromanos/dev-toolbox" | ||
``` | ||
|
||
## F.A.Q. | ||
|
||
- **Q: Why Podman and not Docker?** A: [Fedora Silverblue] comes with Podman pre-installed. As I want to keep my base | ||
image as close to the defaults as possible, I decided to keep using Podman. For the simple needs of this exercise, | ||
Docker and Podman __should__ be interchangable/compatible. | ||
|
||
[Fedora Silverblue]: https://fedoraproject.org/atomic-desktops/silverblue/ | ||
[Toolbx Documentation]: https://containertoolbx.org/doc/ | ||
[Red Hat Actions]: https://github.com/redhat-actions |