Connecting private git repositories
Am I wrong or is there currently no way to connect a private repository to a service?
@thorben Using private repositories for builds is supported but not yet integrated into the Web Console: https://docs.openshift.com/enterprise/3.1/dev_guide/builds.html#using-private-repositories-for-builds. Please contact us if you have trouble getting this to work.
here are the basic steps:
create a basic secret
oc secrets new-basicauth basicsecret --username=username --password=password
then add it to the builder service
oc secrets add serviceaccount/builder secrets/basicsecret
then create an app with your git repo
oc new-app java:8-jdk~https://github.com/account/repository.git#feature/openshift --strategy=docker --name=app_name
(new app is a docker build based on java:8-jdk image and i'm using the branch "feature/openshift" on github)