<commit_before># Jenkins 

Goal: Simplify installation and configuration of Jenkins for Java development. 

See https://github.com/jenkinsci/docker for tips, most of it is applicable to this fork as well. 

* Data is stored in a Data Volume Container. Latest Maven 3, Zulu JDK 8 and a few of the most useful plugins are preinstalled. 
* Jenkins Core: 1.596.3 (latest LTS), see http://jenkins-ci.org/changelog#stable 
* List of plugins: https://raw.githubusercontent.com/Cantara/maven-infrastructure/master/jenkins/plugins.txt
* Webproxy (incl. TLS termination) is considered out of scope. Recommend using a separate docker container which links to this container. 
  * https://docs.docker.com/userguide/dockerlinks/ 

## Install and use 

1. Install data volume container and jenkins
```
docker pull cantara/jenkins
sudo mkdir /data
sudo docker create -v /data/jenkins_home --name jenkins-data cantara/jenkins
sudo docker run -d -p 80:8080 --volumes-from jenkins-data --name jenkins20150512 cantara/jenkins
```

2. Use jenkins to setup security and users
  * https://wiki.jenkins-ci.org/display/JENKINS/Standard+Security+Setup
3. Update plugins, http://localhost:8080/pluginManager/
4. Set up CI user with access to git/github repositories 
  * Create SSH keys: https://developer.github.com/guides/managing-deploy-keys/#machine-users
  * Add SSH private key to Jenkins, http://localhost:8080/credentials/
5. Setup settings.xml to give Jenkins access to non-public Maven repos
  * Add settings.xml, http://localhost:8080/configfiles/
  * Remember to reference the settings.xml file in the build configuration for the Maven project. 

## Backup 

See https://docs.docker.com/userguide/dockervolumes/#backup-restore-or-migrate-data-volumes
<commit_msg>more docs<commit_after># Jenkins 

Goal: Simplify installation and configuration of Jenkins for Java development. 

See https://github.com/jenkinsci/docker for tips, most of it is applicable to this fork as well. 

* Data is stored in a Data Volume Container. Latest Maven 3, Zulu JDK 8 and a few of the most useful plugins are preinstalled. 
* Jenkins Core: 1.596.3 (latest LTS), see http://jenkins-ci.org/changelog#stable 
* List of plugins: https://raw.githubusercontent.com/Cantara/maven-infrastructure/master/jenkins/plugins.txt
* Webproxy (incl. TLS termination) is considered out of scope. Recommend using a separate docker container which links to this container. 
  * https://docs.docker.com/userguide/dockerlinks/ 

## Install and use 

1. Install data volume container and jenkins
```
sudo aptitude install docker.io or see https://docs.docker.com/installation/ubuntulinux/
docker pull cantara/jenkins
sudo mkdir /data
sudo docker create -v /data/jenkins_home --name jenkins-data cantara/jenkins
sudo docker run -d -p 80:8080 --volumes-from jenkins-data --name jenkins20150512 cantara/jenkins
```

2. Use jenkins to setup security and users
  * https://wiki.jenkins-ci.org/display/JENKINS/Standard+Security+Setup
3. Update plugins, http://localhost:8080/pluginManager/
4. Set up CI user with access to git/github repositories 
  * Create SSH keys: https://developer.github.com/guides/managing-deploy-keys/#machine-users
  * Add SSH private key to Jenkins, http://localhost:8080/credentials/
5. Setup settings.xml to give Jenkins access to non-public Maven repos
  * Add settings.xml, http://localhost:8080/configfiles/
  * Remember to reference the settings.xml file in the build configuration for the Maven project. 

## Backup 

See https://docs.docker.com/userguide/dockervolumes/#backup-restore-or-migrate-data-volumes

{'fraction_non_alphanumeric': 0.09461345241417807, 'fraction_numerical': 0.021211275467485347, 'mean_word_length': 4.21688500727802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 13, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '184729', 'n_tokens_mistral': 1180, 'n_tokens_neox': 1044, 'n_words': 372}