-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 692 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 692 Bytes
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
linter:
- golangci-lint run
go-build:
GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o makeless-server
docker-build:
docker build -t makeless/server -f Dockerfile .
docker-run:
docker run -d \
--restart always \
--name makeless \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v ~/makeless:/home/makeless \
-v ~/certs:/home/certs:ro \
-e MAX_SIZE=32 \
-e TOKEN="RANDOM-TOKEN-HERE" \
makeless/server
docker-watchtower:
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
v2tec/watchtower makeless
build-run:
make go-build
make docker-build
make docker-run