github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/integration/Dockerfile (about) 1 # This Dockerfile builds a base image for the CloudBuild integration testing. 2 FROM golang:1.22.3-bullseye@sha256:78b171fe51f25b8c3197710f281dacae94759a254e9a486576005f9dadba9e7d AS testbase 3 4 WORKDIR /testbase 5 6 ARG GOFLAGS="" 7 ENV GOFLAGS=$GOFLAGS 8 9 RUN echo "deb http://deb.debian.org/debian bullseye-backports main contrib non-free" >> /etc/apt/sources.list 10 RUN apt-get update && apt-get -y install curl docker-compose lsof netcat unzip wget xxd 11 12 RUN cd /usr/bin && curl -L -O https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && mv jq-linux64 /usr/bin/jq && chmod +x /usr/bin/jq 13 RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2 14 RUN mkdir protoc && \ 15 (cd protoc && \ 16 wget "https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip" && \ 17 unzip "protoc-3.5.1-linux-x86_64.zip" \ 18 ) 19 20 # Tamago bits 21 RUN apt-get -y install binutils-arm-none-eabi build-essential make u-boot-tools fuse fuse2fs 22 RUN curl -sfL https://github.com/usbarmory/tamago-go/releases/download/tamago-go1.21.5/tamago-go1.21.5.linux-amd64.tar.gz | tar -xzf - -C / 23 ENV TAMAGO=/usr/local/tamago-go/bin/go 24 25 ENV GOPATH /go 26 ENV PATH $GOPATH/bin:/testbase/protoc/bin:/usr/local/go/bin:/usr/local/tamago-go/bin:$PATH