The GNOME Build Metadata repository is where the GNOME release team manages build metadata for building the GNOME software stack.
The content of this repository is a BuildStream project. Instructions for building GNOME can be found here.
To update the refs you can use Toolbox along with the script in utils/update-refs.py
and
git push options to create a merge request.
$ toolbox create -i registry.gitlab.com/freedesktop-sdk/infrastructure/freedesktop-sdk-docker-images/bst2 $ toolbox run -c bst2 ./utils/update-refs.py --new-branch $ git push -o merge_request.create -o merge_request.assign="marge-bot" -o merge_request.remove_source_branch -f origin -u HEAD
Some of the possible build outputs are documented below.
To build a runtime locally, for debugging:
$ bst build flatpak-runtimes.bst $ bst checkout flatpak-runtimes.bst repo $ flatpak remote-add --user --no-gpg-verify testrepo repo $ flatpak install testrepo org.gnome.Platform
To build the GNOME OS "secure boot" image locally:
Generate keys:
$ make -C files/boot-keys clean $ make -C files/boot-keys
Build the disk image (first command) or the ISO installer (second command):
$ bst build vm-secure/image.bst $ bst build iso/image.bst
Checkout the image or installer:
$ bst artifact checkout vm-secure/image.bst --directory ./disk $ bst artifact checkout iso/image.bst --directory ./iso
OCI images are built and pushed to the container registry through the CI job 'deploy-oci'. Currently there are three images 'platform', 'sdk' and 'core':
- platform - the same
/usr
tree as theorg.gnome.Platform
flatpak runtime - sdk - the same as the
org.gnome.Sdk
flatpak runtime andtoolbox
compatible - core - core devel OS tree including the dependencies to build all (most) of the 'core' elements in 'core.bst', but without the cli tools and utilities (podman, toolbox, bst, etc)
These images can be found in the container registry quay.io.
While they are "toolbox compatible", there isn't any update mechanism in them, so you should be aware that the containers created locally for development will become stale and you will need to remove and recreate them with an up to date image often. Their main usecase is for gitlab-ci which always pulls the latest image.