Skip to content

Commit e0da4b4

Browse files
Prefer latest samples for Dockerfile container.
1 parent e946abe commit e0da4b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

samples/sample_container/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ USER root
4949

5050
RUN microdnf module disable python36 && \
5151
microdnf module enable python39 && \
52-
microdnf install python39 python39-pip python39-setuptools python39-wheel vim && \
52+
microdnf install python39 python39-pip python39-setuptools python39-wheel vim vi && \
5353
microdnf clean all
5454

5555
WORKDIR /samples/
5656

5757
COPY setup.py setup.py
5858

59-
RUN curl -LO https://github.com/oracle/python-oracledb/archive/refs/tags/v1.0.0.zip && \
60-
unzip v1.0.0.zip && mv python-oracledb-1.0.0/samples/* . && \
61-
/bin/rm -rf python-oracledb-1.0.0 samples v1.0.0.zip && \
59+
RUN curl -LO https://github.com/oracle/python-oracledb/archive/refs/heads/main.zip && \
60+
unzip main.zip && mv python-oracledb-main/samples/* . && \
61+
/bin/rm -rf python-oracledb-main samples main.zip && \
6262
cat create_schema.py >> /samples/setup.py && chown -R oracle.oinstall /samples/
6363

6464
USER oracle

samples/sample_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# PYO_SAMPLES_ADMIN_USER: privileged administrative user for setting up samples
3535
# PYO_SAMPLES_ADMIN_PASSWORD: password of PYO_SAMPLES_ADMIN_USER
3636
# PYO_SAMPLES_CONNECT_STRING: database connection string
37-
# PYO_SAMPLES_DRCP_CONNECT_STRING: database connecttion string for DRCP
37+
# PYO_SAMPLES_DRCP_CONNECT_STRING: database connection string for DRCP
3838
# PYO_SAMPLES_MAIN_USER: user to be created. Used for most samples
3939
# PYO_SAMPLES_MAIN_PASSWORD: password for PYO_SAMPLES_MAIN_USER
4040
# PYO_SAMPLES_EDITION_USER: user to be created for editiong samples

0 commit comments

Comments
 (0)