Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

updated to Go lang 1.12 #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 14 additions & 18 deletions 0.11/golang/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,23 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Dockerfile for gRPC Go
FROM golang:1.5
FROM golang:1.12

# install protobuf from source
RUN apt-get update && \
apt-get -y install git unzip build-essential autoconf libtool
RUN git clone https://github.com/google/protobuf.git && \
cd protobuf && \
./autogen.sh && \
./configure && \
make && \
make install && \
ldconfig && \
make clean && \
cd .. && \
rm -r protobuf

# NOTE: for now, this docker image always builds the current HEAD version of
# gRPC. After gRPC's beta release, the Dockerfile versions will be updated to
# build a specific version.
ENV PB_VER 3.9.1
ENV PB_URL https://github.com/google/protobuf/releases/download/v${PB_VER}/protoc-${PB_VER}-linux-x86_64.zip
RUN apt-get update && apt-get install -y unzip && mkdir -p /tmp/protoc && \
curl -L ${PB_URL} > /tmp/protoc/protoc.zip && \
cd /tmp/protoc && \
unzip protoc.zip && \
cp /tmp/protoc/bin/protoc /usr/local/bin && \
cp -R /tmp/protoc/include/* /usr/local/include && \
chmod go+rx /usr/local/bin/protoc && \
cd /tmp && \
rm -r /tmp/protoc

# Get the source from GitHub
RUN go get google.golang.org/grpc
ENV GO111MODULE on
RUN go get google.golang.org/grpc@v1.22.1
# Install protoc-gen-go
RUN go get github.com/golang/protobuf/protoc-gen-go