@@ -7,14 +7,17 @@ GOFLAGS := -trimpath
77CGO_ENABLED := 1
88CGO := CGO_ENABLED=$(CGO_ENABLED )
99
10+ DOCKER_DEPLOYMENT ?= sh docker/deployment.sh
11+
1012VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
1113COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
1214DATE := $(shell date -u '+% Y-% m-% dT% H:% M:% SZ')
1315LDFLAGS := -X $(MODULE ) /internal/buildinfo.Version=$(VERSION ) \
1416 -X $(MODULE ) /internal/buildinfo.Commit=$(COMMIT ) \
1517 -X $(MODULE ) /internal/buildinfo.Date=$(DATE )
1618
17- .PHONY : all build build-go build-systemtest-server build-integration-server docs-build test test-fast test-race test-system test-integration test-ui-e2e test-docker-entrypoint lint fmt check verify-e2e verify-fast verify-norace verify-race clean run ui-install ui-build ui-dev ui-e2e-install
19+ .PHONY : all build build-go build-systemtest-server build-integration-server docs-build test test-fast test-race test-system test-integration test-ui-e2e test-docker-entrypoint test-docker-deployment lint fmt check verify-e2e verify-fast verify-norace verify-race clean run ui-install ui-build ui-dev ui-e2e-install
20+ .PHONY : docker-init docker-up docker-verify docker-down docker-status docker-logs docker-password
1821
1922all : build
2023
@@ -66,6 +69,30 @@ test-ui-e2e:
6669test-docker-entrypoint :
6770 sh docker/entrypoint.test.sh
6871
72+ test-docker-deployment :
73+ sh docker/deployment.test.sh
74+
75+ docker-init :
76+ @$(DOCKER_DEPLOYMENT ) init
77+
78+ docker-up :
79+ @$(DOCKER_DEPLOYMENT ) up
80+
81+ docker-verify :
82+ @$(DOCKER_DEPLOYMENT ) verify
83+
84+ docker-down :
85+ @$(DOCKER_DEPLOYMENT ) down
86+
87+ docker-status :
88+ @$(DOCKER_DEPLOYMENT ) status
89+
90+ docker-logs :
91+ @$(DOCKER_DEPLOYMENT ) logs
92+
93+ docker-password :
94+ @$(DOCKER_DEPLOYMENT ) password
95+
6996lint :
7097 @command -v golangci-lint > /dev/null 2>&1 || { echo " golangci-lint not found" ; exit 1; }
7198 $(CGO ) golangci-lint run
0 commit comments