-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 940 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
GOCMD=go
GOBUILD=$(GOCMD) build
GOHOSTOS=$(strip $(shell $(GOCMD) env get GOHOSTOS))
TAG ?= $(shell git describe --tags)
COMMIT ?= $(shell git describe --always)
BUILD_DATE ?= $(shell date -u +%m/%d/%Y)
MORGUE=bin/morgue
all: target
clean:
rm -rf ${MORGUE}
target:
GOARCH=amd64 GOOS=linux $(GOBUILD) -ldflags "-X main.version=$(TAG) -X main.commit=$(COMMIT) -X main.date=$(BUILD_DATE)" -o ${MORGUE} github.com/zawachte/morgue
influxd:
wget https://dl.influxdata.com/influxdb/releases/influxdb2-2.2.0-linux-amd64.tar.gz
tar xvzf influxdb2-2.2.0-linux-amd64.tar.gz
cp influxdb2-2.2.0-linux-amd64/influxd bin/
rm -r influxdb2-2.2.0-linux-amd64
rm influxdb2-2.2.0-linux-amd64.tar.gz
telegraf:
wget https://dl.influxdata.com/telegraf/releases/telegraf-1.23.3_linux_amd64.tar.gz
tar xvzf telegraf-1.23.3_linux_amd64.tar.gz
cp ./telegraf-1.23.3/usr/bin/telegraf bin/
rm -r telegraf-1.23.3
rm telegraf-1.23.3_linux_amd64.tar.gz