...

Text file src/github.com/google/certificate-transparency-go/integration/Dockerfile

Documentation: github.com/google/certificate-transparency-go/integration

     1# This Dockerfile builds a base image for the certificate-transparency-go CloudBuild integration testing.
     2# See https://hub.docker.com/_/golang for the set of golang base images.
     3FROM golang:1.22.1-bookworm@sha256:6699d2852712f090399ccd4e8dfd079b4d55376f3ab3aff5b2dc8b7b1c11e27e as ct_testbase
     4
     5WORKDIR /testbase
     6
     7ARG GOFLAGS=""
     8ENV GOFLAGS=$GOFLAGS
     9
    10RUN apt-get update && apt-get -y install build-essential curl docker-compose lsof netcat-openbsd unzip wget xxd
    11
    12RUN cd /usr/bin && curl -L -O https://github.com/jqlang/jq/releases/download/jq-1.7/jq-linux64 && mv jq-linux64 /usr/bin/jq && chmod +x /usr/bin/jq
    13RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.1
    14RUN mkdir protoc && \
    15    (cd protoc && \
    16    PROTOC_VERSION=3.20.1 && \
    17    PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-x86_64.zip" && \
    18    wget "https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}" && \
    19    unzip -o ${PROTOC_ZIP} -d /usr/local bin/protoc && \
    20    unzip -o ${PROTOC_ZIP} -d /usr/local 'include/*' \
    21    )
    22ENV PATH /usr/local/bin:$PATH
    23
    24COPY ./integration/test-runner.sh /testbase/
    25
    26ENV GOPATH /go
    27ENV PATH $GOPATH/bin:/testbase/protoc/bin:$PATH
    28
    29CMD /bin/bash -exc /testbase/test-runner.sh

View as plain text