...

Text file src/github.com/letsencrypt/boulder/test/boulder-tools/build.sh

Documentation: github.com/letsencrypt/boulder/test/boulder-tools

     1#!/bin/bash -ex
     2
     3apt-get update
     4
     5# Install system deps
     6apt-get install -y --no-install-recommends \
     7  mariadb-client-core-10.3 \
     8  rsyslog \
     9  build-essential \
    10  opensc \
    11  unzip \
    12  python3-pip \
    13  gcc \
    14  ca-certificates \
    15  softhsm2
    16
    17PROTO_ARCH=x86_64
    18if [ "${TARGETPLATFORM}" = linux/arm64 ]
    19then
    20  PROTO_ARCH=aarch_64
    21fi
    22
    23curl -L https://github.com/google/protobuf/releases/download/v3.20.1/protoc-3.20.1-linux-"${PROTO_ARCH}".zip -o /tmp/protoc.zip
    24unzip /tmp/protoc.zip -d /usr/local/protoc
    25
    26pip3 install -r /tmp/requirements.txt
    27
    28apt-get clean -y
    29
    30# Tell git to trust the directory where the boulder repo volume is mounted
    31# by `docker compose`.
    32git config --global --add safe.directory /boulder
    33
    34rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

View as plain text