File tree Expand file tree Collapse file tree 4 files changed +28
-5
lines changed
Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,8 @@ Red Hat a demo platform. This allows easy access for Red Hat associates and part
156156 ` ` `
1571571. Ensure Let's encrypt
1581581. Run the wrapper install script
159- 1. `sh ./rhdp/wrapper.sh`
159+ 1. `bash ./rhdp/wrapper.sh azure-region-code`
160+ 2. Where azure region code is `eastasia`, `useast2` etc.
1601611. You *should* be done
161162 1. You *may* need to recreate the hello world peer-pods depending on timeouts.
162163
Original file line number Diff line number Diff line change 11# RHDP support
22
33Red Hat demo platform is a system for employees and red hat partners to generate test infrastructure.
4- The scripts in this directory help users of that platform automate deployments
4+ The scripts in this directory help users of that platform automate deployments.
5+
6+ ## To deploy
7+
8+ 1 . Stand up the 'Azure Subscription Based Blank Open Environment'
9+ 2 . Download the credentials
10+ 3 . Load the credentials into your environment (e.g. using ` direnv ` )
11+ 4 . Launch the wrapper script from the repository root directory:
12+ 1 . ` bash ./rhdp/wrapper.sh eastasia `
13+ 2 . The wrapper script ** requires** an azure region code this code SHOULD be the same as what was selected in RHDP
14+
515
616
Original file line number Diff line number Diff line change @@ -84,8 +84,10 @@ def print():
8484 rprint ("Run openshift install ." )
8585
8686
87- def run (region : Annotated [str , typer .Argument ()] = "eastasia" ):
88- """warpper function for cli parsing as required"""
87+ def run (region : Annotated [str , typer .Argument (help = "Azure region code" )]):
88+ """
89+ Region flag requires an azure region key which can be (authoritatively) requested with: "az account list-locations -o table".
90+ """
8991 validate_dir ()
9092 cleanup (pathlib .Path .cwd ())
9193 setup_install (
Original file line number Diff line number Diff line change 1+
2+ #! /usr/bin/env bash
13set -e
24
5+ if [ " $# " -ne 1 ]; then
6+ echo " Error: Exactly one argument is required."
7+ echo " Usage: $0 {azure-region-code}"
8+ echo " Example: $0 eastasia"
9+ exit 1
10+ fi
11+ AZUREREGION=$1
12+
313echo " Run from the root directory of the project"
414echo " \n"
515echo " Ensuring azure environment is installed"
5666echo " ---------------------"
5767echo " defining cluster"
5868echo " ---------------------"
59- python3 rhdp/rhdp-cluster-define.py
69+ python3 rhdp/rhdp-cluster-define.py ${AZUREREGION}
6070echo " ---------------------"
6171echo " cluster defined"
6272echo " ---------------------"
You can’t perform that action at this time.
0 commit comments