RouxAntoine
8ec4c49997
broken due to https://github.com/spring-cloud/spring-cloud-config/issues/2252
41 lines
868 B
Makefile
41 lines
868 B
Makefile
.PHONY: build test
|
|
|
|
GRADLE_BIN=./gradlew
|
|
BASIC_AUTH="user:b3956c50-2e1e-4426-aaca-6b09f7cc4808"
|
|
SERVER_CONFIG=localhost:8090
|
|
|
|
setup:
|
|
sdk install springboot 2.7.9
|
|
spring install org.springframework.cloud:spring-cloud-cli:2.2.4.RELEASE
|
|
|
|
build:
|
|
# build without executing test
|
|
$(GRADLE_BIN) build -x test
|
|
|
|
test:
|
|
$(GRADLE_BIN) test
|
|
|
|
run-client:
|
|
$(GRADLE_BIN) client:bootRun
|
|
|
|
run-server:
|
|
$(GRADLE_BIN) server:bootRun
|
|
|
|
curl-server:
|
|
curl -s -u $(BASIC_AUTH) $(SERVER_CONFIG)/client/development |jq
|
|
|
|
encrypt-cli:
|
|
spring encrypt 'Hello world 2' --key toto
|
|
|
|
encrypt-server:
|
|
curl -s -u $(BASIC_AUTH) $(SERVER_CONFIG)/encrypt/client/development --data-urlencode "Hello world 2"
|
|
|
|
client-development-refresh:
|
|
curl -s -u $(BASIC_AUTH) $(SERVER_CONFIG)/client/development/refresh |jq
|
|
|
|
curl-client:
|
|
curl -s localhost:8080/v1/message
|
|
|
|
client-env:
|
|
curl -s localhost:8080/env
|