Switch to the openshift-monitoring project
oc project openshift-monitoring
Create secret that will be used to pull images (needed for rhel7-minimum)
oc create secret docker-registry your-secret-name \
--docker-server=registry.redhat.io \
--docker-username='A_NUMBER|your-container-service-account-name' \
--docker-password='YOUR_LONG_HASH_PASSWORD'
oc secrets link default your-secret-name --for=pull
link secret for the builder
oc secrets link builder your-secret-name
Create a new build config from the Dockerfile in your git repo
oc new-build --name=grafana6-custom \
--strategy=docker \
https://github.com/worsco/ocp3-grafana6-custom.git
oc start-build grafana6-custom
Or Alternatively from local directory of cloned repo
git clone https://github.com/worsco/ocp3-grafana6-custom.git ocp3-grafana6-custom
cd ocp3-grafana6-custom
#THIS ....
oc new-build --name=grafana6-custom .
oc start-build grafana6-custom
# OR ....
oc start-build --name=grafana6-custom \
--strategy=docker \
--from-dir="."