This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.6.2. Creating custom build artifacts
You must create the image you want to use as your custom build image.
Procedure
Starting with an empty directory, create a file named
Dockerfile
with the following content:Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the same directory, create a file named
dockerfile.sample
. This file is included in the custom build image and defines the image that is produced by the custom build:FROM registry.access.redhat.com/ubi8/ubi RUN touch /tmp/build
FROM registry.access.redhat.com/ubi8/ubi RUN touch /tmp/build
Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the same directory, create a file named
build.sh
. This file contains the logic that is run when the custom build runs:Copy to Clipboard Copied! Toggle word wrap Toggle overflow