Name: statsd-aws-docker
Owner: Prisma
Description: StatsD (node) with aws backend docker image.
Created: 2017-07-06 19:33:07.0
Updated: 2017-08-03 11:54:23.0
Pushed: 2017-08-06 12:18:09.0
Size: 5
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Our docker image with preinstalled statsd (node) + AWS backend for statsd.
Uses our fork of the AWS backend for statsd, which allows us to use ENV vars instead of baking AWS credentials and region into the image (+ it has better logging).
cp config.js.example config.js
make build-local
(dev) or make build
(prod)make push
to push the latest build to dockerhubgraphcool/graphcool-statsd-aws:latest
If you want to start the container locally and connect it to AWS, simply inject the env vars into the container, for example via a .dockerenv file that has key=value pairs: docker run -it --env-file=.dockerenv -p 8125:<mapping> graphcool/graphcool-statsd-aws:latest
If you just want a local statsd container without any AWS connection: make build-local
and spin up that image.
Note that network=host doesn't work on OSX! You need to map the port.
Q: Why the –no-cache on build? A: Docker caches the npm install of the git repo. To fetch the latest we need to disable caching, unfortunately. The build is still fairly fast, though.