Skip to content

Commit df92267

Browse files
authored
Update test package oracle (#2390)
Update system test configuration files to support Elastic Agents based on UBI and Ubuntu 24 docker images.
1 parent 23420eb commit df92267

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

test/packages/parallel/oracle/data_stream/memory/_dev/test/system/test-memory-config.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,35 @@ agent:
77
language: "sh"
88
contents: |
99
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
1228
else
13-
apt-get update && apt-get -y install libaio1 wget unzip
29+
echo "Unsupported OS"
30+
exit 1
1431
fi
1532
mkdir -p /opt/oracle
1633
cd /opt/oracle
1734
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
1835
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
1936
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
2139
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/
2240
pre_start_script:
2341
language: "sh"

0 commit comments

Comments
 (0)