prismagraphql/statsd-aws-docker

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

Homepage:

Size: 5

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Node StatsD docker image with AWS backend

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).

Build & Use

Local test setup

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 & A

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.