Git Product home page Git Product logo

store-demo-project's Introduction

Store project for demoing quarkus and or spring features and also gitops approach.

store-demo-project

Local development:

For local development Docker must be running. Otherwise you need to configure quarkus to work with podman You need to be logged-in on OCP in the right project.

Full set up for this project:

  1. Install Red Hat Gitops Operator 2) Apply this policy

    oc adm policy add-cluster-role-to-user cluster-admin -z openshift-gitops-argocd-application-controller -n openshift-gitops

    1. Grab the admin token

    argoPass=$(oc get secret/openshift-gitops-cluster -n openshift-gitops -o jsonpath='{.data.admin.password}' | base64 -d)

  2. Install Amq Streams Operator
  3. Install the sealed secret controller ( > oc apply -n kube-system -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.25.0/controller.yaml)
  4. Create an Argo Cd application to deploy the infra stuff pointing at: https://github.com/mcombi/store-demo-project.git path: store-common-config

To Enable monitoring , use the script in store-common-config/monitoring

If we want to deploy the containers from developer laptop:

For this demo, the quarkus applications will be deployed from the developer laptop with command: a) for a classic build :

mvn clean install -Dquarkus.kubernetes.deploy=true

b) for a native one:

mvn clean install -Dquarkus.kubernetes.deploy=true -Dnative

The spring boot application will be deployed via dev tools in ocp, via Add from Git and go with the default options

To run the spring boot application locally: run containers creation in folder local_dev_tool

mvn spring-boot:run -Dspring-boot.run.profiles=dev

To add an extension: For example in prokect quarkus-store-project

mvn quarkus:add-extension -Dextensions='quarkus-smallrye-openapi'

Then go to Order Resource and decomment the commented code live

If we want to run this demo using gitops approach:

  1. Make sure that you have installed the infra stuff. As the store project contains a datasource that points to a service called postgresql.store-demo-test.svc.cluster.local, at the moment the infra stuff must be in a namespace called store-demo-test

store-demo-project's People

Contributors

mcombi avatar dependabot[bot] avatar

Watchers

 avatar

store-demo-project's Issues

Esternalizzare rotta dal fe

esternalizzare la rotta presente in pagina che chiama il servizio di store per rendere dinamica.
Esempio almeno in una config map

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.