We use tito to make building and tracking revisions easy.
For more information on tito, please see the Tito home page.
- Change into openshift-ansible
cd openshift-ansible
- Build a test package (no tagging needed)
tito build --test --rpm
- Tag a new build (bumps version number and adds log entries)
tito tag
- Follow the on screen tito instructions to push the tags
- Build a new package based on the latest tag information
tito build --rpm
NOTE: the examples below use "openshift-ansible" as the name of the image to build for simplicity and illustration purposes, and also to prevent potential confusion between custom built images and official releases. See README_CONTAINER_IMAGE.md for details about the released container images for openshift-ansible.
To build a container image of openshift-ansible
using standalone Docker:
cd openshift-ansible
docker build -f images/installer/Dockerfile -t openshift-ansible .