File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
test/packages/parallel/oracle/data_stream/memory/_dev/test/system Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 7
7
language : " sh"
8
8
contents : |
9
9
set -eu
10
- if grep wolfi /etc/os-release > /dev/null ; then
11
- apk update && apk add libaio wget unzip
10
+ if grep -q wolfi /etc/os-release ; then
11
+ apk update
12
+ apk add libaio wget unzip
13
+ elif grep -q "Red Hat" /etc/os-release ; then
14
+ microdnf update -y
15
+ microdnf install -y libaio wget unzip
16
+ microdnf clean all
17
+ elif grep -q "Ubuntu" /etc/os-release ; then
18
+ apt-get update
19
+ if grep -q "Ubuntu 24" /etc/os-release ; then
20
+ # Error when installing libaio1
21
+ # Package libaio1 is not available, but is referred to by another package.
22
+ apt-get -y install libaio1t64 wget unzip
23
+ # Applied fix described in: https://forums.oracle.com/ords/apexds/post/instant-client-on-ubuntu-24-04-noble-numbat-7244
24
+ ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
25
+ else
26
+ apt-get -y install libaio1 wget unzip
27
+ fi
12
28
else
13
- apt-get update && apt-get -y install libaio1 wget unzip
29
+ echo "Unsupported OS"
30
+ exit 1
14
31
fi
15
32
mkdir -p /opt/oracle
16
33
cd /opt/oracle
17
34
wget https://download.oracle.com/otn_software/linux/instantclient/214000/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip && unzip -o instantclient-basic-linux.x64-21.4.0.0.0dbru.zip || exit 1
18
35
wget https://download.oracle.com/otn_software/linux/instantclient/217000/instantclient-sqlplus-linux.x64-21.7.0.0.0dbru.zip && unzip -o instantclient-sqlplus-linux.x64-21.7.0.0.0dbru.zip || exit 1
19
36
mkdir -p /etc/ld.so.conf.d/
20
- echo /opt/oracle/instantclient_21_4 > /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig || exit 1
37
+ echo /opt/oracle/instantclient_21_4 > /etc/ld.so.conf.d/oracle-instantclient.conf
38
+ ldconfig
21
39
cp /opt/oracle/instantclient_21_7/glogin.sql /opt/oracle/instantclient_21_7/libsqlplus.so /opt/oracle/instantclient_21_7/libsqlplusic.so /opt/oracle/instantclient_21_7/sqlplus /opt/oracle/instantclient_21_4/
22
40
pre_start_script :
23
41
language : " sh"
You can’t perform that action at this time.
0 commit comments