qt: move Qt source clones to subfolder (#8734)

The current Docker image as it is created does not allow the use of
external sources to test fixes as the mount will come on top of all the
SRC content which has more than just the Qt sources.

This patch changes that and moves the clone to a dedicated folder so it
will follow the same structure as the Qt sources and it will possible to
mount them again to test fixes.

Fixes #7634
This commit is contained in:
Samuel Gaist 2022-10-10 20:04:23 +02:00 committed by GitHub
parent d0b39f3035
commit f3bf7a6a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -15,11 +15,18 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y libssl-dev ninja-build libc6-dev:i386
RUN git clone --depth 1 https://github.com/AFLplusplus/AFLplusplus.git myaflplusplus && \
cp -r myaflplusplus/dictionaries afldictionaries && \
cp -r myaflplusplus/testcases afltestcases && \
rm -rf myaflplusplus
# Simulate a classic Qt folder structure
RUN mkdir qt
WORKDIR $SRC/qt
RUN git clone --branch dev --depth 1 git://code.qt.io/qt/qt5.git && \
cp -r qt5/cmake . && \
rm -rf qt5