mirror of
https://github.com/ONLYOFFICE/Docker-Docs.git
synced 2025-04-18 15:04:02 +03:00
Add the ability to connect to oracle
Co-authored-by: VyacheslavSemin <vyacheslav.semin@onlyoffice.com> Co-committed-by: VyacheslavSemin <vyacheslav.semin@onlyoffice.com>
This commit is contained in:
parent
d781c6d42b
commit
12128a68bd
11
Dockerfile
11
Dockerfile
@ -271,7 +271,7 @@ ENV DS_VERSION_HASH=$DS_VERSION_HASH
|
||||
COPY --from=ds-base /usr/local/bin/dumb-init /usr/local/bin/dumb-init
|
||||
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
|
||||
RUN apt update && \
|
||||
apt-get install -y curl wget gnupg2 lsb-release jq xxd procps && \
|
||||
apt-get install -y curl wget gnupg2 lsb-release jq xxd procps libaio1 unzip && \
|
||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
||||
apt-get update && \
|
||||
@ -281,11 +281,20 @@ RUN apt update && \
|
||||
-s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && \
|
||||
chmod +x ./kubectl && \
|
||||
mv ./kubectl /usr/local/bin/kubectl && \
|
||||
mkdir -p ~/oracle/instantclient && \
|
||||
wget -O ~/oracle/basic.zip https://download.oracle.com/otn_software/linux/instantclient/2370000/instantclient-basic-linux.x64-23.7.0.25.01.zip && \
|
||||
wget -O ~/oracle/sqlplus.zip https://download.oracle.com/otn_software/linux/instantclient/2370000/instantclient-sqlplus-linux.x64-23.7.0.25.01.zip && \
|
||||
unzip ~/oracle/basic.zip -d ~/oracle/instantclient && \
|
||||
unzip -o ~/oracle/sqlplus.zip -d ~/oracle/instantclient && \
|
||||
mkdir /oracle && \
|
||||
mv ~/oracle/instantclient/instantclient_23_7 /oracle/instantclient && \
|
||||
rm -rf ~/oracle && \
|
||||
groupadd --system -g 1006 ds && \
|
||||
useradd --system -g ds -d /home/ds -s /bin/bash -u 101 ds && \
|
||||
mkdir /scripts && \
|
||||
chown -R ds:ds /scripts && \
|
||||
chmod +x /usr/local/bin/dumb-init
|
||||
COPY scripts/sqlplus /usr/bin/sqlplus
|
||||
USER ds
|
||||
|
||||
FROM statsd/statsd AS metrics
|
||||
|
3
scripts/sqlplus
Executable file
3
scripts/sqlplus
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
export LD_LIBRARY_PATH=/oracle/instantclient
|
||||
/oracle/instantclient/sqlplus "$@"
|
Loading…
x
Reference in New Issue
Block a user