Skip to content

Commit

Permalink
feat(devel): make application port dynamic (parameter)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoscode committed Nov 27, 2023
1 parent a7468e0 commit 8816c89
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dev-assets/docker-environment/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
env_file:
- ../env-files/env.$DEV_ENVIRONMENT
ports:
- "8000:8000"
- "$APPLICATION_PORT:$APPLICATION_PORT"
- "8090:8090"
networks:
- miw-net
Expand Down
3 changes: 2 additions & 1 deletion dev-assets/env-files/env.docker.dist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ KEYCLOAK_REALM=miw_test
VC_SCHEMA_LINK="https://www.w3.org/2018/credentials/v1, https://catenax-ng.github.io/product-core-schemas/businessPartnerData.json"
VC_EXPIRY_DATE=01-01-2025
SUPPORTED_FRAMEWORK_VC_TYPES="PcfCredential, SustainabilityCredential, QualityCredential, TraceabilityCredential, BehaviorTwinCredential, ResiliencyCredential"
MIW_HOST_NAME=miw
MIW_HOST_NAME=localhost
ENFORCE_HTTPS_IN_DID_RESOLUTION=false

######### DON'T MODIFY ANYTHING BELOW THIS LINE !!! #########
AUTH_SERVER_URL=http://keycloak:8080
Expand Down
3 changes: 2 additions & 1 deletion dev-assets/env-files/env.local.dist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ KEYCLOAK_REALM=miw_test
VC_SCHEMA_LINK="https://www.w3.org/2018/credentials/v1, https://catenax-ng.github.io/product-core-schemas/businessPartnerData.json"
VC_EXPIRY_DATE=01-01-2025
SUPPORTED_FRAMEWORK_VC_TYPES="PcfCredential, SustainabilityCredential, QualityCredential, TraceabilityCredential, BehaviorTwinCredential, ResiliencyCredential"
MIW_HOST_NAME=miw
MIW_HOST_NAME=localhost
ENFORCE_HTTPS_IN_DID_RESOLUTION=false

######### DON'T MODIFY ANYTHING BELOW THIS LINE !!! #########
AUTH_SERVER_URL=http://localhost:8080
Expand Down
4 changes: 2 additions & 2 deletions dev-assets/scripts/get_Token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
# ********************************************************************************/
#

curl --location 'http://localhost:8080/realms/miw_test/protocol/openid-connect/token' \
curl --location 'http://localhost:$APPLICATION_PORT/realms/miw_test/protocol/openid-connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=miw_private_client' \
--data-urlencode 'client_secret=miw_private_client' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=catena-x' \
--data-urlencode 'password=password' \
| jq -r '.access_token'
| jq -r '.access_token'

0 comments on commit 8816c89

Please sign in to comment.