docs-fp-o-ci-test/build-scripts
Hristo Marinov 14ede9ea95
Some checks failed
Build fedocs container image for Fedora Docs / build (x86_64, latest, buildroot) (push) Successful in 3m29s
Build fedocs container image for Fedora Docs / merge (x86_64, latest, buildroot) (push) Successful in 54s
Build Antora container image for Fedora Docs / build (x86_64, latest, buildroot) (push) Successful in 4m24s
Build Antora container image for Fedora Docs / merge (x86_64, latest, buildroot) (push) Successful in 40s
Build container image for testing the Fedora Docs / build (prod) (push) Failing after 12m17s
Build container image for testing the Fedora Docs / build (stg) (push) Failing after 18m29s
Work in progress
Signed-off-by: Hristo Marinov <hricky@fedoraproject.org>
2026-09-19 15:27:08 +03:00
..
Dockerfile Work in progress 2026-08-10 08:54:10 +03:00
README.md Work in progress 2026-09-19 15:27:08 +03:00
rebuild-site.py Work in progress 2026-09-18 16:42:28 +03:00

Building the docs

This script is used in OpenShift to rebuild the whole site for Fedora.

Local testing

Test the build locally using podman.

First, make sure your in the right directory — it's the same one that has this README.md file. Then build the container on your system:

$ podman build --no-cache -t fedora-docs-openshift-rebuild . 

And then run it:

$ mkdir output
$ podman run --rm -it -e "BUILD_ENV=stg" -v $(pwd)/output:/antora/output fedora-docs-openshift-rebuild

The output will be saved in ./output/.

Changing configuration

You can also set different environment variables by setting -e "VAR_NAME=value" in the podman run command. See a list of supported variables below.

# The script requires the following environment variables to be set:
# 
# Variable          Values      Effect
# -----------------|-----------------------------------------------------------
# BUILD_ENV         prod        Build the production version of the site
#                               using the "prod" branch. DEFAULT
#                   stg         Build the staging version of the site
#                               using the "stg" branch.
# -----------------|-----------------------------------------------------------
# BUILD_LANGS       english     Build the "en-US" version only. DEFAULT
#                   translated  Build only the translated versions.
#                   all         Build the "en-US" and the translated versions.

Please note that rebuilding all the languages locally will take many hours and results in gigabytes of output.