-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (26 loc) · 910 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
reset:
rm -rf node_modules
clean:
rm -f the-collector
rm -rf client/dist
rm -rf the-collector-package
rm -f the-collector.zip
install:
npm install
build:
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o the-collector .
npm run build
package:
mkdir -p ./the-collector-package/client/dist
cp ./the-collector ./the-collector-package
cp -vr ./client/dist ./the-collector-package/client
cd the-collector-package && zip -ro ../the-collector.zip * && cd ..
dockerize:
docker build -t richardleterrier/the-collector:build .
publish:
docker tag richardleterrier/the-collector:build richardleterrier/the-collector:$(VERSION)
docker tag richardleterrier/the-collector:build richardleterrier/the-collector:latest
docker push richardleterrier/the-collector:$(VERSION)
docker push richardleterrier/the-collector:latest
test:
go test -race github.com/richardlt/the-collector/server/... -v