<commit_before># Nexus Artifact Repository 

Goal: Simplify installation and configuration of Nexus artifact repository. 

See https://registry.hub.docker.com/u/sonatype/nexus/ for tips, most of it is applicable to this fork as well. 

* Data is stored in a Data Volume Container. Latest Maven 3 and Zulu JDK 8 are preinstalled. 
* Nexus OSS: 2.11.3-01 
* 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 

###  Install data volume container and Nexus
```
sudo wget -qO- https://get.docker.com/ | sh
sudo docker pull cantara/nexus
sudo docker create -v /sonatype-work --name nexus-data cantara/nexus
sudo docker run -d -p 80:8081 --volumes-from nexus-data --name nexus20150708 cantara/nexus
```

### Test that service is running 
```
curl http://localhost:80/service/local/status
```


### Initial config, point your browser to http://localhost:80/
1. Review Post-Install Checklist and configure as appropriate 
  * http://books.sonatype.com/nexus-book/reference/install-sect-repoman-post-install.html
2. Set users and roles 
  * https://wiki.cantara.no/display/sysadm/Artifact+repository+user+and+role+management
<commit_msg>first attempt at data import.<commit_after># Nexus Artifact Repository 

Goal: Simplify installation and configuration of Nexus artifact repository. 

See https://registry.hub.docker.com/u/sonatype/nexus/ for tips, most of it is applicable to this fork as well. 

* Data is stored in a Data Volume Container. Latest Maven 3 and Zulu JDK 8 are preinstalled. 
* Nexus OSS: 2.11.3-01 
* 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 

###  Install data volume container and Nexus
```
sudo wget -qO- https://get.docker.com/ | sh
sudo docker pull cantara/nexus
sudo docker create -v /sonatype-work --name nexus-data cantara/nexus
sudo docker run -d -p 80:8081 --volumes-from nexus-data --name nexus20150708 cantara/nexus
```

### Test that service is running 
```
curl http://localhost:80/service/local/status
```


### Initial config, point your browser to http://localhost:80/
1. Review Post-Install Checklist and configure as appropriate 
  * http://books.sonatype.com/nexus-book/reference/install-sect-repoman-post-install.html
2. Set users and roles 
  * https://wiki.cantara.no/display/sysadm/Artifact+repository+user+and+role+management


### Copy data from host into data volume container 
Nexus container must be running. 
Copy files from /path/to/hostdir into /sonatype-work in container (which is a mounted data volume container). 
Change owner to nexus. 
Verify that everything looks like expected.

```
cd /path/to/hostdir
tar -cv * | sudo docker exec -i nexus20150714 tar x -C /sonatype-work/
sudo docker exec -i nexus20150714 chown nexus:nexus -R /sonatype-work
sudo docker exec -it nexus20150714 bash
```


{'fraction_non_alphanumeric': 0.10110893672537508, 'fraction_numerical': 0.02609262883235486, 'mean_word_length': 3.946774193548387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '4961700', 'n_tokens_mistral': 1060, 'n_tokens_neox': 909, 'n_words': 338}