-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init for graalvm workshops * init for graalvm workshops * init for graalvm workshops * init for graalvm workshops * init for graalvm workshops * init for graalvm workshops * init for graalvm workshops * init for graalvm workshops * init for graalvm workshops
- Loading branch information
1 parent
cf55356
commit 745d709
Showing
10 changed files
with
206 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Develop with Oracle Database 23ai and GraalVM using Quarkus | ||
|
||
## Introduction | ||
|
||
This lab walks you through the steps to develop with Oracle Database 23ai and GraalVM using Quarkus | ||
Estimated Time: 30 minutes | ||
|
||
### Objectives | ||
|
||
In this lab, you will: | ||
- Develop with Oracle Database 23ai and GraalVM using Quarkus | ||
|
||
### Prerequisites | ||
|
||
This lab assumes you have: | ||
- Provisioned environment with Git and Maven (Cloud Shell). | ||
|
||
|
||
## Task 1: Clone the repos | ||
|
||
1. Clone the following repos: | ||
|
||
``` | ||
<copy> | ||
git clone https://github.com/juarezjuniorgithub/jdbc-driver-graalvm-nativeimage.git | ||
</copy> | ||
``` | ||
And cd into the directory... | ||
``` | ||
<copy> | ||
cd jdbc-driver-graalvm-nativeimage | ||
</copy> | ||
``` | ||
## Task 2: Build and run | ||
1. To ensure that the sample application is configured to talk to the | ||
Oracle ATP database running in OCI, verify that the | ||
following lines (among others) are set to correct values in | ||
`src/main/resources/META-INF/microprofile-config.properties`: | ||
```properties | ||
javax.sql.DataSource.example.connectionFactoryClassName=oracle.jdbc.pool.OracleDataSource | ||
javax.sql.DataSource.example.URL=jdbc:oracle:thin:@<tnsServiceName>?TNS_ADMIN=/path/to/wallet | ||
javax.sql.DataSource.example.user=ADMIN | ||
javax.sql.DataSource.example.password=<password> | ||
``` | ||
|
||
*Note that the values of the password and path to wallet are those that were collected during setup. | ||
|
||
2. Build and run | ||
|
||
``` | ||
<copy> | ||
mvn clean package exec:java -Dexec.mainClass="com.oracle.jdbc.graalvm.App" | ||
</copy> | ||
``` | ||
3. Now build and run the native image. This will take some time (up to 10 minutes) | ||
``` | ||
<copy> | ||
mvn -Pnative packagemvn -Pnative package | ||
</copy> | ||
``` | ||
``` | ||
<copy> | ||
target/jdbc-driver-graalvm-nativeimage | ||
</copy> | ||
``` | ||
## Acknowledgements | ||
* **Author** - Paul Parkinson, Architect and Developer Advocate; Juarez Barbosa, Sr. Principal Java Developer Evangelist, Java Database Access | ||
* **Last Updated By/Date** - Paul Parkinson, 2024 |
Binary file modified
BIN
+41.2 KB
(120%)
microservices-with-converged-db/setup/images/copy-comp-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.33 KB
(140%)
microservices-with-converged-db/setup/images/correct-comp-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.97 KB
(130%)
microservices-with-converged-db/setup/images/enter-comp-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.06 KB
(130%)
microservices-with-converged-db/setup/images/select-comp-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
microservices-with-converged-db/workshops/mlh-event-graalvmquarkus/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content="Oracle LiveLabs gives you access to Oracle's products to run a wide variety of labs and workshops; allowing you to experience our best technology, live!"> | ||
<title>Oracle LiveLabs</title> | ||
|
||
<script src="https://oracle-livelabs.github.io/common/redwood-hol/js/jquery-1.11.0.min.js"></script> | ||
<script src="https://oracle-livelabs.github.io/common/redwood-hol/js/jquery-ui-1.10.4.custom.js"></script> | ||
<script src="https://oracle-livelabs.github.io/common/redwood-hol/js/main.min.js"></script> | ||
|
||
<link rel="stylesheet" href="https://oracle-livelabs.github.io/common/redwood-hol/css/style.min.css" /> | ||
<link rel="shortcut icon" href="https://oracle-livelabs.github.io/common/redwood-hol/img/favicon.ico" /> | ||
</head> | ||
|
||
<body> | ||
<header class="hol-Header" role="banner"> | ||
<div class="hol-Header-wrap"> | ||
<div class="hol-Header-logo"><span>Oracle LiveLabs</span></div> | ||
<a href="https://livelabs.oracle.com" target="_blank" id="livelabs" title="Oracle LiveLabs"></a> | ||
<div class="hol-Header-actions"> | ||
<button id="openNav" class="hol-Header-button hol-Header-button--menu rightNav" aria-label="Open Menu" | ||
title="Open Menu"> | ||
<span class="hol-Header-toggleIcon"></span> | ||
</button> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<div id="container"> | ||
<div id="leftNav"> | ||
<div id="toc"></div> | ||
</div> | ||
<div id="contentBox"> | ||
<main class="hol-Content" id="module-content"></main> | ||
</div> | ||
</div> | ||
|
||
<footer class="hol-Footer"> | ||
<a class="hol-Footer-topLink" href="#top">Return to Top</a> | ||
<div id="footer-banner"><div class="footer-row"> | ||
<div class="footer-content"><ul class="footer-links"> | ||
<li><a href="https://docs.oracle.com/pls/topic/lookup?ctx=en/legal&id=cpyr" target="_blank" aria-label="Open a new window to Oracle legal notices" data-lbl="copyright">© Oracle</a></li> | ||
<li><a href="https://www.oracle.com/corporate/index.html" target="_blank" aria-label="Open a new window to learn more about oracle" data-lbl="about-oracle">About Oracle</a></li> | ||
<li><a href="https://www.oracle.com/corporate/contact/" target="_blank" aria-label="Open a new window to contact oracle" data-lbl="contact-us">Contact Us</a></li> | ||
<li class="footer-links-break"></li> | ||
<li><a href="https://docs.oracle.com/en/browseall.html" target="_blank" aria-label="Open a new window to products a-z" data-lbl="products-a-z">Products A-Z</a></li> | ||
<li><a href="https://www.oracle.com/legal/privacy/" target="_blank" aria-label="Open a new window to read more about Oracle terms of use and privacy" data-lbl="terms-of-use-and-privacy">Terms of Use & Privacy</a></li> | ||
<li><a href="https://www.oracle.com/legal/privacy/privacy-policy.html#11" target="_blank" aria-label="Open a new window to read more about managing Oracle cookie preferences" data-lbl="cookie-preferences">Cookie Preferences</a></li> | ||
<li><a href="https://www.oracle.com/legal/privacy/marketing-cloud-data-cloud-privacy-policy.html#adchoices" target="_blank" aria-label="Open a new window to ad choices" data-lbl="ad-choices">Ad Choices</a></li> | ||
<li class="footer-links-break"></li><li class="last"><a href="https://docs.oracle.com/pls/topic/lookup?ctx=en/legal&id=cpyr" target="_blank" aria-label="Open a new window to Oracle legal notices" data-lbl="copyright">© Oracle</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
</body> | ||
|
||
</html> |
28 changes: 28 additions & 0 deletions
28
microservices-with-converged-db/workshops/mlh-event-graalvmquarkus/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"workshoptitle": "Develop with Oracle Database 23ai and GraalVM using Quarkus", | ||
"help": "[email protected]", | ||
"tutorials": [ | ||
{ | ||
"title": "Introduction", | ||
"filename": "../../intro-graalvm/intro-graalvm.md" | ||
}, | ||
{ | ||
"title": "Get Started", | ||
"description": "Login to Oracle Cloud", | ||
"filename": "https://oracle-livelabs.github.io/common/labs/cloud-login/cloud-login-livelabs2.md" | ||
}, | ||
{ | ||
"title": "Lab 1: Setup", | ||
"filename": "../../setup/setup-graalvm-workshop.md" | ||
}, | ||
{ | ||
"title": "Lab 2: Configure, build and run an application that uses Oracle Database 23ai and GraalVM using Quarkus", | ||
"filename": "../../quarkus/quarkus.md" | ||
}, | ||
{ | ||
"title": "Need Help?", | ||
"description": "Solutions to Common Problems and Directions for Receiving Live Help", | ||
"filename":"https://oracle-livelabs.github.io/common/labs/need-help/need-help-livelabs.md" | ||
} | ||
] | ||
} |