• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 Google LLC
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-runner
18
19RUN apt-get update && \
20    apt-get install -y systemd && \
21    apt-get install -y --no-install-recommends nodejs npm && \
22    wget https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/docker-ce-cli_20.10.8~3-0~ubuntu-focal_amd64.deb -O /tmp/docker-ce.deb && \
23    dpkg -i /tmp/docker-ce.deb && rm /tmp/docker-ce.deb
24
25ENV OSS_FUZZ_ROOT=/opt/oss-fuzz
26ADD . ${OSS_FUZZ_ROOT}
27RUN python3 -m pip install -r ${OSS_FUZZ_ROOT}/infra/cifuzz/requirements.txt
28RUN npm install ${OSS_FUZZ_ROOT}/infra/cifuzz
29
30# Python file to execute when the docker container starts up.
31# We can't use the env var $OSS_FUZZ_ROOT here. Since it's a constant env var,
32# just expand to '/opt/oss-fuzz'.
33ENTRYPOINT ["python3", "/opt/oss-fuzz/infra/cifuzz/cifuzz_combined_entrypoint.py"]
34