Skip to content

Commit a0d1d16

Browse files
vburckhardtin-1911
andauthored
fix: Fix app deployment issue (#6)
* feat: add inputs * fix: remove problematic iam * fix: image link * fix: image link * feat: more inputs * feat: more wiring * feat: add alm DA in stack * feat: add watson * feat: add RAG config da to stack * feat: add RAG config da to stack * feat: configure watsonx plans * fix: add workaround for unique watson project name * Use project name and config name pattern to deploy many * chore: merge with master * feat: bump RAG DA version * fix: use prefix as registry namepsace for now * fix: set context strategy * docs: prefix * feat: change rag app image name * docs: add diagram * docs: add diagram * fix: mount app.properties as config map in code engine project * fix: ensure unique names on repos --------- Co-authored-by: Igor Naumov <[email protected]>
1 parent 3037492 commit a0d1d16

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

deploy-many.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
set -x
44

5-
# PROJECT_ID="546993cb-c1ba-49cd-a975-187a2b924c21"
6-
# CONFIG_IDS=("b79d03d5-edfe-4cd4-8787-7d70738c6529" "853c369d-3dbd-41e4-8e79-006d2c3408b2" "736fd03d-190a-4bcd-a1a5-18334d868f20" "3d76faf5-663e-4a7a-bb1d-3c98a9fa6628" "70667b97-6bb5-425b-8e6a-47c931740604")
7-
# STACK_CONFIG_ID="53ef9a25-3aad-4167-b548-41b19c57cad4"
8-
95
function parse_params() {
106
PROJECT_NAME=$1
117
STACK_NAME=$2
@@ -68,6 +64,7 @@ function wait_for_validation() {
6864
fi
6965

7066
sleep 10
67+
keep_iam_session_active
7168
done
7269
}
7370

@@ -104,6 +101,7 @@ function wait_for_deployment() {
104101

105102
# Sleep for a few seconds before checking the state again
106103
sleep 10
104+
keep_iam_session_active
107105
done
108106
}
109107

@@ -115,11 +113,16 @@ function die()
115113
exit $exit_code
116114
}
117115

116+
function keep_iam_session_active()
117+
{
118+
ibmcloud iam oauth-tokens > /dev/null
119+
}
120+
118121
parse_params "$@"
119122
get_config_ids
120123
set_stack_inputs
121124

122-
# 6. Loop through the configuration IDs and execute the functions
125+
# Loop through the configuration IDs and execute the functions
123126
for CONFIG_ID in "${CONFIG_IDS[@]}"
124127
do
125128
validate_config

ibm_catalog.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
{
6161
"diagram": {
6262
"url": "https://raw.githubusercontent.com/terraform-ibm-modules/stack-retrieval-augmented-generation/main/reference-architecture/RAG Pattern v2-part-2.svg",
63-
"caption": "Solution components",
63+
"caption": "Reference architecture",
6464
"type": "image/svg+xml",
6565
"thumbnail_url": "https://raw.githubusercontent.com/terraform-ibm-modules/stack-retrieval-augmented-generation/main/reference-architecture/RAG Pattern v2-part-2.svg"
6666
},

stack_definition.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
},
264264
{
265265
"name": "repositories_prefix",
266-
"value": "rag-sample"
266+
"value": "ref:../../inputs/prefix"
267267
},
268268
{
269269
"name": "ci_app_name",
@@ -276,6 +276,14 @@
276276
{
277277
"name": "ci_code_engine_image_name",
278278
"value": "code-engine-rag-app"
279+
},
280+
{
281+
"name": "ci_code_engine_env_from_configmaps",
282+
"value": "app.properties"
283+
},
284+
{
285+
"name": "cd_code_engine_env_from_configmaps",
286+
"value": "app.properties"
279287
}
280288
],
281289
"name": "5 - Generative AI Sample App - Code Engine Toolchain Config",

0 commit comments

Comments
 (0)