2018-12-21 19:19:14 +00:00
|
|
|
# Copyright (C) 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
FROM gcr.io/oss-fuzz-base/base-builder
|
[clamav] Add flex, bison to Dockerfile (#3755)
Flex & Bison are needed to generate source files for yara syntax
support. While the generated source are currently in the clamav-devel
repo, the build system sometimes thinks the files must be regenerated.
In the future, these and the autotools generated files will be removed
from the clamav-devel repo and will need to be generated for every
build.
We're also planning to add CMake tooling (still a work in progress).
Once the generated files are removed, we'll either have ot build the
fuzz targets with CMake or bring in autoconf, automake, m4, libtool, and
pkg-config to generate the files in build.sh. At that time, we should
also update build.sh to build the dependencies statically, many of which
are missing at present meaning we're not getting great code coverage.
We'll also want to load a small signature set to improve code coverage
for the fuzz targets.
2020-05-03 21:28:30 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
flex bison \
|
2020-07-27 01:40:34 +00:00
|
|
|
automake autoconf pkg-config m4 libtool \
|
[clamav] Add flex, bison to Dockerfile (#3755)
Flex & Bison are needed to generate source files for yara syntax
support. While the generated source are currently in the clamav-devel
repo, the build system sometimes thinks the files must be regenerated.
In the future, these and the autotools generated files will be removed
from the clamav-devel repo and will need to be generated for every
build.
We're also planning to add CMake tooling (still a work in progress).
Once the generated files are removed, we'll either have ot build the
fuzz targets with CMake or bring in autoconf, automake, m4, libtool, and
pkg-config to generate the files in build.sh. At that time, we should
also update build.sh to build the dependencies statically, many of which
are missing at present meaning we're not getting great code coverage.
We'll also want to load a small signature set to improve code coverage
for the fuzz targets.
2020-05-03 21:28:30 +00:00
|
|
|
libssl-dev \
|
|
|
|
libcurl4-openssl-dev
|
2018-12-21 19:19:14 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/Cisco-Talos/clamav-devel.git
|
|
|
|
RUN git clone --depth 1 https://github.com/Cisco-Talos/clamav-fuzz-corpus.git
|
|
|
|
|
|
|
|
WORKDIR clamav-devel
|
|
|
|
COPY build.sh $SRC/
|