Skip to content

zeari/dedicated-portal

 
 

Repository files navigation

Dedicated Portal

Build Status

This package provides an application that simplifies the creation and management of OpenShift clusters.

Building

To build the project clone the repository in any directory and run the make command.

To build the container images run the make images command.

Deploying to an existing cluster

To deploy the application to an OpenShift cluster you will first need to build the images and upload them to the image registry used by the cluster. The images can be built and exported to .tar files files with the make tars command:

$ make tars
$ ls *.tar | sort
dedicated-portal_clusters-service_latest.tar
dedicated-portal_customers-service_latest.tar
dedicated-portal_customers-portal_latest.tar
dedicated-portal_messaging-service_latest.tar

Those .tar files can then be copied to the OpenShift cluster, and uploaded to the image registry:

$ scp *.tar template.* myhost:.
$ ssh root@myhost
# docker load -i dedicated-portal_clusters-service_latest.tar
# docker load -i dedicated-portal_customers-service_latest.tar
# docker load -i dedicated-portal_customers-portal_latest.tar
# docker load -i dedicated-portal_messaging-service_latest.tar

Then the template.sh script can be used to create and populate the dedicated-portal namespace:

$ ./template.sh
$ oc get pods -n dedicated-portal
NAME                                READY  STATUS   RESTARTS  AGE
clusters-db-59dbb97d4f-qdmjw        1/1    Running  0         1m
clusters-service-6b4877b885-k7zg2   1/1    Running  0         1m
customers-db-6cc7fc8c49-7mh7t       1/1    Running  0         1m
customers-portal-8474a9d5b7-6j1qt   1/1    Running  0         1m
customers-service-7dfdf5b6b5-hqznw  1/1    Running  0         1m
messaging-service-7474b9d5b7-6n2qt  1/1    Running  0         1m

To undeploy the application remove the dedicated-portal namespace:

$ oc delete namespace dedicated-portal

Deploying using oc cluster up

Run:

./hack/cluster-restart.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 52.5%
  • JavaScript 21.4%
  • Python 21.1%
  • CSS 1.7%
  • Shell 1.6%
  • Makefile 0.9%
  • HTML 0.8%