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
Copy file name to clipboardExpand all lines: app-dev/devops-and-containers/container-instances/ci-nginx-with-volumes-example/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,11 @@ To make testing this example slightly easier let's use your IAM user instead. To
101
101
<p>
102
102
To do this create OCI config with OCI CLI in your localhost with <code>oci setup config</code> and copy the created config to your directory in cloud shell. After adding the created API KEY to your profile in OCI tenancy copy the created private key file to your directory in cloud shell, too. Modify the config with nano editor to remove the path from the keyfile e.g.
103
103
<pre>key_file = oci_api_key.pem</pre>
104
-
104
+
<p>
105
+
Alternatively you can use <code>resource-principal</code> and to do this comment line 22 in index.js under <code>source</code> and respectively uncomment line 23.<br>
106
+
To make resource-principal to work create also a dynamic group based on your compartment and apply necessary policies to make the SDK to be able to access both Object Storage and Logs.
107
+
See <ahref="https://docs.oracle.com/en-us/iaas/Content/Identity/dynamicgroups/To_create_a_dynamic_group.htm">https://docs.oracle.com/en-us/iaas/Content/Identity/dynamicgroups/To_create_a_dynamic_group.htm</a> for more info.
108
+
105
109
#### Build and push to OCIR
106
110
107
111
After adding the CLI config and API Key build the container and push it to OCIR repo:
0 commit comments