Dockerfile Requirements
The Dockerfile can be found in the root
directory of your operator. For Certified Operator Image Dockerfile requirements are as follows:
You must configure the required labels (name, maintainer, vendor, version, release, summary)
Software license(s) must be included within the image.
Although typically labels and licenses are not required to successfully build a running image, they are required for the Red Hat build service and scanner.
Below is an example Dockerfile for a Ansible Operator which includes the aforementioned requirements:
A few things to note about the Dockerfile above:
The default FROM line produced by the SDK needs to be replaced with the line listed above.
This Dockerfile contains all of the required labels. These labels must be manually added (name, vendor, version, release, summary, and description).
If you are planning to use a playbook, that file will also need to be copied.
Lastly, this Dockerfile also references a
licenses/
directory, which needs to be manually added to the root of the project. This directory must include the software license(s) of your project.
Your project directory structure should look similar to the hierarchy below. Note the location of the licenses directory.
Last updated