<commit_before># Jenkins swarm slave

[`csanchez/jenkins-swarm-slave`](https://registry.hub.docker.com/u/csanchez/jenkins-swarm-slave/)

A [Jenkins swarm](https://wiki.jenkins-ci.org/display/JENKINS/Swarm+Plugin) slave.

For a container with many build tools installed see `maestrodev/build-agent`

## Running

To run a Docker container passing any parameters to the slave

    docker run csanchez/jenkins-swarm-slave -master http://jenkins:8080 -username jenkins --password jenkins

Linking to the Jenkins master container there is no need to use `--master`

    docker run --name jenkins -p 8080:8080 -p 37727:37727 -p 50000:50000 csanchez/jenkins-swarm
    docker run --link jenkins:jenkins csanchez/jenkins-swarm-slave -username jenkins --password jenkins


# Building

    docker build -t csanchez/jenkins-swarm-slave .
<commit_msg>Easier way of trying the container<commit_after># Jenkins swarm slave

[`csanchez/jenkins-swarm-slave`](https://registry.hub.docker.com/u/csanchez/jenkins-swarm-slave/)

A [Jenkins swarm](https://wiki.jenkins-ci.org/display/JENKINS/Swarm+Plugin) slave.

For a container with many build tools installed see `maestrodev/build-agent`

## Running

To run a Docker container passing [any parameters](https://wiki.jenkins-ci.org/display/JENKINS/Swarm+Plugin#SwarmPlugin-AvailableOptions) to the slave

    docker run csanchez/jenkins-swarm-slave -master http://jenkins:8080 -username jenkins --password jenkins -executors 1

Linking to the Jenkins master container there is no need to use `--master`

    docker run -d --name jenkins -p 8080:8080 csanchez/jenkins-swarm
    docker run -d --link jenkins:jenkins csanchez/jenkins-swarm-slave -username jenkins -password <PASSWORD> -executors 1


# Building

    docker build -t csanchez/jenkins-swarm-slave .

{'fraction_non_alphanumeric': 0.10570469798657718, 'fraction_numerical': 0.025727069351230425, 'mean_word_length': 4.170520231213873, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '391178', 'n_tokens_mistral': 641, 'n_tokens_neox': 566, 'n_words': 163}