kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/release/cloudbuild/rbe/Dockerfile (about)

     1  # Copyright 2023 The Kythe Authors. All rights reserved.
     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  # docker build -t gcr.io/kythe-repo/kythe-builder .
    16  FROM ubuntu:23.04
    17  
    18  # RBE build tools
    19  RUN DEBIAN_FRONTEND=noninteractive \
    20      apt-get update -y && \
    21      apt-get install -y \
    22        binutils \
    23        ca-certificates \
    24        curl \
    25        ed \
    26        file \
    27        git \
    28        less \
    29        locales \
    30        locales-all \
    31        netcat-traditional \
    32        openssh-client \
    33        patch \
    34        unzip \
    35        wget \
    36        zip && \
    37      apt-get clean
    38  
    39  # RBE Clang packages
    40  RUN DEBIAN_FRONTEND=noninteractive \
    41      apt-get update -y && \
    42      apt-get install -y \
    43        libstdc++-11-dev \
    44        libc++-dev \
    45        clang && \
    46      apt-get clean
    47  
    48  # RBE Go packages
    49  RUN DEBIAN_FRONTEND=noninteractive \
    50      apt-get update -y && \
    51      apt-get install -y \
    52        golang && \
    53      apt-get clean
    54  
    55  # RBE Java packages
    56  RUN DEBIAN_FRONTEND=noninteractive \
    57      apt-get update -y && \
    58      apt-get install -y \
    59        ca-certificates-java \
    60        openjdk-11-jre-headless \
    61        openjdk-11-jdk-headless && \
    62      apt-get clean
    63  
    64  # RBE Python packages
    65  RUN DEBIAN_FRONTEND=noninteractive \
    66      apt-get update -y && \
    67      apt-get install -y \
    68        python3-dev \
    69        python3-setuptools \
    70        software-properties-common && \
    71      apt-get clean
    72  
    73  # Kythe dependencies
    74  RUN DEBIAN_FRONTEND=noninteractive \
    75      apt-get update -y && \
    76      apt-get install -y \
    77        uuid-dev flex bison make \
    78        asciidoc ruby-dev source-highlight graphviz && \
    79      apt-get clean
    80  
    81  ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
    82  
    83  # Needed by rbe_config_gen
    84  ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64