-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simple-microservice-rest-client: step3 - keycloak
- Loading branch information
1 parent
ae8cb3f
commit 545897a
Showing
129 changed files
with
4,297 additions
and
102 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
...croservice-rest-client/TO_DELETE/simple-microservice-client-secured/README.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
= simple-microservice-client | ||
|
||
== Build the application | ||
|
||
[source,bash] | ||
---- | ||
mvn clean package | ||
---- | ||
|
||
== Build the Docker Image | ||
|
||
[source,bash,subs="normal"] | ||
---- | ||
podman build -t my-jaxrs-app-client-secured:latest . | ||
podman tag my-jaxrs-app-client-secured quay.io/tborgato/my-jaxrs-app-client-secured | ||
podman push quay.io/tborgato/my-jaxrs-app-client-secured | ||
---- | ||
|
||
== Run on Kubernetes | ||
|
||
[source,bash,subs="normal"] | ||
---- | ||
kubectl apply -f kubernetes/my-jaxrs-app-client-secured-deployment.yaml | ||
kubectl apply -f kubernetes/my-jaxrs-app-client-secured-service.yaml | ||
minikube service my-jaxrs-app-client-secured-service --url | ||
---- | ||
|
||
== Run the Docker Image | ||
|
||
[source,bash,subs="normal"] | ||
---- | ||
podman run --rm -p 8080:8080 -p 9990:9990 \ | ||
--network=demo-network \ | ||
--env "SIMPLE_MICROSERVICE_SERVER1_URI=http://my-jaxrs-app-server:8080/hello" \ | ||
--env "SIMPLE_MICROSERVICE_SERVER2_URI=http://my-jaxrs-app-server:8080/hello" \ | ||
--env "OIDC_PROVIDER_URL=http://keycloak-internal:8080" \ | ||
--env "OIDC_CLIENT_SECRET=pBVLIeIBlB1cyhZVbfctl7DsKZpdhqRL" \ | ||
--name=my-jaxrs-app-client-secured \ | ||
my-jaxrs-app-client-secured | ||
---- |
Oops, something went wrong.