-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
19 lines (16 loc) · 931 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
GOLANG_DOCKER_IMAGE := golang:1.19
run:
@test -n "$(ENV_FILE_PATH)" || (echo "ENV_FILE_PATH is not set" ; exit 1)
docker run -t --rm -u $$(id -u):$$(id -g) --env-file $(ENV_FILE_PATH) -v $$(pwd):/data/ -w /data/ \
-e GOCACHE=/data/.cache/go-build \
-e GOPATH=/data/.cache/mod \
$(GOLANG_DOCKER_IMAGE) go run .
gen-api-client:
docker run -t --rm -u $$(id -u):$$(id -g) \
-v $$(pwd):/workspace -w /workspace \
quay.io/goswagger/swagger generate client -f pkg/client/platformservice/swagger.json \
--target pkg/client/platformservice/openapi2 \
--operation=updateLootBoxPluginConfig_1 --operation=deleteLootBoxPluginConfig_1 \
--model=RevocationPluginConfigUpdate --model=RevocationPluginConfigInfo --model=ValidationErrorEntity \
--model=AppConfig --model=BaseCustomConfig --model=PublicCustomConfigInfo --model=BaseTLSConfig \
--model=FieldValidationError --model=ErrorEntity