GithubHelp home page GithubHelp logo

isabella232 / docker-elasticsearch-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 18f/docker-elasticsearch

0.0 0.0 0.0 24 KB

A Dockerfile and supporting scripts used to build an Elasticsearch 1.5 image which exposes environment variables for basic authentication at runtime.

Shell 21.74% Ruby 78.26%

docker-elasticsearch-1's Introduction

docker-elasticsearch

Description:

Elasticsearch on Ubuntu with several useful plugins and a small script which configures the http-basic plugin with credentials provided via environment variables on the first run. Optionally persists Elasticsearch logs and data to a volume mounted at /data.

Plugins:

Usage:

This container image was created for use with the cf-containers-broker for Cloud Foundry, but it should run just fine standalone or alongside any orchestrator capable of inserting environment variables.

Launch a container from the image by providing username, password and an optional volume where the Elasticsearch data and logs will be stored.

sudo docker run \
  && -e "ES_USERNAME=username" \
  && -e "ES_PASSWORD=password" \
  && --rm \
  && --name es-test \
  && -v /home/ubuntu/test:/data \
  && ozzyjohnson/elasticsearch

Test the running container by creating an index with the provided credentials.

curl -XPUT -v --user username:password 'CONTAINER_IP_ADDRESS:9200/test'

docker-elasticsearch-1's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.