Skip to content

Commit

Permalink
Fix Golang setup in Dockerfile (apache#1690)
Browse files Browse the repository at this point in the history
* When preparing pulsar-build Docker image, ensure apt-get update is not cached

* add Go setup to Dockerfile for website build

* update PATH

* set proper env vars

* re-add golang install to main apt-get statement
  • Loading branch information
lucperkins authored and merlimat committed May 1, 2018
1 parent 1e0e12a commit f5d9502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ RUN rvm install 2.4.1
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
RUN pip install pdoc

# Install Protobuf doc generator
# Install Protobuf doc generator (requires Go)
ENV GOPATH "$HOME/go"
ENV PATH "/usr/lib/go-1.10/bin:$GOPATH/bin:$PATH"
RUN go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc

# Build the patched protoc
Expand Down

0 comments on commit f5d9502

Please sign in to comment.