Make CIFuzz more debuggable by allowing one to run off a branch (#4666)

Make it possible to run CIFuzz from a non-master branch
This commit is contained in:
jonathanmetzman 2020-11-24 06:32:23 -08:00 committed by GitHub
parent 9d183d9bb5
commit a85de2b3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 6 deletions

1
infra/.dockerignore Normal file
View File

@ -0,0 +1 @@
test_files

View File

@ -13,12 +13,15 @@
# limitations under the License.
#
################################################################################
# Docker image to run CIFuzz in.
# Docker image to run the CIFuzz action build_fuzzers in.
FROM gcr.io/oss-fuzz-base/cifuzz-base
# Copies your code file from action repository to the container
COPY build_fuzzers_entrypoint.py /opt/build_fuzzers_entrypoint.py
COPY cifuzz/actions/build_fuzzers/build_fuzzers_entrypoint.py /opt/build_fuzzers_entrypoint.py
# Python file to execute when the docker container starts up
ENTRYPOINT ["python3", "/opt/build_fuzzers_entrypoint.py"]
# Update infra source code.
ADD . ${OSS_FUZZ_ROOT}/infra

View File

@ -16,7 +16,7 @@ inputs:
default: 'address'
runs:
using: 'docker'
image: 'Dockerfile'
image: '../../../build_fuzzers.Dockerfile'
env:
OSS_FUZZ_PROJECT_NAME: ${{ inputs.oss-fuzz-project-name }}
DRY_RUN: ${{ inputs.dry-run}}

View File

@ -17,7 +17,7 @@ inputs:
default: 'address'
runs:
using: 'docker'
image: 'Dockerfile'
image: '../../../run_fuzzers.Dockerfile'
env:
OSS_FUZZ_PROJECT_NAME: ${{ inputs.oss-fuzz-project-name }}
FUZZ_SECONDS: ${{ inputs.fuzz-seconds }}

View File

@ -35,3 +35,4 @@ RUN apt-get update && apt-get install docker-ce docker-ce-cli containerd.io -y
ENV OSS_FUZZ_ROOT=/opt/oss-fuzz
ADD . ${OSS_FUZZ_ROOT}
RUN rm -rf ${OSS_FUZZ_ROOT}/infra

View File

@ -13,12 +13,15 @@
# limitations under the License.
#
################################################################################
# Docker image to run CIFuzz run fuzzers action in.
# Docker image to run the CIFuzz action run_fuzzers in.
FROM gcr.io/oss-fuzz-base/cifuzz-base
# Copies your code file from action repository to the container
COPY run_fuzzers_entrypoint.py /opt/run_fuzzers_entrypoint.py
COPY cifuzz/actions/run_fuzzers/run_fuzzers_entrypoint.py /opt/run_fuzzers_entrypoint.py
# Python file to execute when the docker container starts up
ENTRYPOINT ["python3", "/opt/run_fuzzers_entrypoint.py"]
# Copy infra source code.
ADD . ${OSS_FUZZ_ROOT}/infra