-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
50 lines (38 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
DOCKER_REGISTRY ?= docker.io/
SHORT_NAME=logviz
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
IMAGE_PREFIX ?= vincentdesmet
include versioning.mk
PAUSE_IMAGE ?= gcr.io/google_containers/pause-amd64:3.0
build: docker-build
up: docker-up
down: docker-down
reload: docker-reload
init: docker-init
logs: docker-logs
clean: docker-clean
puwh: docker-push
attach: docker-exec
get-pause:
-mkdir -p bin/
docker run -d ${PAUSE_IMAGE}
docker cp `docker ps -q -f ancestor=${PAUSE_IMAGE} -n=1`:/pause ./bin/pause
docker stop `docker ps -q -f ancestor=${PAUSE_IMAGE} -n=1`
docker rm `docker ps -q -f ancestor=${PAUSE_IMAGE} -n=1`
docker-init:
docker-compose -p ${SHORT_NAME} run fluentd dockerize -wait tcp://es:9200 -timeout 60s curl -sXPUT http://es:9200/_template/logstash --upload-file /usr/share/elasticsearch-template.json
docker-build:
@#docker build --rm=true --tag=${IMAGE} -f Dockerfile .
@#docker tag ${IMAGE} ${MUTABLE_IMAGE}
docker-reload:
docker-compose -p ${SHORT_NAME} kill -s SIGHUP fluentd
docker-logs:
docker-compose -p ${SHORT_NAME} logs -f fluentd
docker-clean:
docker volume rm ${SHORT_NAME}_esdata
docker-up:
docker-compose -p ${SHORT_NAME} -f docker-compose.yaml up -d
docker-down:
docker-compose -p ${SHORT_NAME} -f docker-compose.yaml down
docker-exec:
docker exec -it awsdbr_parser_1 /bin/bash