<commit_before># Docker deb package builders
Collection of [Docker](https://www.docker.io/) images to build Debian/Ubuntu deb packages. All tested under a Ubuntu 14.04LTS host, but should work for any host that supports Docker.

- For each package a `Dockerfile` will build the OS image and create the deb package using [`checkinstall`](https://help.ubuntu.com/community/CheckInstall).
- The `extractdeb.sh` script will then:
	- run the image in a container
	- extract the deb package back to the host file system
	- destroy the container

When installing package on target system remember that dependent packages will need to be installed manually, they are not brought over by `checkinstall`.

**Notes for Ubuntu 14.04LTS:** The Docker package in the Ubuntu repositories is (somewhat inconveniently) named `docker.io` due to a clash with an existing package. All build scripts assume you have symlinked the `docker.io` binary like so:

```sh
$ sudo apt-get install docker.io
$ ln -sf /usr/bin/docker.io /usr/local/bin/docker
```

## Nginx
- **OS:** Ubuntu 14.04LTS
- **Version:** 1.6.1
- **Configure:** [nginx/resource/configure.sh](nginx/resource/configure.sh)

Create and extract package:
```sh
$ ./build.sh
# waiting... as Docker builds image

$ ./extractdeb.sh
# package extract from container
<commit_msg>Updated README.md notes to include lxc-docker<commit_after># Docker deb package builders
Collection of [Docker](https://www.docker.com) images to build Debian/Ubuntu deb packages. All tested under a Ubuntu 14.04LTS host, but should work for any host that supports Docker.

- For each package a `Dockerfile` will build the OS image and create the deb package using [`checkinstall`](https://help.ubuntu.com/community/CheckInstall).
- The `extractdeb.sh` script will then:
	- run the image in a container
	- extract deb package back to the host file system
	- destroy the container

When installing package on target system remember that dependent packages will need to be installed manually, they are not brought over by the `checkinstall` process.

**Notes for Ubuntu 14.04LTS:** The Docker package in the Ubuntu repositories is (somewhat inconveniently) named `docker.io` due to an existing package clash. All build scripts assume you have symlinked the `docker.io` binary like so:

```sh
$ sudo apt-get install docker.io
$ ln -sf /usr/bin/docker.io /usr/local/bin/docker
```

Alternatively (and probably a better idea), you can install the latest stable [`lxc-docker`](https://docs.docker.com/installation/ubuntulinux/#ubuntu-trusty-1404-lts-64-bit) package from Docker's own repository.

## Nginx
- **OS:** Ubuntu 14.04LTS
- **Version:** 1.6.1
- **Configure:** [nginx/resource/configure.sh](nginx/resource/configure.sh)

Create and extract package:
```sh
$ ./build.sh
# waiting... as Docker builds image

$ ./extractdeb.sh
# package extract from container

{'fraction_non_alphanumeric': 0.10209059233449477, 'fraction_numerical': 0.012543554006968641, 'mean_word_length': 4.366355140186916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, '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': '431338', 'n_tokens_mistral': 908, 'n_tokens_neox': 787, 'n_words': 348}