-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_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" | ||
``` |