1#!/bin/bash 2set -eu -o pipefail 3 4readonly proto_dir="$(mktemp -d protobuf.XXXXXX)" 5# Download an unreleased SHA to include TLS 1.2 support: 6# https://github.com/google/protobuf/pull/4879 7wget -O - https://github.com/google/protobuf/archive/61476b8e74357ea875f71bb321874ca4530b7d50.tar.gz | tar xz -C "$proto_dir" 8 9docker build -t protoc-artifacts "$proto_dir"/protobuf-61476b8e74357ea875f71bb321874ca4530b7d50/protoc-artifacts 10rm -r "$proto_dir" 11