Skip to content

Commit

Permalink
Update _index.md (#801)
Browse files Browse the repository at this point in the history
an example deploying a graalvm native microservice
  • Loading branch information
corradodebari authored Dec 14, 2023
1 parent 27b49cd commit 56cdbc9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs-source/spring/content/development/cli/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,15 @@ The following is an example development workflow using the CLI:
binding resources... successful
creating deployment and service... successfully deployed
```

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:

```cmd
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
```

6. Use the `list` command to show details of the microservice deployed in the previous step. For example:

7. Use the `list` command to show details of the microservice deployed in the previous step. For example:

```cmd
oractl:>help list
Expand Down Expand Up @@ -358,7 +365,7 @@ The following is an example development workflow using the CLI:
}name:myserv kind:null
```

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/)
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/)

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

0 comments on commit 56cdbc9

Please sign in to comment.