Coder Social home page Coder Social logo

consul-demo's Introduction

Consul Demo

This is a simple demo and introduction to consul.

Setup

Setup assumes a Mac running a modern version of OS X

  1. Install boot2docker
  2. Install docker-compose:
pip install docker-compose
  1. Clone this repo, run consul
git clone [email protected]:micahhausler/consul-demo.git
cd consul-demo/
docker-compose build
docker-compose up

See the UI

http://192.168.59.103:8500/ui/

Interact

Check out the IPython notebook Consul by running:

pip install -r python_app/requirements.txt
ipython notebook --no-browser

and navigate to /notebooks/Consul.ipnb

Query the DNS API

You can query the consul DNS API once your containers are up by running:

dig @$(boot2docker ip) PythonApp.service.consul +tcp

consul-demo's People

Contributors

krakowski avatar micahhausler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

consul-demo's Issues

app2 is not monitored

It seems like the health of the app2 service is not monitored properly. Even when I stop the container it's running in the consul-ui shows no problems.
As a matter of fact I don't see a way for consul to see that problem - it seems like port 8081 is not mentioned anywhere. Am I wrong?

Link between containers issue

$ docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): darwin/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64
$ docker-compose --version
docker-compose 1.2.0
Creating 20150826consultemplate_consul2_1...
Creating 20150826consultemplate_consul3_1...
Attaching to 20150826consultemplate_consul1_1, 20150826consultemplate_consul3_1
...
consul3_1 | ==> Joining cluster...
consul3_1 | ==> lookup consul1: no such host
20150826consultemplate_consul3_1 exited with code 1

As is after checkouting the project, I can not bring the Consul cluster UP.

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.