Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gvenzl/oracle-free:latest #231

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
truffleruby-head
]
env:
ORACLE_HOME: /usr/lib/oracle/21/client64
LD_LIBRARY_PATH: /usr/lib/oracle/21/client64/lib
ORACLE_HOME: /opt/oracle/instantclient_23_3
LD_LIBRARY_PATH: /opt/oracle/instantclient_23_3
NLS_LANG: AMERICAN_AMERICA.AL32UTF8
TNS_ADMIN: ./ci/network/admin
DATABASE_NAME: XEPDB1
DATABASE_NAME: FREEPDB1
TZ: Europe/Riga
DATABASE_SYS_PASSWORD: Oracle18
DATABASE_VERSION: 21.3.0.0
DATABASE_VERSION: 23.3.0.23

services:
oracle:
image: gvenzl/oracle-xe:latest
image: gvenzl/oracle-free:latest
ports:
- 1521:1521
env:
Expand All @@ -58,14 +58,16 @@ jobs:
sudo apt-get install alien
- name: Download Oracle client
run: |
wget -q https://download.oracle.com/otn_software/linux/instantclient/2110000/oracle-instantclient-basic-21.10.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/2110000/oracle-instantclient-sqlplus-21.10.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/2110000/oracle-instantclient-devel-21.10.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/23c/instantclient-basic-linux.x64-23.3.0.0.0.zip
wget -q https://download.oracle.com/otn_software/linux/instantclient/23c/instantclient-sdk-linux.x64-23.3.0.0.0.zip
wget -q https://download.oracle.com/otn_software/linux/instantclient/23c/instantclient-sqlplus-linux.x64-23.3.0.0.0.zip
- name: Install Oracle client
run: |
sudo alien -i oracle-instantclient-basic-21.10.0.0.0-1.x86_64.rpm
sudo alien -i oracle-instantclient-sqlplus-21.10.0.0.0-1.x86_64.rpm
sudo alien -i oracle-instantclient-devel-21.10.0.0.0-1.x86_64.rpm
sudo mkdir -p /opt/oracle/
sudo unzip instantclient-basic-linux.x64-23.3.0.0.0.zip -d /opt/oracle/
sudo unzip -o instantclient-sdk-linux.x64-23.3.0.0.0.zip -d /opt/oracle/
sudo unzip -o instantclient-sqlplus-linux.x64-23.3.0.0.0.zip -d /opt/oracle/
echo "/opt/oracle/instantclient_23_3" >> $GITHUB_PATH
- name: Install JDBC Driver
run: |
wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/211/ojdbc11.jar -O ./lib/ojdbc11.jar
Expand Down
4 changes: 2 additions & 2 deletions ci/network/admin/tnsnames.ora
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
XEPDB1 =
FREEPDB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = XEPDB1)
(SERVICE_NAME = FREEPDB1)
)
)
2 changes: 1 addition & 1 deletion ci/setup_accounts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ev

${ORACLE_HOME}/bin/sqlplus system/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} <<SQL
sqlplus system/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} <<SQL
@@spec/support/unlock_and_setup_hr_user.sql
@@spec/support/create_arunit_user.sql
exit
Expand Down
Loading