Skip to content

Commit b10fd7d

Browse files
authored
Merge pull request #1590 from oracle-devrel/oci-devops-readme-fix-2
readme instructions added for OCIR Docker login with auth token
2 parents 2580e4e + fecad0d commit b10fd7d

File tree

1 file changed

+11
-3
lines changed
  • app-dev/devops-and-containers/devops/oci-devops-terraform-function-java-graalvm

1 file changed

+11
-3
lines changed

app-dev/devops-and-containers/devops/oci-devops-terraform-function-java-graalvm/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,26 @@ Creating the stack in OCI Resource Manger fill in the vars:
7070
<li><i>initial_image</i> that is used to create the OCI Function as target environment for the OCI DevOps deployment pipeline.
7171
By default it is loaded from Dockerhub, but you can use any X86 arch image if want to replace this</li>
7272
<li><i>docker_user</i> is your OCIR Docker user to push the initial image (above) to OCIR repo for the Function. Replace &lt;namespace&gt; with your <code>tenancy namespace</code>. <code>oracleidentitycloudservice</code> is only used for federated domains/users, not local</li>
73-
<li><i>docker_password</i> is your OCIR Docker user password (your user profile auth token in OCI)</li>
73+
<li><i>docker_password</i> is an <code>auth token</code> in your OCI user profile, <i>create one for this</i></li>
7474
</ul>
7575

76+
Docker credentials are only used during the DevOps project creation to push the initial Function image and the DevOps project won't need them after it's been created by Terraform. <i>Hence, you can delete the auth token from your profile after the stack has been run.</i>
77+
<p>
78+
7679
After creation run Stacks's Apply to create the OCI DevOps project.
7780
<p>
7881
The Stack creates only a <i>private subnet</i> in the VCN and hence the Function cannot be called outside the tenancy by default after the build and deploy.
79-
<br>
80-
However, the Function invocation can be done from OCI Cloud Shell either by connecting to the VCN private subnet or to OCI Service Network, both options will work. The invocation can be done as follows using the Stack <code>project_name</code> e.g. :
82+
<p>
83+
However, the Function invocation can be done from <code>OCI Cloud Shell</code> either by connecting to the <b>VCN private subnet</b> or to <b>OCI Service Network</b>, both options will work. The invocation can be done as follows using the Stack <code>project_name</code> e.g. :
8184
<pre>
8285
fn invoke helloworldai-java helloworldai-java
8386
</pre>
8487

88+
Since the stack creates the DevOps project with a target Function with the intial image it should already run and return:
89+
<pre>
90+
Hello, world!
91+
</pre>
92+
8593
# Useful Links
8694

8795
- [OCI DevOps](https://www.oracle.com/cloud/cloud-native/devops-service/)

0 commit comments

Comments
 (0)