{"id":18322890,"url":"https://github.com/redhat-middleware-workshops/vertx-workshop-infra","last_synced_at":"2025-08-25T20:30:44.047Z","repository":{"id":92048196,"uuid":"199664886","full_name":"RedHat-Middleware-Workshops/vertx-workshop-infra","owner":"RedHat-Middleware-Workshops","description":"Infra services for running the vertx kubernetes workshop with Che/CodeReady+Openshift","archived":false,"fork":false,"pushed_at":"2019-09-27T10:30:24.000Z","size":3193,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"ocp-3.11","last_synced_at":"2024-12-20T16:49:35.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://escoffier.me/vertx-kubernetes/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedHat-Middleware-Workshops.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-30T14:11:58.000Z","updated_at":"2020-05-27T13:43:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"939c414c-8a13-451d-bba9-6eb12bfa2942","html_url":"https://github.com/RedHat-Middleware-Workshops/vertx-workshop-infra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHat-Middleware-Workshops%2Fvertx-workshop-infra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHat-Middleware-Workshops%2Fvertx-workshop-infra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHat-Middleware-Workshops%2Fvertx-workshop-infra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHat-Middleware-Workshops%2Fvertx-workshop-infra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedHat-Middleware-Workshops","download_url":"https://codeload.github.com/RedHat-Middleware-Workshops/vertx-workshop-infra/tar.gz/refs/heads/ocp-3.11","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230943998,"owners_count":18304349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T18:26:23.340Z","updated_at":"2024-12-23T09:44:10.096Z","avatar_url":"https://github.com/RedHat-Middleware-Workshops.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"== Vertx Kubernetes Workshop image:https://api.travis-ci.org/jbossdemocentral/vertx-kubernetes-workshop-infra.svg?branch=ocp-3.11[Build Status,link=https://travis-ci.org/jbossdemocentral/vertx-kubernetes-workshop-infra]\n\nThis is a 3 hours hands-on reactive programming workshop with Vert.x, explaining how to build distributed microservice reactive applications using Eclipse Vert.x and deploy them on Openshift\n\nComplete code is available in the solution directory.\n\n== Agenda\n\n* Prerequisites\n* Introduction to Vert.x\n* Demystifying microservices\n* First step with Openshift\n* Building Reactive Services with Vert.x\n* The Micro-Trader Application\n* The first microservice - the quote generator\n* Event bus services - Portfolio service \n* The compulsive traders \n* The Audit service\n* Resilience, Circuit Breaker and API Proxy - the currency service\n\n\n== Install Workshop Infrastructure\n\nAn APB [https://quay.io/repository/openshiftlabs/vertx-workshop-apb] is provided for \ndeploying the Workshop infra (lab instructions, CodeReady Workspaces, etc) in a project \non an OpenShift cluster via the service catalog. In order to add this APB to the OpenShift service catalog, log in \nas cluster admin and perform the following in the `*openshift-ansible-service-broker*` project :\n\n1. Edit the `*broker-config*` configmap and add this snippet right after `*registry*`:\n\n[source,yaml]\n----\n    - name: dh\n      type: quay.io\n      org: openshiftapb\n      tag: ocp-3.11\n      white_list: [.*-apb$]\n----\n\n2. Redeploy the `*asb*` deployment\n\nYou can https://docs.openshift.com/container-platform/3.11/install_config/oab_broker_configuration.html#oab-config-registry-dockerhub[read more in the docs^] \non how to configure the service catalog.\n\nAs an alternative, you can also run the APB directly in a pod on OpenShift to install the workshop infra:\n\n[source,shell]\n----\noc login\noc new-project lab-infra\noc run apb --restart=Never --image=\"quay.io/openshiftlabs/vertx-workshop-apb:ocp-3.11\" \\\n    -- provision -vvv -e namespace=$(oc project -q) -e openshift_token=$(oc whoami -t)\n----\n\nOr if you have Ansible installed locally, you can also run the Ansilbe playbooks directly on your machine:\n\n[source,shell]\n----\noc login\noc new-project lab-infra\n\nansible-playbook -vvv playbooks/provision.yml \\\n       -e namespace=$(oc project -q) \\\n       -e openshift_token=$(oc whoami -t) \\\n       -e openshift_master_url=$(oc whoami --show-server)\n---- \n\n== Lab Instructions on OpenShift\n\nTIP: If you have used the above workshop installer, the lab instructions are already deployed.\n\n[source,shell]\n----\noc new-app quay.io/osevg/workshopper:latest --name=guides \\\n    -p LOG_TO_STDOUT=true \\\n    -p WORKSHOPS_URLS=\"https://raw.githubusercontent.com/jbossdemocentral/vertx-kubernetes-workshop-infra/ocp-3.11/_workshop-guides-che.yml\"\noc expose svc/guides\n----\n\n== Local Lab Instructions\n\n[source,shell]\n----\ndocker run -it --rm -p 8080:8080 \\\n      -v $(pwd):/app-data \\\n      -e LOG_TO_STDOUT=true \\\n      -e CONTENT_URL_PREFIX=\"file:///app-data\" \\\n      -e WORKSHOPS_URLS=\"file:///app-data/_workshop-guides-che.yml\" \\\n      quay.io/osevg/workshopper:latest\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-middleware-workshops%2Fvertx-workshop-infra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-middleware-workshops%2Fvertx-workshop-infra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-middleware-workshops%2Fvertx-workshop-infra/lists"}