-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
33 lines (26 loc) · 828 Bytes
/
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
# Makefile
IMAGE_NAME=quay.io/openshift-logging/log-stressor:latest
all: deploy
deploy:
./deploy_to_openshift.sh
lint:
go get -u golang.org/x/lint/golint
golint go/*
build: lint build-log-stressor build-check-logs-sequence
build-check-logs-sequence:
go env -w GO111MODULE=auto
rm -f check-logs-sequence.zip
rm -f check-logs-sequence
go get -u github.com/papertrail/go-tail
go get -u github.com/sirupsen/logrus
go build -ldflags "-s -w" go/check-logs-sequence/check-logs-sequence.go
build-log-stressor:
go env -w GO111MODULE=auto
rm -f log-stressor.zip
rm -f log-stressor
cd go/log-stressor && go build -ldflags "-s -w" log-stressor.go
mv go/log-stressor/log-stressor .
image:
podman build -t $(IMAGE_NAME) .
test: build
./check-logs-sequence -c 1 -l info -s 0 -f go/check-logs-sequence/example.stress.log