Skip to content

danielbgg/rhoar-spring-boot-product-catalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RHOAR Spring Boot Product Catalog

Demo Microservice for Spring Boot - RHOAR course

Openshift Deployment

export CATALOG_PROJECT_NAME=product-catalog
oc new-project $CATALOG_PROJECT_NAME
oc new-app -e POSTGRESQL_USER=luke -ePOSTGRESQL_PASSWORD=secret -ePOSTGRESQL_DATABASE=my_data openshift/postgresql-92-centos7 --name=my-database
mvn clean fabric8:deploy -Popenshift

If the Openshift has a self-signed certificate, it is necessary to import it using keytool.

keytool -import -noprompt -trustcacerts -alias Openshift -file /etc/pki/ca-trust/source/anchors/ca.crt -keystore $JAVA_HOME/jre/lib/security/cacert -storepass changeit
mvn clean fabric8:deploy -Popenshift -Djavax.net.ssl.trustStore=$JAVA_HOME/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit

Deployment Test

export PRODUCT_CATALOG_URL=http://$(oc get route product-catalog -n $CATALOG_PROJECT_NAME -o template --template='{{.spec.host}}')
curl -X GET "$PRODUCT_CATALOG_URL/products"

About

Spring Boot Microservice for Product Catalog - RHOAR course

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published