hyperledgerkochi / KOBDevOps

Repository for all KOB DevOps Tools and Scripts
1 stars 11 forks source link

Enhancement To Env Setup Scripts #5

Open panickervinod opened 5 years ago

panickervinod commented 5 years ago

Fix the following, (No particular order) a) Setup Environment variable KOB_DEV__ENV_HOME b) Ask users if Environment Variable are not set or you are not able to determine if the required packages are already installed. c) Enable Script to run in non interactive mode by passing arguments that determine the Dev Environment to be setup
List the Environment e.g
KOBVON, KOBDflow, KOBConnect, KOBRegistry, KochiOrgBook, AllKOBProjects.

Few other code sanity checks. d) Make it modular, where each function address a selected environment. e) Remove hard coded folder names and version numbers for binary and packages. f) Script should determine the Namespace value based on the environment selected, g) Point to KOB Namespace if installing KOB Projects, Point to TOB namespace for installing TOB Projects.

EtricKombat-zz commented 5 years ago

Can you please help me understand the indention/purpose of each of these environment variable:

KOB_DEV__ENV_HOME KOBVON, KOBDflow, KOBConnect, KOBRegistry, KochiOrgBook, AllKOBProjects.

panickervinod commented 5 years ago

@EtricKombat Only KOB_DEV__ENV_HOME is an environment variable it specifies the location relative to which all KOB development environments will be installed.

rest all are names of DEV Environment scripts/ playbooks used to determine which dev environment should be setup. e.g. 'set KOB_DEVENV_HOME =/some/usr/specified/path' 'KOB install --dev KOBRegistry' //command to install the dev environment for KOBRegistry @ KOB_DEVENV_HOME.

e.g 'KOB install --deploy KOBRegistry' //command to deploy KOBRegistry @ KOB_DEV__ENV_HOME.

panickervinod commented 5 years ago

@sumodgeorge Please do close the same after Issues are created against missing playbook/install scripts commands