File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
app-dev/devops-and-containers/functions/java-helloworld-with-local-dev-and-oci-functions Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ docker build -t fra.ocir.io/<YOUR OCI TENANCY NAMESPACE>/helloworld-java:1
118118</pre >
119119
120120In the docker build command above replace the <code >region</code > if necessary and the <code >< ; YOUR OCI TENANCY NAMESPACE> ; </code > with yours.
121-
122121<p >
123122
124123After 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 '<YOUR OCI TENANCY NAMESPACE>/oracleidentitycl
130129docker push fra.ocir.io/< ; YOUR OCI TENANCY NAMESPACE> ; /helloworld-java:1
131130</pre >
132131
132+ <p >
133+ The same as above but using OCI cli to get the < ; YOUR OCI TENANCY NAMESPACE> ; 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 >
133142The 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 >
You can’t perform that action at this time.
0 commit comments