Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into GorillaStack-docker
  • Loading branch information
abutaha committed Dec 10, 2017
2 parents c6610db + 004b718 commit 25d27a6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.8

ENV PORT_NUM 9200
WORKDIR /go/src/app
COPY . .

RUN go-wrapper download
RUN go-wrapper install
RUN go build -o aws-es-proxy

EXPOSE ${PORT_NUM}

CMD ["./aws-es-proxy", "-h"]
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,20 @@ Usage of ./aws-es-proxy:
Print user requests
```

## Docker

There is a docker image avaiable for aws-es-proxy. There is an image on docker hub called `gorillastack/aws-es-proxy`. To run the image:

```sh
# Prints usage info (-h)
docker run --rm -it gorillastack/aws-es-proxy

# Runs with custom command/args
docker run --rm -it gorillastack/aws-es-proxy ./aws-es-proxy -endpoint https://dummy-host.ap-southeast-2.es.amazonaws.com
```

To expose a port number other than the default 9200, pass an environment variable of `PORT_NUM` to docker with the port number you wish to expose for your service.

## Using HTTP Clients

After you run *aws-es-proxy*, you can now open your Web browser on [http://localhost:9200](http://localhost:9200). Everything should be working as you have your own instance of ElasticSearch running on port 9200.
Expand Down

0 comments on commit 25d27a6

Please sign in to comment.