This application demonstrates a pseudo application composed of two microservices implemented with Helidon SE.
With Docker:
docker run --name zipkin -d -p 9411:9411 openzipkin/zipkinWith Java 8+:
curl -sSL https://zipkin.io/quickstart.sh | bash -s
java -jar zipkin.jarWith Kubernetes:
kubectl apply \
-f https://raw.githubusercontent.com/kubernetes/ingress-nginx/ingress-nginx-3.15.2/deploy/static/provider/cloud/deploy.yaml \
-f ../k8s/zipkin.yamlWith Docker:
docker build -t helidon-examples-translator-backend backend/
docker build -t helidon-examples--translator-frontend frontend/
docker run --rm -d -p 9080:9080 \
--link zipkin \
--name helidon-examples-translator-backend \
helidon-examples-translator-backend:latest
docker run --rm -d -p 8080:8080 \
--link zipkin \
--link helidon-examples-translator-backend \
--name helidon-examples-translator-frontend \
helidon-examples-translator-frontend:latestWith Java 8+:
mvn package
java -jar backend/target/helidon-examples-translator-backend.jar &
java -jar frontend/target/helidon-examples-translator-frontend.jarTry the endpoint:
curl "http://localhost:8080?q=cloud&lang=czech"
curl "http://localhost:8080?q=cloud&lang=french"
curl "http://localhost:8080?q=cloud&lang=italian"Then check out the traces at http://localhost:9411.
docker build -t helidon-examples-translator-backend backend/
docker build -t helidon-examples-translator-frontend frontend/
kubectl apply -f backend/app.yaml -f frontend/app.yamlTry the endpoint:
curl "http://localhost/translator?q=cloud&lang=czech"
curl "http://localhost/translator?q=cloud&lang=french"
curl "http://localhost/translator?q=cloud&lang=italian"Then check out the traces at http://localhost/zipkin.
Stop the docker containers:
docker stop zipkin \
helidon-examples-translator-backend \
helidon-examples-translator-frontendDelete the Kubernetes resources:
kubectl delete -f backend/app.yaml -f frontend/app.yaml