1 #!/bin/bash 2 set -eu -o pipefail 3 4 readonly 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 7 wget -O - https://github.com/google/protobuf/archive/61476b8e74357ea875f71bb321874ca4530b7d50.tar.gz | tar xz -C "$proto_dir" 8 9 docker build -t protoc-artifacts "$proto_dir"/protobuf-61476b8e74357ea875f71bb321874ca4530b7d50/protoc-artifacts 10 rm -r "$proto_dir" 11