You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix CE appid deployment wrong internal URL create. Feedback from Mike M.
But the version for in the UI
```-->log: error Error: Invalid version
at t.exports.decodeAndValidate (appid.umd.min.js:27:211169)
at t.exports.retrieveTokens (appid.umd.min.js:27:217577)
at async t.exports.performOAuthFlowAndGetTokens (appid.umd.min.js:27:216641)``` is not valid
RESULT=$(ibmcloud ce project get --name $PROJECT_NAME| grep "Status"| awk '{print $2;}')
83
+
if [[ $RESULT=="active" ]];then
84
+
echo"*** The project $PROJECT_NAME exists."
85
+
ibmcloud ce project select-n$PROJECT_NAME
86
+
else
87
+
ibmcloud ce project create --name $PROJECT_NAME
88
+
ibmcloud ce project select-n$PROJECT_NAME
89
+
fi
90
+
84
91
#to use the kubectl commands
85
92
ibmcloud ce project select-n$PROJECT_NAME --kubecfg
86
93
87
-
NAMESPACE=$(ibmcloud ce project get --name $PROJECT_NAME --output json | grep "namespace"| awk '{print $2;}'| sed 's/"//g'| sed 's/,//g')
88
-
echo"Namespace: $NAMESPACE"
89
-
kubectl get pods -n $NAMESPACE
94
+
export PROJECT_NAMESPACE=$(ibmcloud ce project get --name $PROJECT_NAME --output json | grep "namespace"| awk '{print $2;}'| sed 's/"//g'| sed 's/,//g')
# NAMESPACE=$(ibmcloud ce project get --name $PROJECT_NAME --output json | sed -n 's|.*"namespace":"\([^"]*\)".*|\1|p')
47
-
NAMESPACE=$(ibmcloud ce project get --name $PROJECT_NAME --output json | grep "namespace"| awk '{print $2;}'| sed 's/"//g'| sed 's/,//g')
48
-
echo"Namespace: $NAMESPACE"
49
-
kubectl get pods -n $NAMESPACE
52
+
export PROJECT_NAMESPACE=$(ibmcloud ce project get --name $PROJECT_NAME --output json | grep "namespace"| awk '{print $2;}'| sed 's/"//g'| sed 's/,//g')
`IBM Cloud Code Engine` is build on [Open Source](https://en.wikipedia.org/wiki/Open_source) technologies:
109
+
`IBM Cloud `Code Engine` is built on [Open](https://en.wikipedia.org/wiki/Open_source) Source](https://en.wikipedia.org/wiki/Open_source) technologies:
110
110
111
111
*[Knative](https://knative.dev/)
112
112
*[Kubernetes](https://knative.dev/)
@@ -115,7 +115,7 @@ The workshop uses following IBM Cloud Services:
115
115
116
116
### Technology Used
117
117
118
-
The example mircorservices application example is build with following `technologies/tools/frameworks`.
118
+
The example microservices application example is built with the following `technologies/`tools/frameworks`.
Copy file name to clipboardexpand all lines: documentation/app-id-optional.md
+16-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Optional Lab 3: Run the example application with App ID
2
2
3
-
In this optional lab we use an [IBM Cloud App ID](https://www.ibm.com/cloud/app-id) service instance for authentication and authorization.
3
+
In this optional lab, we use an [IBM Cloud App ID](https://www.ibm.com/cloud/app-id) service instance for authentication and authorization.
4
4
5
5
We will create an [IBM Cloud App ID](https://www.ibm.com/cloud/app-id) service instance using a **"lite"** plan, this plan type does not create additional costs for us.
6
6
@@ -22,7 +22,7 @@ Here is a simplified architecture diagram which shows the **Web-App** and the tw
22
22
23
23
### Deploy the example application with App ID
24
24
25
-
#### (optional) Step 1: Clone the GitHub project to the **`IBM Cloud Shell`**
25
+
#### (optional) Step 1: Clone the GitHub project to the **`IBM Cloud Shell`**
Copy file name to clipboardexpand all lines: documentation/inspect-the-project.md
+11-12
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,17 @@
2
2
3
3
### Step 1: Open the `Code Engine` project
4
4
5
-
Use following link to directly navigate to the Code Engine projects and open the created project.
5
+
Use the following link to directly navigate to the Code Engine projects and open the created project.
6
6
7
7
<https://cloud.ibm.com/codeengine/projects>
8
8
9
9

10
10
11
11
### Step 2: Select `Overview`
12
12
13
-
In the following image you see:
14
-
15
-
1. The summary containing the Applications, Jobs, Image builds, Registry access, Secrets and Configmaps. In our case only the four applications are relevant.
16
-
2. The currenly usage of our application.
13
+
In the following image, you see:
14
+
The summary contains the Applications, Jobs, Image builds, Registry access, Secrets and Configmaps. In our case only the four applications are relevant.
15
+
2. The current usage of our application.
17
16
18
17

19
18
@@ -39,7 +38,7 @@ The `overview tab` shows the number of the running instances and the revisons of
39
38
40
39
Here we find four tabs used to configure the application instance on `Code Engine`.
41
40
42
-
* First select the `Code` tab. Here you see our container image reference to the Quay container registry.
41
+
* First, select the `Code` tab. Here you see our container image reference to the Quay container registry.
43
42
44
43

45
44
@@ -53,7 +52,7 @@ Here we find four tabs used to configure the application instance on `Code Engin
53
52
54
53
* Now select the `Environment variables` tab.
55
54
56
-
Here you see the routes for the `wep-api` microservice to setup the connections **internal**`articels` microservice and the external `Keycloak` application.
55
+
Here you see the routes for the `wep-api` microservice to set up the connections **internal**`articels` microservice and the external `Keycloak` application.
57
56
58
57

59
58
@@ -65,17 +64,17 @@ A short extract of the Code Engine documentation:
65
64
66
65
> _"These metadata fields are called Entrypoint and Command. For those users who are familiar with Dockerfile, the fields equate to the **ENTRYPOINT and CMD commands**. These two fields contain arrays of strings that are combined to create the command line that is used when you run your container."_
67
66
68
-
For details visit the [IBM Cloud documentation](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cmd-args).
67
+
For details visit the [IBM Cloud documentation](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cmd-args).
69
68
70
69
### Step 6: Endpoints tab
71
70
72
-
Here you can change the `endpoint` visibility. For our `web-api` application we need a public visibility because the application is invoked by our `web-app` frontend.
71
+
Here you can change the `endpoint` visibility. For our `web-api` application, we need public visibility because the application is invoked by our `web-app` frontend.
In following code you see the `Code Engine CLI` invocation for the `web-api` microservice, this code is used in the bash script to create a Code Engine application instance. It reflects what you have seen in the [`Code Engine UI`](https://cloud.ibm.com/codeengine/projects).
77
+
In the following code you see the `Code Engine CLI` invocation for the `web-api` microservice, this code is used in the bash script to create a Code Engine application instance. It reflects what you have seen in the [`Code Engine UI`](https://cloud.ibm.com/codeengine/projects).
79
78
80
79
> Note: The only difference is the threshold of concurrent requests per instance at which one or more additional instances are created is defined. Use this value to scale up instances based on concurrent number of requests. If `--concurrency-target` is not specified, this option defaults to the value of the `--concurrency` option. This value is optional. The default value is `0`.
81
80
@@ -88,7 +87,7 @@ In following code you see the `Code Engine CLI` invocation for the `web-api` mic
@@ -97,7 +96,7 @@ In following code you see the `Code Engine CLI` invocation for the `web-api` mic
97
96
98
97
### Step 8: Estimate cost
99
98
100
-
You can easily estimate cost for your Code Engine application.
99
+
You can easily estimate the cost for your Code Engine application.
101
100
Just select `estimate cost` and configure your region, cpu and storage, estimated monthly runtime for your application and the number of application instances. For more details visit the [IBM Cloud documentation](https://cloud.ibm.com/codeengine/overview).
0 commit comments