Skip to content

Instantly share code, notes, and snippets.

@logicalparadox
Last active August 29, 2015 14:09

Revisions

  1. logicalparadox revised this gist Nov 19, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@

    - clone this gist
    - `fig up -d`
    - navigate to [localhost:5601](http://localhost:5601)
    - navigate to [localhost:5601](http://localhost:5601) (or the ip of boot2docker)

    ### Dockerfiles

  2. logicalparadox created this gist Nov 19, 2014.
    6 changes: 6 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    FROM logicalparadox/kibana:4.0.0-BETA2

    ADD run.sh /opt/
    RUN chmod +X /opt/run.sh

    CMD [ "/opt/run.sh" ]
    19 changes: 19 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    ### Requirements

    - docker v1.3
    - fig v1.0

    ### Instructions

    - clone this gist
    - `fig up -d`
    - navigate to [localhost:5601](http://localhost:5601)

    ### Dockerfiles

    - logicalparadox/elasticsearch
    - [dockerfile](https://github.com/logicalparadox/.dockerfiles/tree/master/elasticsearch/stable)
    - [docker.io](https://registry.hub.docker.com/u/logicalparadox/elasticsearch/)
    - logicalparadox/kibana
    - [dockerfile](https://github.com/logicalparadox/.dockerfiles/tree/master/kibana/unstable)
    - [docker.io](https://registry.hub.docker.com/u/logicalparadox/kibana/)
    12 changes: 12 additions & 0 deletions fig.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    elasticsearch:
    image: logicalparadox/elasticsearch:1.4.0
    ports:
    - "9200:9200"
    - "9300:9300"

    kibana:
    build: .
    links:
    - elasticsearch
    ports:
    - "5601:5601"
    17 changes: 17 additions & 0 deletions run.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/bin/bash

    ELASTICSEARCH_HOST=$ELASTICSEARCH_1_PORT_9200_TCP_ADDR
    ELASTICSEARCH_PORT=$ELASTICSEARCH_1_PORT_9200_TCP_PORT

    cat > /opt/kibana/config/kibana.yml << EOL
    port: 5601
    host: "0.0.0.0"
    elasticsearch: "http://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}"
    kibanaIndex: ".kibana"
    defaultAppId: "discover"
    request_timeout: 60
    shard_timeout: 30000
    verifySSL: false
    EOL

    exec /opt/kibana/bin/kibana