[firefox] Install dependencies in Dockerfile (#4271)

This commit is contained in:
Tyson Smith 2020-08-06 15:39:27 -07:00 committed by GitHub
parent 3d7dc183d1
commit d51f86a4e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -15,14 +15,16 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt-get update && apt-get install -y --no-install-recommends \
libstdc++6 \
python \
gawk \
software-properties-common
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
libstdc++6
RUN git clone --depth 1 https://github.com/mozilla/gecko-dev mozilla-central
RUN git clone --depth 1 https://github.com/mozillasecurity/fuzzdata
WORKDIR mozilla-central
COPY build.sh target.c *.options mozconfig.* $SRC/
# Install dependencies.
ENV SHELL /bin/bash
RUN ./mach bootstrap --no-interactive --application-choice browser

View File

@ -42,9 +42,7 @@ FUZZ_TARGETS=(
export MOZ_OBJDIR=$WORK/obj-fuzz
export MOZCONFIG=$SRC/mozconfig.$SANITIZER
# Install dependencies.
export SHELL=/bin/bash
./mach bootstrap --no-interactive --application-choice browser
# Skip patches for now
rm tools/fuzzing/libfuzzer/patches/*.patch

View File

@ -1,3 +1,4 @@
mk_add_options AUTOCLOBBER=1
ac_add_options --disable-debug
ac_add_options --disable-elf-hack
ac_add_options --disable-jemalloc