doc(main): updates

This commit is contained in:
Stephan Lüscher 2024-05-27 16:42:33 +00:00
parent e0df50076e
commit ee86b81f5b
No known key found for this signature in database
GPG key ID: 445779060FF3D3CF
2 changed files with 22 additions and 19 deletions

View file

@ -41,21 +41,24 @@ ln -s $FORGE_POD_DATA_DIR $HOME/ublue-os_forge-data
With this the data folder would be available in your home directory under `~/ublue-os_forge-data` With this the data folder would be available in your home directory under `~/ublue-os_forge-data`
In that folder you will find an example configuration similar to this: In that folder you will find an **examples** folder with example configurations similar to this:
```yaml ```yaml
## ublue-os forge extra-vars example configuration ## ublue-os forge example configuration
## For more details got to https://github.com/ublue-os/forge/blob/main/docs/variables.md ## For more details got to https://github.com/ublue-os/forge/blob/main/docs/variables.md
--- ---
forge_git_repository_url: https://github.com/ublue-os/bluefin.git forge_git_repository_url: https://github.com/ublue-os/bluefin.git
forge_git_repository_destination: /var/home/stephan/.local/share/containers/storage/volumes/ublue-os_forge-data/_data/data/bluefin forge_git_repository_destination: "/var/home/stephan/.local/share/containers/storage/volumes/ublue-os_forge-data/_data/data/bluefin"
forge_git_repository_version: main forge_container_extra_args:
forge_registry_url: registry.ublue.local - --build-arg="BASE_IMAGE_NAME=silverblue"
- --build-arg="IMAGE_FLAVOR=main"
- --build-arg="AKMODS_FLAVOR=main"
- --build-arg="FEDORA_MAJOR_VERSION=39"
- --build-arg="TARGET_BASE=bluefin"
``` ```
This file acts as a template. It has all available settings outlined for you. Simple copy These files are a good starting point for your custom configuration. Simple copy those examples
it and modify it to your liking. For each project you want to handle with the forge you can you are interested in modify them to your liking.
create a dedicated file.
Details about the available variables are documented [here](./variables.md). Details about the available variables are documented [here](./variables.md).

View file

@ -10,16 +10,16 @@ The following configuration variables are available and can be set to your likin
<!-- markdownlint-disable MD013 --> <!-- markdownlint-disable MD013 -->
| Name | Type | Default value | Description | | Name | Type | Default value | Description |
| ---------------------------------- | ---- | ------------------------------------------------- | -------------------------------------------------------------------------------- | | ---------------------------------- | ---- | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `forge_container_file` | str | Containerfile | Path to the Containerfile for Podman to build | | `forge_container_name` | str | Project name derived from `forge_git_repository_url` Example: `bluefin` | Container image name. |
| `forge_container_format` | str | oci | Format of the image Podman will build. Can be either `oci` or `docker` | | `forge_container_tag` | str | Evaluates to: `YYY-MM-DD_HHMMSS` Example: `2024-05-26_192206` | Container image tag. |
| `forge_git_repository_url` | str | <https://github.com/ublue-os/bluefin.git> | Git repository url | | `forge_container_file` | str | Containerfile | Path to the Containerfile for Podman to build |
| `forge_git_repository_destination` | str | `{{ forge_data_volume_mountpoint }}`/data/bluefin | Git destination where repository is cloned to. Can be any directory on your host | | `forge_container_format` | str | oci | Format of the image Podman will build. Can be either `oci` or `docker` |
| `forge_git_repository_version` | str | main | Git repository branch or tag or commit version | | `forge_container_extra_args` | list | [] | List of extra arguments which gets passed to the podman build process. Example: `[--build-arg="BASE_IMAGE_NAME=silverblue"]` |
| `forge_registry_url` | str | registry.ublue.local | Container registry url | | `forge_git_repository_url` | str | | Git repository url |
| `forge_git_repository_destination` | str | | Git destination where repository is cloned to. |
| `forge_git_repository_version` | str | main | Git repository branch or tag or commit version |
| `forge_registry_url` | str | registry.ublue.local | Container registry url |
<!-- markdownlint-enable MD013--> <!-- markdownlint-enable MD013-->
**_Note:_** The `{{ forge_data_volume_mountpoint }}` points to your ublue-os_forge-data
podman volume.