diff --git a/README.md b/README.md index c9cd95b..bb76181 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,31 @@ # stentor-proxy 📣 Route 53 and API Gateway are currently incompatible so this is used as a temporary solution until they make them sing in key. + +# Administrative stuff + +This uses Docker to create the containers for each proxy. A base image can be created from the `Dockerfile` located in the project root. Then region specific images can be created with the `Dockerfile` found in the `regional` directory. The `Dockerfile` found in the `regional` directory is expecting an image tagged with `xappmedia/proxy`. + + + +Example: + +### Base build: +``` +docker build -t xappmedia/proxy . +``` + +### Regional build: + +``` +docker build -t xappmedia/proxy/us-east-1 --build-arg domain= ./regional +``` + +The docker images can be tested by: + +``` +docker run -p 8080:8080 -d xappmedia/proxy/us-east-1 +curl -i localhost:8080 + +*** output *** +"us-east-1" +``` \ No newline at end of file