It's the next version of the https://github.com/redhat-cop/pathfinder project.
Pathfinder is an extensible, questionnaire based assessment tool for assessing the suitability of applications for deployment onto an enterprise Kubernetes platform.
minikube start --kubernetes-version=v1.20.2 --cpus 4 --memory 8192
minikube addons enable ingress
helm repo add microcks https://microcks.io/helm
kubectl create namespace microcks
helm install microcks microcks/microcks --version 1.2.0 --namespace microcks --set microcks.url=microcks.$(minikube ip).nip.io --set keycloak.url=keycloak.$(minikube ip).nip.io
Check URL of microcks on the output : Microcks is available at https://microcks.192.168.49.2.nip.io.
(that IP will change with yours)
Use admin
or user
as user and microcks123
as password
git clone https://github.com/microcks/microcks.git
cd microcks/install/docker-compose
docker-compose up -d
podman run -p 9080:8080 apicurio/apicurito-ui
https://studio.apicur.io/
GET info
operation )Mock URL
flattened model (denormalised shcmema)
initial premisses :
Assess Application | Copy Assessment |
---|---|
Run a Postgres container, a Keycloak one ( if you are running this application alone and not with the rest of Tackle modules ) and execute the application in dev mode.
Start PostreSQL container with Podman executing this.
podman run -it \
--name postgres-pathfinder -e POSTGRES_USER=pathfinder \
-e POSTGRES_PASSWORD=pathfinder -e POSTGRES_DB=pathfinder_db \
-p 5433:5432 postgres:10.6
NOTE setting the port to 5433 to not interfere with other services PostgresSQL
podman run -it --name keycloak --rm \
-e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -e KEYCLOAK_IMPORT=/tmp/keycloak/quarkus-realm.json \
-e DB_VENDOR=h2 -p 8180:8080 -p 8543:8443 -v ./src/main/resources/keycloak:/tmp/keycloak:Z \
jboss/keycloak:12.0.2
It works the same with Docker just replacing podman
with docker
in the above command.
./mvnw quarkus:dev
This will make Pathfinder to run on port 8085
To do calls to application's endpoint while running it in dev mode, execute the following commands:
Configure security
export access_token=$(\
curl -X POST http://localhost:8180/auth/realms/quarkus/protocol/openid-connect/token \
--user backend-service:secret \
-H 'content-type: application/x-www-form-urlencoded' \
-d 'username=alice&password=alice&grant_type=password' | jq --raw-output '.access_token' \
)
Get list of assessments
curl -X GET 'http://localhost:8085/pathfinder/assessments?applicationId=20' \
-H 'Accept: application/json' -H "Authorization: Bearer "$access_token -v -s | jq
Create an assessment
curl 'http://localhost:8085/pathfinder/assessments' \
-H 'Content-Type: application/json' -H 'Accept: application/json' -H "Authorization: Bearer "$access_token \
-d "{ \"applicationId\": 20 }" \
-v -s | jq
To contribute translating Tackle Pathfinder (questionnaire) into a new language please read Internationalization
Refer to Konveyor's Code of Conduct here.