mirror of https://github.com/google/oss-fuzz.git
oracle-py-cx: fix build (#8895)
This is an effort to fix: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51298 Signed-off-by: David Korczynski <david@adalogics.com> Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
parent
ea3286687f
commit
d2dc215658
|
@ -16,8 +16,8 @@
|
||||||
|
|
||||||
FROM gcr.io/oss-fuzz-base/base-builder-python
|
FROM gcr.io/oss-fuzz-base/base-builder-python
|
||||||
RUN mkdir -p /opt/oracle
|
RUN mkdir -p /opt/oracle
|
||||||
WORKDIR /opt/oracle
|
RUN cd /opt/oracle && \
|
||||||
RUN wget https://download.oracle.com/otn_software/linux/instantclient/216000/instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
|
wget https://download.oracle.com/otn_software/linux/instantclient/216000/instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
|
||||||
unzip instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
|
unzip instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
|
||||||
rm instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
|
rm instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
|
||||||
echo /opt/oracle/instantclient_21_6 > /etc/ld.so.conf.d/oracle-instantclient.conf && \
|
echo /opt/oracle/instantclient_21_6 > /etc/ld.so.conf.d/oracle-instantclient.conf && \
|
||||||
|
@ -27,9 +27,9 @@ ENV LD_LIBRARY_PATH=/opt/oracle/instantclient_21_6
|
||||||
RUN apt-get install libaio1 libaio-dev
|
RUN apt-get install libaio1 libaio-dev
|
||||||
RUN pip3 install --upgrade pip && pip install requests
|
RUN pip3 install --upgrade pip && pip install requests
|
||||||
|
|
||||||
RUN git clone https://github.com/oracle/python-cx_Oracle oracle-py-cx
|
RUN git clone https://github.com/oracle/python-cx_Oracle oracle-py-cx && \
|
||||||
WORKDIR oracle-py-cx
|
cd oracle-py-cx && \
|
||||||
RUN git submodule init && \
|
git submodule init && \
|
||||||
git submodule update
|
git submodule update
|
||||||
|
|
||||||
COPY build.sh fuzz_*.py $SRC/
|
COPY build.sh fuzz_*.py $SRC/
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
cd $SRC/oracle-py-cx
|
||||||
pip3 install .
|
pip3 install .
|
||||||
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
|
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
|
||||||
compile_python_fuzzer $fuzzer --add-binary /opt/oracle/instantclient_21_6:./ --add-binary /usr/lib/x86_64-linux-gnu/:./
|
compile_python_fuzzer $fuzzer --add-binary /opt/oracle/instantclient_21_6:./ --add-binary /usr/lib/x86_64-linux-gnu/:./
|
||||||
|
|
Loading…
Reference in New Issue