Skip to content

Commit

Permalink
simple-microservice-rest-client: step3 - keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
tommaso-borgato committed Oct 17, 2024
1 parent ae8cb3f commit 545897a
Show file tree
Hide file tree
Showing 129 changed files with 4,297 additions and 102 deletions.
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
----
Loading

0 comments on commit 545897a

Please sign in to comment.