Skip to content

Commit 56cdbc9

Browse files
Update _index.md (#801)
an example deploying a graalvm native microservice
1 parent 27b49cd commit 56cdbc9

File tree

1 file changed

+10
-3
lines changed
  • docs-source/spring/content/development/cli

1 file changed

+10
-3
lines changed

docs-source/spring/content/development/cli/_index.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,15 @@ The following is an example development workflow using the CLI:
314314
binding resources... successful
315315
creating deployment and service... successfully deployed
316316
```
317+
318+
or, for native compiled microservices, add **--java-version container-registry.oracle.com/os/oraclelinux:7-slim** to have a compact image and **--graalvm-native** to specify the file provided is an executable .exec:
319+
320+
```cmd
321+
oractl:>deploy --app-name cloudn --service-name account --artifact-path obaas/myserv/target/accounts-0.0.1-SNAPSHOT.jar.exec --image-version 0.0.1 --graalvm-native --java-version container-registry.oracle.com/os/oraclelinux:7-slim
322+
```
317323

318-
6. Use the `list` command to show details of the microservice deployed in the previous step. For example:
324+
325+
7. Use the `list` command to show details of the microservice deployed in the previous step. For example:
319326

320327
```cmd
321328
oractl:>help list
@@ -358,7 +365,7 @@ The following is an example development workflow using the CLI:
358365
}name:myserv kind:null
359366
```
360367

361-
7. Use the `config` command to view and update the configuration managed by the Spring Cloud Config server. More information about the configuration server can be found at this link: [Spring Config Server](../../platform/config/)
368+
8. Use the `config` command to view and update the configuration managed by the Spring Cloud Config server. More information about the configuration server can be found at this link: [Spring Config Server](../../platform/config/)
362369

363370
```cmd
364371
oractl:>help config
@@ -561,7 +568,7 @@ The following is an example development workflow using the CLI:
561568
400 : "Couldn't find any property for submitted query."
562569
```
563570
564-
8. Use the `GraalVM Compile Commands` to:
571+
9. Use the `GraalVM Compile Commands` to:
565572
566573
* Upload a **.jar** file to the Oracle Backend for Spring Boot and microservices and its GraalVM compiler service.
567574
* Start a compilation of your microservice to produce an executable native **.exec** file.

0 commit comments

Comments
 (0)