g0v/councilor-voter-guide — pull request #14 by y12studio (2014-10-09 09:26:30+00:00)
Title: elasticsearch docker g0v-voter-guide

ref #11

## Elasticsearch

Service

* kibana http://docker_host:8080/
* [plugin] elastic HQ http://docker_host:9200/_plugin/HQ/
* [plugin] elastic Head http://docker_host:9200/_plugin/head/

## RUN a prebuild image

Prerequirements :

* [boot2docker for OS X and Windows](https://github.com/boot2docker/boot2docker)
* [docker/docker](https://github.com/docker/docker)

[y12docker/g0v-voter-guide Repository | Docker Hub Registry - Repositories of Docker Images](https://registry.hub.docker.com/u/y12docker/g0v-voter-guide/)

Notice : the download of y12docker/g0v-voter-guide is a very large file size (1~Gb).

```
$ sudo docker pull y12docker/g0v-voter-guide:0.0.1
$ sudo docker run -p 8080:8080 -p 9200:9200 -d y12docker/g0v-voter-guide:0.0.1
```

![g0v-voter-guide-2](https://cloud.githubusercontent.com/assets/1840874/4573793/06c79ee0-4f96-11e4-9594-ee84ea775d1b.jpg)

## Build a docker image

Prerequirements :

* [boot2docker for OS X and Windows](https://github.com/boot2docker/boot2docker)
* [docker/docker](https://github.com/docker/docker)
* [jpetazzo/nsenter](https://github.com/jpetazzo/nsenter)

BUILD

```
$ cd utils/elk
$ bash gc2mt.sh -t
$ docker ps
$ bash gc2mt.sh -u testimage:v1
$ bash gc2mt.sh -s
```

RUN

```
$ docker run -p 8080:8080 -p 9200:9200 -d testimage:v1
```