1# Copyright 2016 Google Inc. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15################################################################################ 16 17FROM gcr.io/oss-fuzz-base/base-builder 18RUN apt-get update && apt-get install -y \ 19 make \ 20 pkg-config \ 21 autoconf \ 22 automake \ 23 autogen \ 24 autopoint \ 25 libtool \ 26 gperf \ 27 bison \ 28 texinfo \ 29 curl \ 30 gettext \ 31 gengetopt \ 32 wget \ 33 python \ 34 mercurial 35 36ENV GNULIB_TOOL $SRC/gnulib/gnulib-tool 37RUN git clone git://git.savannah.gnu.org/gnulib.git 38RUN git clone --depth=1 https://git.savannah.gnu.org/git/libunistring.git 39RUN git clone --depth=1 https://gitlab.com/libidn/libidn2.git 40RUN hg clone https://gmplib.org/repo/gmp/ gmp 41RUN git clone https://gitlab.com/gnutls/libtasn1.git 42RUN git clone --depth=1 https://git.lysator.liu.se/nettle/nettle.git 43 44RUN git clone --depth=1 --recursive https://gitlab.com/gnutls/gnutls.git 45 46WORKDIR gnutls 47COPY build.sh $SRC/ 48