Skip to content

Instantly share code, notes, and snippets.

@anish
Last active March 15, 2016 20:15
Show Gist options
  • Select an option

  • Save anish/b9566bd6fb1b3094026a to your computer and use it in GitHub Desktop.

Select an option

Save anish/b9566bd6fb1b3094026a to your computer and use it in GitHub Desktop.
@util.renderer
def getrepoPath(props):
return [ Interpolate('/opt/repos:/buildslave/%(props:buildername)s/build/repos') ]
container_conf = {}
container_conf['network_mode'] = 'host'
container_conf['dns'] = ['8.8.8.8','8.8.4.4']
c['slaves'] = [
buildslave.DockerLatentBuildSlave('docker_slave', 'password',
docker_host='unix:///var/run/docker.sock',
followStartupLogs=True,
image='crpmbuild',
version='1.19',
volumes=getrepoPath,
hostconfig=container_conf),
buildslave.BuildSlave('test_slave','test')
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment