Yes I believe you can do that today. You specify the source uri as you have done, in the BuildConfig and then within the DockerBuildStrategy you can specify a subdirectory of that repo for the context:
Ben Parees | OpenShift
----- Original Message -----
> From: "Dror Gensler" <dror g zend com>
> To: users lists openshift redhat com
> Sent: Sunday, January 11, 2015 8:28:37 AM
> Subject: Fwd: Automated build from Git subfolder
> I'v been experimenting with automated Builds and encountered a problem-
> In a Docker BuildConfig with a Git repo as source a repo URI must be
> specified like so:
> "uri": "git:// github.com/dror-g/some-repo.git "
> However, most Docker images source repo's contain multiple sub-directories-
> one for each tag of the built container.
> For example the official MySQL repo -
> Or a more relevant example- Zend's image which supports openshift:
> Is there a way to specify a version-tag subfolder in a BuildConfig?
> Thank you,
> Dror Gensler
> Zend Technologies.
> users mailing list
> users lists openshift redhat com