mirror of https://github.com/vernonkeenan/lib
123 lines
3.4 KiB
Makefile
123 lines
3.4 KiB
Makefile
VERNONKEENAN_BUILD_ENV ?= dev
|
|
VERNONKEENAN_GELF_URI ?= udp://packrat.noc.tnxs.net:12201
|
|
VERNONKEENAN_REGISTRY_PRIV ?= hub.tnxs.net
|
|
VERNONKEENAN_REGISTRY_PUB ?= docker.io
|
|
VERNONKEENAN_REPO_NAME = lib
|
|
VERNONKEENAN_VERSION ?= 0.0.1
|
|
|
|
.PHONY: swagger
|
|
|
|
swagger:
|
|
cp ../auth/swagger/auth-vernonkeenan.yaml ./swagger
|
|
cp ../crm/swagger/crm-vernonkeenan.yaml ./swagger
|
|
cp ../devops/swagger/devops-vernonkeenan.yaml ./swagger
|
|
cp ../stash/swagger/stash-vernonkeenan.yaml ./swagger
|
|
cp ../sf-gate/swagger/sf-gate-vernonkeenan.yaml ./swagger
|
|
cp ../research/swagger/research-vernonkeenan.yaml ./swagger
|
|
cp ../workflow/swagger/workflow-vernonkeenan.yaml ./swagger
|
|
#
|
|
rm -rf api
|
|
#
|
|
# generate auth0 client
|
|
#
|
|
mkdir -p api/auth0
|
|
swagger generate client \
|
|
--log-output=./swagger/logs/generate-auth0-client.log \
|
|
--copyright-file=./build/COPYRIGHT \
|
|
--name=auth0 \
|
|
--spec=./swagger/auth0.yaml \
|
|
--target=./api/auth0 \
|
|
--client-package=auth0-client \
|
|
--model-package=auth0-models
|
|
#
|
|
# generate auth client
|
|
#
|
|
mkdir api/auth
|
|
swagger-new generate client \
|
|
--log-output=./swagger/logs/generate-auth-client.log \
|
|
--copyright-file=./build/COPYRIGHT \
|
|
--name=auth \
|
|
--spec=./swagger/auth-vernonkeenan.yaml \
|
|
--target=./api/auth \
|
|
--client-package=auth-client \
|
|
--model-package=auth-models \
|
|
--principal=app.User
|
|
#
|
|
# generate crm client
|
|
#
|
|
mkdir api/crm
|
|
swagger-new generate client \
|
|
--log-output=./swagger/logs/generate-crm-client.log \
|
|
--copyright-file=./build/COPYRIGHT \
|
|
--name=crm \
|
|
--spec=./swagger/crm-vernonkeenan.yaml \
|
|
--target=./api/crm \
|
|
--client-package=crm-client \
|
|
--model-package=crm-models \
|
|
--principal=app.User
|
|
#
|
|
# generate devops client
|
|
#
|
|
mkdir api/devops
|
|
swagger-new generate client \
|
|
--log-output=./swagger/logs/generate-devops-client.log \
|
|
--copyright-file=./build/COPYRIGHT \
|
|
--name=devops \
|
|
--spec=./swagger/devops-vernonkeenan.yaml \
|
|
--target=./api/devops \
|
|
--client-package=devops-client \
|
|
--model-package=devops-models \
|
|
--principal=app.User
|
|
#
|
|
# generate stash client
|
|
#
|
|
mkdir api/stash
|
|
swagger-new generate client \
|
|
--log-output=./swagger/logs/generate-stash-client.log \
|
|
--copyright-file=./build/COPYRIGHT \
|
|
--name=stash \
|
|
--spec=./swagger/stash-vernonkeenan.yaml \
|
|
--target=./api/stash \
|
|
--client-package=stash-client \
|
|
--model-package=stash-models \
|
|
--principal=app.User
|
|
#
|
|
# generate sfgate client
|
|
#
|
|
mkdir api/sfgate
|
|
swagger-new generate client \
|
|
--log-output=./swagger/logs/generate-sfgate-client.log \
|
|
--copyright-file=./build/COPYRIGHT \
|
|
--name=sfgate \
|
|
--spec=./swagger/sf-gate-vernonkeenan.yaml \
|
|
--target=./api/sfgate \
|
|
--client-package=sfgate-client \
|
|
--model-package=sfgate-models \
|
|
--principal=app.User
|
|
#
|
|
# generate research client
|
|
#
|
|
mkdir api/research
|
|
swagger-new generate client \
|
|
--log-output=./swagger/logs/generate-research-client.log \
|
|
--copyright-file=./build/COPYRIGHT \
|
|
--name=research \
|
|
--spec=./swagger/sf-gate-vernonkeenan.yaml \
|
|
--target=./api/research \
|
|
--client-package=research-client \
|
|
--model-package=research-models \
|
|
--principal=app.User
|
|
#
|
|
# generate workflow client
|
|
#
|
|
mkdir api/workflow
|
|
swagger-new generate client \
|
|
--log-output=./swagger/logs/generate-workflow-client.log \
|
|
--copyright-file=./build/COPYRIGHT \
|
|
--name=workflow \
|
|
--spec=./swagger/workflow-vernonkeenan.yaml \
|
|
--target=./api/workflow \
|
|
--client-package=workflow-client \
|
|
--model-package=workflow-models \
|
|
--principal=app.User
|