Run noninteractive builds with gcc-toolset-15
To perform noninteractive builds, run the gcc-toolset-15 image with a predefined build script that exits upon completion.
Before you begin
- The
gcc-toolset-15image is available locally. - A host directory for source and build scripts, for example,
/srv/src. - A host directory for build output, for example,
/srv/build-output. - A build script, for example,
build.sh, that runs GCC Toolset 15 commands.
About this task
In CI systems, you can integrate this pattern by running podman run as part of a pipeline step. Use pipeline variables or configuration files to provide the values for <REGISTRY>, <NAMESPACE>, <TAG>, and host paths.
Ensure build scripts write logs and artifacts to host-mounted directories. This practice enables CI systems and administrators to inspect outputs after the container exits and to archive them as needed.