Skip to content

Commit e57426d

Browse files
Christopher JonesDjelibeybi
authored andcommitted
Add Python 3.9 image with python-oracledb
Signed-off-by: Christopher Jones <[email protected]>
1 parent e1ed15e commit e57426d

File tree

1 file changed

+16
-0
lines changed
  • OracleLinuxDevelopers/oraclelinux8/python/3.9-oracledb

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) 2024 Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
FROM ghcr.io/oracle/oraclelinux:8
5+
6+
RUN dnf -y module disable python36 && \
7+
dnf -y module enable python39 && \
8+
dnf -y install python39 python39-pip python39-setuptools python39-wheel && \
9+
dnf -y install oraclelinux-developer-release-el8 && \
10+
dnf -y install python39-oracledb && \
11+
# Optionally install Oracle Instant Client to use python-oracledb Thick mode
12+
# dnf -y install oracle-instantclient-release-23ai-el8 && \
13+
# dnf -y install oracle-instantclient-basic && \
14+
rm -rf /var/cache/dnf
15+
16+
CMD ["/bin/python3", "--version"]

0 commit comments

Comments
 (0)