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