Skip to content

Commit 3fb34cb

Browse files
authored
Merge pull request #28 from oracle-devrel/sachin-pikle-patch-1-1
Minor changes
2 parents 87060aa + b37808e commit 3fb34cb

File tree

1 file changed

+16
-16
lines changed
  • oci-build-examples/oci_devops_build_with_graalenterprise

1 file changed

+16
-16
lines changed

oci-build-examples/oci_devops_build_with_graalenterprise/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Using GraalVM Enterprise in OCI DevOps Build Pipelines
1+
# Using GraalVM Enterprise in OCI DevOps Build Pipelines to build a Java App
22

33
This sample shows how to use `Oracle GraalVM Enterprise Edition` in `OCI DevOps build pipelines` to build a Java hello world application. You can use this approach to build any high-performance Java application with GraalVM Enterprise and OCI DevOps.
44

@@ -28,7 +28,7 @@ This sample shows how to use `Oracle GraalVM Enterprise Edition` in `OCI DevOps
2828

2929
- Create an OCI build pipeline.
3030
- Make a build using Oracle GraalVM Enterprise edition.
31-
- Here the focus will be on Build instructions and OCI build pipeline
31+
- Here the focus will be on the build specification and DevOps build pipeline
3232

3333

3434
## Procedure to use this illustration.
@@ -56,8 +56,6 @@ ALL {resource.type = 'devopsrepository', resource.compartment.id = 'COMPARMENT O
5656
```markdown
5757
Allow dynamic-group "NAME OF THE DynamicGroup" to manage repos in compartment "COMPARTMENT NAME"
5858
Allow dynamic-group "NAME OF THE DynamicGroup" to use ons-topics in compartment "COMPARTMENT NAME"
59-
60-
Allow dynamic-group "NAME OF THE DynamicGroup" to manage repos in compartment "COMPARTMENT NAME"
6159
```
6260

6361
- Switch back to OCI DevOps Project and create an OCI Code repo - https://docs.oracle.com/en-us/iaas/Content/devops/using/create_repo.htm#create_repo
@@ -68,7 +66,7 @@ Allow dynamic-group "NAME OF THE DynamicGroup" to manage repos in compartment "C
6866

6967
![](images/oci_coderepo_files.png)
7068

71-
- You may use other support version control repos as well (like Github.com,Bitbucket.com, Bitbucket Cloud etc). You may also need to adjust the policies according to connection and setup external connections accordingly - https://docs.oracle.com/en-us/iaas/Content/devops/using/create_connection.htm
69+
- You may use other supported version control repos as well (like Github.com, Bitbucket.com, Bitbucket Cloud, etc.). You may also need to adjust the policies according to the connection and setup external connections accordingly - https://docs.oracle.com/en-us/iaas/Content/devops/using/create_connection.htm
7270

7371
- Create a new build pipeline. - https://docs.oracle.com/en-us/iaas/Content/devops/using/create_buildpipeline.htm
7472

@@ -93,14 +91,14 @@ Allow dynamic-group "NAME OF THE DynamicGroup" to manage repos in compartment "C
9391

9492
## Take a closer look at the build instructions below
9593

96-
To install and use GraalVM Enterprise in the DevOps build pipeline, the build specification file is as follows:
94+
To install and use GraalVM Enterprise in the DevOps build pipeline, the build specification file is as follows:
9795

9896
1. Add the following command to install one or more required GraalVM Enterprise components. For example, this command installs Native Image along with the Java Development Kit (JDK) and other necessary dependencies.
9997

10098
```shell
10199
steps:
102100
- type: Command
103-
name: "Install GraalVM 22.x Native Image for Java17"
101+
name: "Install GraalVM Enterprise 22.x Native Image for Java17"
104102
command: |
105103
yum -y install graalvm22-ee-17-native-image
106104
```
@@ -138,16 +136,17 @@ To install and use GraalVM Enterprise in the DevOps build pipeline, the build s
138136
mvn --no-transfer-progress -Pnative -DskipTests package
139137
```
140138

141-
Here's the complete [build specification](build_spec.yaml) file.
142-
143-
5. The executable file can be found under path target/my-app.
139+
5. The executable file can be found under `target/my-app`.
144140

145141
```markdown
146142
- name: app_native_executable
147143
type: BINARY
148144
location: target/my-app
149145
```
150146

147+
Here's the complete [build specification](build_spec.yaml) file.
148+
149+
151150
## How to export the executable file outside of the build pipeline stage.
152151
153152
The following instructions will help you to export the `executable app file` to OCI Artifactory and which can then be used in the further stage including deployment pipelines.
@@ -174,7 +173,7 @@ The following instructions will help you to export the `executable app file` to
174173
175174
![](images/oci_devops_artifact_3.png)
176175
177-
- Under `Build pipeline ` use the `+` icon after the current stage and add a new stage named `Deliver artifacts`
176+
- Under `Build pipeline` use the `+` icon after the current stage and add a new stage named `Deliver artifacts`
178177
179178
![](images/oci_build_deliverartifact.png)
180179
@@ -210,7 +209,7 @@ The following instructions will help you to export the `executable app file` to
210209

211210
![](images/oci_artifact.png)
212211

213-
- The exported executable can be used on any of the supporting infrastructures to execute or can use to deploy via `OCI deployment pipeline ` to compute, container or function resources.
212+
- The exported executable can be used on any of the supporting infrastructures to execute or can use to deploy via `OCI deployment pipeline` to compute, container or function resources.
214213

215214
## Optional - Run build with more verbose output.
216215

@@ -220,13 +219,13 @@ The following instructions will help you to export the `executable app file` to
220219

221220
![](images/oci_buildstage_details.png)
222221

223-
- Change `Build spec file path ` as `build_spec_verbose.yaml` and `Save changes`
222+
- Change `Build spec file path` as `build_spec_verbose.yaml` and `Save changes`
224223

225224
![](images/oci_buildspec_verbose.png)
226225

227-
- Do another manal run for the build pipeline and you will see more verbose build logs.
226+
- Do another manual run for the build pipeline and you will see more verbose build logs.
228227

229-
## Sample Build Logs (Non-verbose mode)
228+
## Sample Build Logs
230229

231230
1. The `yum install` build log statements should be similar to:
232231

@@ -287,7 +286,8 @@ The following instructions will help you to export the `executable app file` to
287286
References
288287
==========
289288

290-
- Oracle Cloud Infrastructure DevOps - https://docs.oracle.com/en-us/iaas/Content/devops/using/home.htm
289+
- Using GraalVM Enterprise in DevOps Build Pipelines - https://docs.oracle.com/en-us/iaas/Content/devops/using/graalvm.htm
290+
- Oracle Cloud Infrastructure DevOps - https://docs.oracle.com/en-us/iaas/Content/devops/using/home.htm
291291
- Oracle Graal VM Enterprise - https://www.oracle.com/java/graalvm/
292292

293293
Contributors

0 commit comments

Comments
 (0)