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
118
118
</pre >
119
119
120
120
In the docker build command above replace the <code >region</code > if necessary and the <code >< ; YOUR OCI TENANCY NAMESPACE> ; </code > with yours.
121
-
122
121
<p >
123
122
124
123
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 '<YOUR OCI TENANCY NAMESPACE>/oracleidentitycl
130
129
docker push fra.ocir.io/< ; YOUR OCI TENANCY NAMESPACE> ; /helloworld-java:1
131
130
</pre >
132
131
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 >
133
142
The last step is to create the Function Application and the function deployment for it. This can be easily done using the Cloud UI.
134
143
135
144
<p >
You can’t perform that action at this time.
0 commit comments