<commit_before>Docker NodeJS Example with Docker Swarm
=====================

### Prerequisites

- Docker CS Engine 1.11.2-cs3
- DTR 2.0.1 and UCP 1.1.1
- Interlock 1.2

## Setup UCP and DTR

Set up UCP and DTR per instructions found here: https://github.com/yongshin/vagrant.

## Create DTR repo

```
docker-datacenter/docker-node-app
```

## Build Docker Image
```  
cd ~/docker-node-app
docker build -t yongshin/docker-node-app .
```

## Configure Interlock for Swarm
```
export SWARM_HOST=tcp://${UCP_IPADDR}:3376
```<commit_msg>changing readme<commit_after>Docker NodeJS Example with Docker Swarm
=====================

### Prerequisites

- Docker CS Engine 1.11.2-cs4
- DTR 2.0.3 and UCP 1.1.3
- Interlock 1.2

This docker compose project is based on the Docker Service Discovery and Load Balancing Reference architecture found here: https://success.docker.com/Datacenter/Apply/Reference_Architecture%3A_Service_Discovery_and_Load-Balancing_with_Docker_Universal_Control_Plane_(UCP) 

## Setup UCP and DTR

Set up UCP and DTR per instructions found here: https://github.com/yongshin/vagrant.

## Create DTR repo

```
docker-datacenter/docker-node-app
```

## Build Docker Image
```  
cd ~/docker-node-app
docker build -t yongshin/docker-node-app .
```

## Configure Interlock for Swarm
```
export SWARM_HOST=tcp://${UCP_IPADDR}:2376
```
{'fraction_non_alphanumeric': 0.1482861400894188, 'fraction_numerical': 0.02608047690014903, 'mean_word_length': 4.481632653061224, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '1385154', 'n_tokens_mistral': 518, 'n_tokens_neox': 459, 'n_words': 122}