Skip to content
Permalink
Browse files

install gopls and golang tools into /usr/local/bin

  • Loading branch information
hh committed Jan 24, 2020
1 parent 8937d6f commit b03928eda4ae89c455caf98a4f90edb5ed92f4f5
Showing with 8 additions and 5 deletions.
  1. +5 −3 Dockerfile
  2. +2 −2 README.org
  3. +1 −0 profile.d-iitoolbox.sh
@@ -26,6 +26,9 @@ RUN cd /tmp && \
tar -C /usr/local -xvf /tmp/go1.13.4.linux-amd64.tar.gz
ENV GOROOT=/usr/local/go \
PATH=$PATH:/usr/local/go/bin
# gopls, gocode, and others needed for dev will install into /usr/local/bin
RUN GOHOME=/usr/local go get -u -v github.com/nsf/gocode
RUN GOHOME=/usr/local go get -u -v golang.org/x/tools/...

# install nodejs
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
@@ -80,12 +83,11 @@ RUN mkdir -p ~/go/src/k8s.io && git clone https://github.com/kubernetes/kubernet
RUN cd ~/go/src/k8s.io/kubernetes ; go mod download
# go get -u -v ...
# RUN go get -u -v k8s.io/apimachinery/pkg/apis/meta/v1
RUN go get -u -v github.com/nsf/gocode
RUN go get -u -v golang.org/x/tools/...
ENV GO111MODULE=on
# ENV GO111MODULE=on
# RUN go get -u -v k8s.io/client-go/kubernetes@v0.17.0
# RUN go get -u -v k8s.io/client-go/tools/clientcmd@v0.17.0
RUN git clone --depth 1 https://github.com/cncf/apisnoop /home/ii/apisnoop
RUN cd /home/ii/apisnoop/org/tickets ; go mod download

# Ensure authentication to apisnoop postgres database
ENV PGUSER=apisnoop \
@@ -77,8 +77,8 @@ docker run --cap-add=SYS_PTRACE \

** Creating the k8macs Pod
#+begin_src shell
IIMAGE=gcr.io/apisnoop/iimacs:0.9.9
PODNAME=k8smacs
IIMAGE=gcr.io/apisnoop/iimacs:0.9.10
PODNAME=kmacs
kubectl run --generator=run-pod/v1 $PODNAME --serviceaccount='admin-iimacs' --image=$IIMAGE
#+end_src

@@ -1,3 +1,4 @@
export PATH=$PATH:/usr/local/go/bin
[ "$BASH_VERSION" != "" ] || [ "$ZSH_VERSION" != "" ] || return 0
[ "$PS1" != "" ] || return 0
[ "$IS_TOOLBOX" = true ] || return 0

0 comments on commit b03928e

Please sign in to comment.
You can’t perform that action at this time.