Skip to content

Commit f5d499d

Browse files
readme fix
1 parent 894e3ac commit f5d499d

File tree

1 file changed

+10
-1
lines changed
  • app-dev/devops-and-containers/functions/java-helloworld-with-local-dev-and-oci-functions

1 file changed

+10
-1
lines changed

app-dev/devops-and-containers/functions/java-helloworld-with-local-dev-and-oci-functions/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ docker build -t fra.ocir.io/<YOUR OCI TENANCY NAMESPACE>/helloworld-java:1
118118
</pre>
119119

120120
In the docker build command above replace the <code>region</code> if necessary and the <code>&lt;YOUR OCI TENANCY NAMESPACE&gt;</code> with yours.
121-
122121
<p>
123122

124123
After building let's do <code>docker login</code> and <code>docker push</code> to push the container to the OCIR repo:
@@ -130,6 +129,16 @@ docker login ams.ocir.io -u '&lt;YOUR OCI TENANCY NAMESPACE&gt;/oracleidentitycl
130129
docker push fra.ocir.io/&lt;YOUR OCI TENANCY NAMESPACE&gt;/helloworld-java:1
131130
</pre>
132131

132+
<p>
133+
The same as above but using OCI cli to get the &lt;YOUR OCI TENANCY NAMESPACE&gt; which is especially handy in scripting:
134+
135+
<code>
136+
export namespace=$(oci os ns get | jq .data | tr -d '"')
137+
docker build -t fra.ocir.io/$namespace/helloworld-java:1 .
138+
docker push fra.ocir.io/$namespace/helloworld-java:1
139+
</code>
140+
141+
<p>
133142
The last step is to create the Function Application and the function deployment for it. This can be easily done using the Cloud UI.
134143

135144
<p>

0 commit comments

Comments
 (0)