golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/linux-ppc64/osuosl/buildlet-image/Dockerfile.p10 (about)

     1  # Copyright 2023 The Go Authors. All rights reserved.
     2  # Use of this source code is governed by a BSD-style
     3  # license that can be found in the LICENSE file.
     4  
     5  # build locally from debian-sid.sh
     6  FROM murp/debian:sid-ppc64
     7  
     8  ENV DEBIAN_FRONTEND noninteractive
     9  
    10  RUN apt-get update && \
    11      apt-get install --yes \
    12            gcc curl strace \
    13            ca-certificates netbase \
    14            procps lsof psmisc \
    15            libc6-dev gdb bzip2 \
    16            openssh-server
    17  
    18  # A ppc64 bootstrap toolchain provided locally until the minimum bootstrap
    19  # toolchain is >= 1.20 for GOPPC64=power10 support.
    20  COPY go-linux-ppc64-bootstrap.tbz /tmp/go-linux-ppc64-bootstrap.tbz
    21  
    22  RUN mkdir /usr/local/go-bootstrap && \
    23      tar -xf /tmp/go-linux-ppc64-bootstrap.tbz --strip-components=1 -C /usr/local/go-bootstrap && \
    24      rm /tmp/go-linux-ppc64-bootstrap.tbz && \
    25      curl -o  /usr/local/bin/stage0 https://storage.googleapis.com/go-builder-data/buildlet-stage0.linux-ppc64 && \
    26      chmod +x /usr/local/bin/stage0
    27  
    28  ENV GO_BUILDER_ENV host-linux-ppc64-sid-power10
    29  ENV GOROOT_BOOTSTRAP /usr/local/go-bootstrap
    30  ENV GO_BUILD_KEY_DELETE_AFTER_READ true
    31  ENV GO_BUILD_KEY_PATH /buildkey/gobuildkey
    32  
    33  CMD ["/usr/local/bin/stage0"]