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
156
156
` ` `
157
157
1. Ensure Let's encrypt
158
158
1. 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.
160
161
1. You *should* be done
161
162
1. You *may* need to recreate the hello world peer-pods depending on timeouts.
162
163
Original file line number Diff line number Diff line change 1
1
# RHDP support
2
2
3
3
Red 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
+
5
15
6
16
Original file line number Diff line number Diff line change @@ -84,8 +84,10 @@ def print():
84
84
rprint ("Run openshift install ." )
85
85
86
86
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
+ """
89
91
validate_dir ()
90
92
cleanup (pathlib .Path .cwd ())
91
93
setup_install (
Original file line number Diff line number Diff line change
1
+
2
+ #! /usr/bin/env bash
1
3
set -e
2
4
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
+
3
13
echo " Run from the root directory of the project"
4
14
echo " \n"
5
15
echo " Ensuring azure environment is installed"
56
66
echo " ---------------------"
57
67
echo " defining cluster"
58
68
echo " ---------------------"
59
- python3 rhdp/rhdp-cluster-define.py
69
+ python3 rhdp/rhdp-cluster-define.py ${AZUREREGION}
60
70
echo " ---------------------"
61
71
echo " cluster defined"
62
72
echo " ---------------------"
You can’t perform that action at this time.
0 commit comments