Skip to content

Commit 221b8e9

Browse files
committedFeb 5, 2025
split oracle
1 parent 22c31fb commit 221b8e9

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed
 

‎run-oracle.sh ‎_run-oracle.sh

File renamed without changes.

‎env-oracle.sh

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
set -euo pipefail
44

5-
ORACLE_VERSION=latest
65
CONTAINER_NAME=mb-oracle-db
76
HOST_PORT=1521
87
DB_NAME=XEPDB1

‎run-oracle-latest.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
SOURCE_DIR=`dirname "${BASH_SOURCE[0]}"`
4+
5+
ORACLE_VERSION=latest $SOURCE_DIR/_run-oracle.sh

‎run-oracle-oldest.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
SOURCE_DIR=`dirname "${BASH_SOURCE[0]}"`
4+
5+
ORACLE_VERSION=$(curl -s --request GET --url https://endoflife.date/api/oracle-database.json |
6+
jq -r --arg today $(date +%Y%m%d) 'map(select(((.eol == false) or ((.eol | gsub("-";"") | tonumber) > ($today | tonumber))) and (.cycle | tonumber > 19))) | min_by(.cycle) | .cycle')
7+
8+
ORACLE_VERSION=$ORACLE_VERSION $SOURCE_DIR/_run-oracle.sh

0 commit comments

Comments
 (0)
Please sign in to comment.