git init && first commit
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
.PHONY: build
|
||||
|
||||
gobuild:
|
||||
CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" \
|
||||
go build \
|
||||
-ldflags="-s -w" \
|
||||
-tags timetzdata \
|
||||
-v \
|
||||
-o build/app \
|
||||
./cmd/cert-exporter
|
||||
|
||||
dockerbuild: gobuild
|
||||
docker build -t esinio/traefik-cert-exporter:latest --no-cache .
|
||||
|
||||
dokcerpush: dockerbuild
|
||||
docker push esinio/traefik-cert-exporter:latest
|
||||
|
||||
dockerrun:
|
||||
docker run -itd \
|
||||
--restart=always \
|
||||
--name=traefik-cert-exporter \
|
||||
-v /srv/container/traefik/acme.json:/acme.json \
|
||||
-v /etc/traefik/certs:/certs \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
esinio/traefik-cert-exporter
|
Reference in New Issue
Block a user