Last active
March 15, 2016 20:15
-
-
Save anish/b9566bd6fb1b3094026a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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