From 9419643242b9c5726a5ec57f2878eadc3a2e324d Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Mon, 5 Nov 2018 16:57:40 +0100 Subject: [PATCH] Add comments and expose all side services --- openshift/deploy-openshift-dev.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openshift/deploy-openshift-dev.sh b/openshift/deploy-openshift-dev.sh index 0f483a8..cde8da3 100755 --- a/openshift/deploy-openshift-dev.sh +++ b/openshift/deploy-openshift-dev.sh @@ -1,6 +1,11 @@ #!/bin/bash # Deploy a fully working fabric8-build on an openshift cluster # +# You can do this directly on minishift or on a remote cluster +# +# TODO(chmouel): add an option to not clean up DB datas +# This is for dev, everyting get cleaned up again and again +# # Configuration is inside makefile set -ex @@ -42,6 +47,8 @@ function deploy_sideservice() { sleep 2 oc new-app --name="${name}" ${env_dbs} -e AUTH_DEVELOPER_MODE_ENABLED=true \ ${image} + sleep 2 + oc expose service/${name} } function deploy_app() { @@ -70,10 +77,13 @@ function deploy_app() { oc expose service/f8build } +# TODO(chmouel): one db for all +# DBS deploy_db db deploy_db ${AUTH_DB_CONTAINER_NAME} deploy_db ${ENV_DB_CONTAINER_NAME} +# AUTH AUTH_SERVICE_VARIABLES=$(cat <