-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommonDescriptor.txt
83 lines (55 loc) · 2.58 KB
/
CommonDescriptor.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# AMBIENTE
JDK 21
<quarkus.platform.version>3.10.0</quarkus.platform.version>
# Environment Variable
QUARKUS_PROFILE=PROFILE_NAME
"A profile aware file is only loaded if the unprofiled application.properties is also available in the same location and the file extension matches between the files.
This is required to keep a consistent loading order and pair all the resources together."
# JUnit
"src\test\resources\application.properties"
# swagger-ui API:
http://localhost:8080/q/swagger-ui/
# COMANDOS KEYCLOAK
# Creating an optimized Keycloak build
"If you run a build before the startup, only a subset of options is available to the build command.
The restriction is due to the build options getting persisted into an optimized Keycloak image."
kc build --help
# Set the build option for the PostgreSQL database vendor using the build command
kc build --db=postgres
# Set the runtime configuration options for postgres in the conf/keycloak.conf file.
db=postgres
db-username=postgres
db-password=postgres
db-url=jdbc:postgresql://localhost:5432/keycloak
health-enabled=true
metrics-enabled=true
http-port=7280
#https-certificate-file=${kc.home.dir}conf/server.crt.pem
#https-certificate-key-file=${kc.home.dir}conf/server.key.pem
#proxy=reencrypt
#spi-sticky-session-encoder-infinispan-should-attach-route=false
hostname=localhost
log-level=INFO
# Start the server with the optimized parameter.
# Creating the initial admin user
"You can create the initial admin user by using the web frontend, which you access using a local connection (localhost).
You can instead create this user by using environment variables. Set KEYCLOAK_ADMIN=<username> for the initial admin username and KEYCLOAK_ADMIN_PASSWORD=<password> for the initial admin password."
set KEYCLOAK_ADMIN=admin
set KEYCLOAK_ADMIN_PASSWORD=admin
kc start-dev
kc start --optimized # Please configure your keys/certificates or start the server in development mode.
# Provider Metadata
http://localhost:7180/realms/quarkus/.well-known/openid-configuration
# COMANDOS DEV
mvnw quarkus:list-extensions
mvnw clean compile quarkus:dev
mvnw clean compile quarkus:dev -Dquarkus.profile=PROFILE_NAME
# COMANDOS PROD
"Empacota sem testes."
mvn clean package -DskipTests
mvnw clean package -DskipTests
java -jar target\quarkus-app\quarkus-run.jar ### Executa pacote de PRODUÇÃO.
# DOCKER
Instruções: src\main\docker\Dockerfile.jvm
Mude localhost para host.docker.internal - DNS disponível para que a aplicação acesse serviços no host.
docker --help