This is an automated email from the ASF dual-hosted git repository.

echobravo pushed a commit to branch release/1.12.0
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/release/1.12.0 by this push:
     new 1865181  GEODE-7788: Alpine tools docker image creation fails due to 
internal (#4685)
1865181 is described below

commit 1865181b8e7395f05899aefa9d914122e795d052
Author: Bala Kaza Venkata <43208983+balak...@users.noreply.github.com>
AuthorDate: Tue Feb 11 16:54:55 2020 -0500

    GEODE-7788: Alpine tools docker image creation fails due to internal (#4685)
    
    winrm-cli changes.
    
    Change the dockerfile to do go get instead of git clone which does
    cloning, pulling dependencies and building as part of its process.
    This eliminates the manual winrm-cli build process that was
    being done before.
    
    Signed-off-by: Bala Kaza Venkata <bkazavenk...@pivotal.io>
    
    Co-authored-by: Robert Houghton <rhough...@pivotal.io>
    (cherry picked from commit 5e8107ad12e4ba891bb7707f111696282b2cff2a)
---
 ci/images/alpine-tools/Dockerfile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/ci/images/alpine-tools/Dockerfile 
b/ci/images/alpine-tools/Dockerfile
index 80ccb87..49ee247 100644
--- a/ci/images/alpine-tools/Dockerfile
+++ b/ci/images/alpine-tools/Dockerfile
@@ -36,10 +36,13 @@ RUN apk --no-cache add \
   && gcloud config set core/disable_usage_reporting true \
   && gcloud config set component_manager/disable_update_check true \
   && gcloud config set metrics/environment github_docker_image \
-  && git clone https://github.com/masterzen/winrm-cli \
-  && (cd winrm-cli; GOPATH=$PWD PATH=$PATH:$PWD/bin make) \
-  && cp winrm-cli/bin/winrm /usr/local/bin/ \
-  && rm -rf winrm-cli \
+  && mkdir -p gopath \
+  && cd gopath \
+  && export GOPATH=$(pwd) \
+  && go get github.com/masterzen/winrm-cli \
+  && cp ${GOPATH}/bin/winrm-cli /usr/local/bin/winrm \
+  && cd ${GOPATH}/.. \
+  && rm -rf ${GOPATH} \
   && gcloud components install -q beta \
   && printf "Host *\n  ServerAliveInterval 60 \n  ServerAliveCountMax 2\n" >> 
/etc/ssh/ssh_config \
   && pip2 install awscli \

Reply via email to