<commit_before>
# ddocker [WIP]

**Distributed Docker** is a handy CLI tool for building a docker container on an [Apache Mesos](mesos.apache.org) Cluster.

## Building ddocker

### Dependencies

You'll need to have the following dependencies installed to compile;

- Python 2.7
- Protocol Buffers (`brew install protobuf`)
- Automake

### Compiling with `make`

Building ddocker is easy, it uses the [pants](pantsbuild.github.io) build system from Twitter, and compiles into encapsulated [Python Executables](pex.readthedocs.org).

```shell
$ make dist
```

The make command above will generate an executable inside the `dist/` folder. This is ddocker.

## Building Images

### 1. Upload the executor

To enable mesos to build the image and interact with ddocker you'll need to upload the build `dist/ddocker.pex` file somewhere mesos can get to it. This could either be on each slave, in S3 or HDFS. Once you've done that, specify the path using the `--executor-uri` argument.
<commit_msg>Broken links and extra bits<commit_after>
# ddocker [WIP]

**Distributed Docker** is a handy CLI tool for building a docker container on an [Apache Mesos](http://mesos.apache.org) Cluster.

## Building ddocker

### Dependencies

You'll need to have the following dependencies installed to compile;

- Python 2.7
- Protocol Buffers (`brew install protobuf`)
- Automake

#### Mesos Slave Dependencies

- If you're using any current stable version of mesos, with standard isolation, you'll need to ensure `lxc-docker` is installed (but not required to be running) on each mesos slave.
- If you happen to be running a mesos cluster with [Deimos](https://github.com/mesosphere/deimos), this tool should work right out of the box, automatically launching within a pre-built docker image (with docker installed). *Yo dawg.*

### Compiling with `make`

Building ddocker is easy, it uses the [pants](http://pantsbuild.github.io) build system from Twitter, and compiles into encapsulated [Python Executables](http://pex.readthedocs.org).

```shell
$ make dist
```

The make command above will generate an executable inside the `dist/` folder. This is ddocker.

## Building Images

### 1. Upload the executor

To enable mesos to build the image and interact with ddocker you'll need to upload the build `dist/ddocker.pex` file somewhere mesos can get to it. This could either be on each slave, in S3 or HDFS. Once you've done that, specify the path using the `--executor-uri` argument.

{'fraction_non_alphanumeric': 0.08759124087591241, 'fraction_numerical': 0.0032441200324412004, 'mean_word_length': 4.457964601769912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2781493', 'n_tokens_mistral': 741, 'n_tokens_neox': 679, 'n_words': 334}