1# Copyright 2020 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 m4 libglu1-mesa-dev mesa-common-dev \ 19 libxmu-dev libxi-dev pkg-config libxxf86vm-dev patchelf 20 21ADD https://github.com/google/orbit/archive/main.tar.gz $SRC/ 22RUN mkdir -p $SRC/orbit && tar -xzf $SRC/main.tar.gz \ 23 -C $SRC/orbit/ --strip-components 1; rm -f $SRC/main.tar.gz 24WORKDIR $SRC/orbit 25COPY build.sh $SRC/ 26 27# That's a hack. The service needs to have a more recent kernel than what the 28# container provides. But this code is not going to be called from the fuzz- 29# tests, so we should be fine here. 30ADD https://raw.githubusercontent.com/torvalds/linux/v5.7/include/uapi/linux/perf_event.h /usr/include/linux/perf_event.h 31