2020-04-08 08:56:42 +02:00
|
|
|
build: vendor
|
|
|
|
CGO_ENABLED=0 go build -mod=vendor -v -o bin/server ./cmd/server
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -v -race ./...
|
|
|
|
|
|
|
|
release:
|
|
|
|
@$(SHELL) ./misc/script/release.sh
|
|
|
|
|
|
|
|
vendor:
|
|
|
|
go mod vendor
|
|
|
|
|
|
|
|
tidy:
|
|
|
|
go mod tidy
|
|
|
|
|
|
|
|
watch:
|
|
|
|
modd
|
|
|
|
|
|
|
|
lint:
|
|
|
|
golangci-lint run --enable-all
|
|
|
|
|
2020-04-24 09:27:07 +02:00
|
|
|
up:
|
|
|
|
docker-compose up --build
|
|
|
|
|
|
|
|
down:
|
|
|
|
docker-compose down -v --remove-orphans
|
2020-04-08 08:56:42 +02:00
|
|
|
|
2020-05-20 13:45:33 +02:00
|
|
|
create-default-client:
|
|
|
|
docker-compose exec \
|
|
|
|
-e HYDRA_URL=http://localhost:4445 \
|
|
|
|
hydra \
|
|
|
|
hydra clients create \
|
|
|
|
-c http://localhost:3002/oauth2/callback \
|
|
|
|
--post-logout-callbacks http://localhost:3002
|
|
|
|
|
2020-04-08 08:56:42 +02:00
|
|
|
|
2020-04-24 09:27:07 +02:00
|
|
|
list-clients:
|
2020-05-20 13:45:33 +02:00
|
|
|
docker-compose exec \
|
|
|
|
-e HYDRA_URL=http://localhost:4445 \
|
|
|
|
hydra \
|
|
|
|
hydra clients list
|
|
|
|
|
|
|
|
hydra-interactive:
|
|
|
|
docker-compose exec \
|
|
|
|
-e HYDRA_URL=http://localhost:4445 \
|
|
|
|
hydra \
|
|
|
|
/bin/sh
|
2020-04-24 09:27:07 +02:00
|
|
|
|
2020-04-08 08:56:42 +02:00
|
|
|
clean:
|
|
|
|
rm -rf release
|
|
|
|
rm -rf data
|
|
|
|
rm -rf vendor
|
|
|
|
rm -rf bin
|
|
|
|
|
|
|
|
.PHONY: lint watch build vendor tidy release
|