-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (45 loc) · 1003 Bytes
/
Makefile
File metadata and controls
57 lines (45 loc) · 1003 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
REGISTRY ?= docker.io
IMAGE ?= bborbe/teamvault
VERSION ?= 0.11.8-fix
default: build
.PHONY: precommit
precommit: check
.PHONY: test
test: check
.PHONY: check
check:
shellcheck files/entrypoint.sh
.PHONY: build
build:
DOCKER_BUILDKIT=1 \
docker build \
--no-cache \
--rm=true \
--platform=linux/amd64 \
--build-arg VERSION=$(VERSION) \
--build-arg BUILD_GIT_VERSION=$$(git describe --tags --always --dirty) \
--build-arg BUILD_GIT_COMMIT=$$(git rev-parse --short HEAD) \
--build-arg BUILD_DATE=$$(date -u +%Y-%m-%dT%H:%M:%SZ) \
-t $(REGISTRY)/$(IMAGE):$(VERSION) \
-f Dockerfile .
.PHONY: upload
upload:
docker push $(REGISTRY)/$(IMAGE):$(VERSION)
.PHONY: clean
clean:
docker rmi $(REGISTRY)/$(IMAGE):$(VERSION) || true
.PHONY: run
run:
docker-compose up
.PHONY: start
start:
docker-compose up -d
.PHONY: stop
stop:
docker-compose down
.PHONY: logs
logs:
docker-compose logs -f
.PHONY: superuser
superuser:
docker-compose exec teamvault teamvault plumbing createsuperuser