From e35c9f79898afcbcfcedc440e46cfe5f559209ca Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Sun, 28 Dec 2014 19:07:40 +1000 Subject: [PATCH 1/3] Adds travis. --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..14cbb17 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: go +go: + - 1.3 + +script: + - go test -v ./... + From a2ffc3eb644d507bda76cde5665c638280f67db9 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Sun, 28 Dec 2014 19:10:55 +1000 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6f0e8a3..b48af07 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Marco +Marco [![Build Status](https://travis-ci.org/nickschuch/marco.svg?branch=master)](https://travis-ci.org/nickschuch/marco) ===== A simple proxy for Docker containers. From 25ba3e453d8ac6fadcebb2d0fb275bba2722a648 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Sun, 28 Dec 2014 19:17:27 +1000 Subject: [PATCH 3/3] Update README.md --- README.md | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b48af07..be4bfde 100644 --- a/README.md +++ b/README.md @@ -7,15 +7,26 @@ A simple proxy for Docker containers. ### Example -Running on the domain **example.com** - -I have the containers named: -* **container1** - HTTP exposed on port 80 -* **container2** - HTTP exposed on port 8983 - -The router will proxy these using the following hosts: -* **container1.example.com** -* **container2.example.com** +I have the containers: +* **container1** + * Port 80 exposed + * Environment variable DOMAIN set to _www.example.com_ +* **container2** + * Port 80 exposed + * Environment variable DOMAIN set to _www.example.com_ +* **container3** + * Port 8983 exposed + * Environment variable DOMAIN set to _www.foobar.com_ +* **container4** + * Port 80 exposed +* **container5** + * Environment variable DOMAIN set to _www.baz.com_ + +This proxy will setup the following routes: +* A "random" load balanced connection between _container1_ and _container2_ +* A proxy connection to _container3_ +* No proxy connection will be setup for _container4_ given it doesn't have a DOMAIN environment variable set. +* No proxy connection will be setup for _container5_ given it doesn't have a Port exposedt. ### How to run @@ -62,9 +73,6 @@ _I will post a video very soon..._ ### Roadmap -* Test suite - * Unit tests - * Functional tests * Http auth (maybe) * Logging * Error handling