Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Grünewaldt authored Jul 31, 2017
1 parent 239ce3a commit 3c64a4e
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,8 @@
# k8s-jenkins-slave-nodejs-xvfb-chrome
k8s-jenkins-slave-nodejs-xvfb-chrome


### Jenkins Slave Documentation
<img src="https://cloutainer.github.io/documentation/images/cloutainer.svg?v5" align="right">

A Jenkins Slave Dockerized Container is started with the following parameters:

* Docker CMD parameters:
* `secret` and `nodeName`
* We will use `JENKINS_NAME` Env var instead of `nodeName`
* We will use `JENKINS_SECRET` Env var instead of `secret`
* Docker ENV Vars:

```
JENKINS_LOCATION_URL: https://jenkins.foo.com/
JENKINS_SECRET: 050...42d
JENKINS_JNLP_URL: http://jenkins.foo.com:8080/computer/k8s-jenkins-slave-
nodejs-xvfb-chrome-21ce6ca6fe87e/slave-agent.jnlp
JENKINS_NAME: k8s-jenkins-slave-nodejs-xvfb-chrome-21ce6ca6fe87e
JENKINS_URL: http://jenkins.foo.com:8080
HOME: /work
```
# k8s-jenkins-slave-nodejs-xvfb-chrome

The `secret` and `nodeName` is the passed to the JNLP remoting JAR `slave.jar` to connect to the Jenkins Host via JNLP protocol.
The outline of the process is as follows:

* container creation with `secret` and `nodeName`
* inside docker-entrypoint:
* Download of `${JENKINS_URL}/jnlpJars/slave.jar`.
* Executing `java -jar slave.jar -url ${JENKINS_URL} ${secret} ${nodeName}`.


-----
Expand Down

0 comments on commit 3c64a4e

Please sign in to comment.