The script does the following
- Logs into Docker
- Starts Minishift with the required resources
- Logs onto Minishift with oc
- Creates a inventory file (minishift-example) with the IP address in your home drive to be used with the Ansible installer
- Adds a docker secret to all new projects
- Deletes existing rhmap projects when used with -c flag
- Creates projects
rhmap-core
andrhmap-1-node-mbaas
- Prompts user for branch or tag and git checkout
- Runs Ansible script for installing rhmap-core and mbaas
- Setups mbaas target in the studio
- Creates three environments [dev,live,test]
- Outputs studio username, password and studio url
- Docker installed and logged into
- Ansible installed
- oc install (>=3.7)
- Minishift installed
- The following repos cloned to your home/work directory
- Clone the repo
git clone https://github.com/austincunningham/minishift-install-rhmap.git
- Change to directory
cd minishift-install-rhmap
- Make the script runable
chmod 775 setup-rhmap.sh
- Run the script
./setup-rhmap.sh
- For clean install run
./setup-rhmap.sh -c
this removes existingrhmap-core
andrhmap-1-node-mbaas
projects. - For use with
oc cluster up
use./setup-rhmap.sh -oc
Make sure the paths in the script match you local directory structure
For more detailed information on this process see this guide