Skip to content

Commit a4a7a25

Browse files
committed
update README.md
1 parent 7a31c73 commit a4a7a25

File tree

1 file changed

+10
-0
lines changed
  • java/autonomousdb-wallet-secret-sample

1 file changed

+10
-0
lines changed

java/autonomousdb-wallet-secret-sample/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ If you want to configure a previously downloaded wallet you can just create the
1717
```sh
1818
kubectl create secret generic instance-wallet --from-file=<path-to-wallets-unzipped-folder>
1919
```
20+
2021
The Java microservice retrieves username, password and url also from a secret. To create it you can use the following script as an example:
2122

2223
```sh
@@ -25,6 +26,7 @@ kubectl create secret generic user-jdbc \
2526
--from-literal=password='<password>' \
2627
--from-literal=url='jdbc:oracle:thin:@<alias-in-tnsnames.ora>'
2728
```
29+
2830
## Install, build and deploy
2931

3032
It is as simple as to build the maven project, create the docker image and deploy the Pod:
@@ -35,6 +37,14 @@ docker build -t adb-health-check target
3537
kubectl apply -f target/app.yaml
3638
```
3739

40+
If you want to run the application as a [GraalVM Native Image](https://www.graalvm.org/reference-manual/native-image/), simply specify the different Dockerfile `target/Dockerfile.nativeimage` and repeat the rest of the steps.
41+
42+
```sh
43+
mvn clean install
44+
docker build -f target/Dockerfile.nativeimage -t adb-health-check target
45+
kubectl apply -f target/app.yaml
46+
```
47+
3848
## Usage
3949

4050
After successsful installation you can validate first connectivity through the Pod's log:

0 commit comments

Comments
 (0)