GithubHelp home page GithubHelp logo

jenkins-docker-slave's Introduction

Jenkins Docker Agent with Docker Engine

How to use?

You can use as a dynamically provisioned Docker agent. You can specify it as an agent Docker template and need to mark "privileged".

Warning

As mentioned by Jérôme Petazzoni on his blog post, this method is not a silver bullet.

Technical

Technical, this image is a merge of two great works:

jenkins-docker-slave's People

Contributors

leszko avatar

Watchers

James Cloos avatar  avatar Nishad Saithaly avatar

jenkins-docker-slave's Issues

Failing with SSH service didn't started after 60s.

If I use leszko/jenkins-docker-slave docker image that is already published on DockerHub it is working fine. But, if I clone this repo and try to build the image and use it to create a docker based dynamic agent it is failing with the following error:

SEVERE: Error in provisioning; template='DockerTemplate{configVersion=2, labelString='', connector=io.jenkins.docker.connector.DockerComputerSSHConnector@20572036, remoteFs='/home/jenkins/jenkins_home', instanceCap=100, mode=NORMAL, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@33da7714, dockerTemplateBase=DockerTemplateBase{image='sivaprasadreddy/jenkins-docker-slave', pullCredentialsId='', registry=DockerRegistryEndpoint[null;credentialsId=null], dockerCommand='', hostname='', dnsHosts=[], network='', volumes=[], volumesFrom2=[], environment=[], bindPorts='', bindAllPorts=false, memoryLimit=null, memorySwap=null, cpuShares=null, privileged=true, tty=false, macAddress='null', extraHosts=[]}, removeVolumes=false, pullStrategy=PULL_LATEST, nodeProperties=[], disabled=BySystem,0 ms,4 min 59 sec,Template provisioning failed.}' for cloud='docker'
java.io.IOException: SSH service didn't started after 60s.
	at io.jenkins.docker.connector.DockerComputerSSHConnector.createLauncher(DockerComputerSSHConnector.java:231)
	at io.jenkins.docker.connector.DockerComputerConnector.createLauncher(DockerComputerConnector.java:96)
	at com.nirima.jenkins.plugins.docker.DockerTemplate.doProvisionNode(DockerTemplate.java:507)
	at com.nirima.jenkins.plugins.docker.DockerTemplate.provisionNode(DockerTemplate.java:468)
	at com.nirima.jenkins.plugins.docker.DockerCloud$1.run(DockerCloud.java:351)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

The only change I made is installing git and locales in image. My cloned repo https://github.com/sivaprasadreddy/jenkins-docker-slave

Any idea why it is not working?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.