github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/containers/utils/vsphere-client/Dockerfile (about)

     1  FROM ubuntu:14.04
     2  
     3  RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \
     4      apt-get install -y --force-yes git openjdk-7-jdk curl && \
     5      apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
     6  RUN curl https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz |  tar xz -C /usr/local &&  mv /usr/local/go /usr/local/go1.7 &&  ln -s /usr/local/go1.7 /usr/local/go
     7  ENV GOPATH=$HOME/go
     8  ENV GOBIN=$GOPATH/bin
     9  ENV PATH=$GOBIN:/usr/local/go/bin:$PATH
    10  
    11  RUN mkdir -p $GOPATH/src/github.com/vmware
    12  RUN cd $GOPATH/src/github.com/vmware && \
    13      git clone https://github.com/vmware/govmomi && \
    14      cd govmomi/govc && \
    15      go get ./... && \
    16      go install
    17  
    18  COPY target/vsphere-client-1.0-SNAPSHOT-jar-with-dependencies.jar /vsphere-client.jar
    19  
    20  #run with "java -jar /vsphere-client.jar"
    21  #or
    22  #"govc [command]"