Skip to content

Commit 5a4a5fc

Browse files
authored
Add terraform state path on deploy script and improve readme for JDK inclusion in PATH env var (#23)
1 parent 617a6f3 commit 5a4a5fc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hols/oci-basic-setup/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ The goal of this task is to prepare a basic infrastructure environment comprised
8989
```
9090
3. Set the JAVA_HOME and PATH environment variables to include the corresponding directories from the extracted JDK binaries.
9191
```shell
92-
export JAVA_HOME=~/jdk-21.0.7/
93-
export PATH=$JAVA_HOME/bin/:$PATH
92+
export JAVA_HOME=$(ls -t -d "$(pwd)"/jdk*/ | head -n 1)
93+
export PATH=${JAVA_HOME}bin/:$PATH
9494
```
9595
**Note:** If you want the above environment variable settings to persist between Cloud Shell sessions, add the definitions to your `~/.bashrc` file.
9696
3. Make sure that Maven 3.8 or higher exists.

hols/oci-basic-setup/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ JDK_TAR_GZ_INSTALLER="https://download.oracle.com/java/21/latest/jdk-21_linux-x6
2121
HELIDON_MP_APP_ZIP=oci-mp-server.zip
2222
DEFAULT_PROJECT_PATH=~/oci-mp
2323
SCRIPT_DIR=$(dirname "$0")
24+
export TERRAFORM_TFSTATE=${SCRIPT_DIR}/terraform.tfstate
2425
# shellcheck disable=SC1091
2526
source "${SCRIPT_DIR}"/get_common.sh
2627

0 commit comments

Comments
 (0)