This file contains hidden or 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
FROM node:6.9.5 | |
RUN mkdir -p /code | |
WORKDIR /code | |
ADD . /code | |
RUN npm set progress=false && \ | |
npm install -s --no-progress && \ | |
npm run build && \ | |
npm prune --production | |
CMD [ "npm", "start" ] | |
EXPOSE 3000 |
This file contains hidden or 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
NGINX_CONTAINER_NAME := nginx-test | |
NGINX_CONTAINER_IMAGE := nginx:1.11.12-alpine | |
TOOLBOX_CONTAINER_NAME := docker-toolbox | |
TOOLBOX_CONTAINER_IMAGE := sjourdan/toolbox | |
NETWORK := test-network | |
.PHONY : check clean | |
check: | |
-@ docker network create $(NETWORK) |
This file contains hidden or 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
# Curl command to create new annotation | |
curl -H "Content-Type: application/json" -X POST \ | |
-d '{"tags":["deployment","Environment"],"text":"$serviceName was deployed to $environment with commit ID $commitID"}' \ | |
http://grafana.qa.lonelyplanet.com/api/annotations | |
# Response | |
HTTP/1.1 200 | |
Content-Type: application/json | |
{"message":"Annotation added"} |
OlderNewer