diff --git a/wum-live-sync-automation/docker/Dockerfile b/wum-live-sync-automation/docker/Dockerfile index 6dddd17..d4df260 100644 --- a/wum-live-sync-automation/docker/Dockerfile +++ b/wum-live-sync-automation/docker/Dockerfile @@ -107,5 +107,22 @@ chmod a+x /build/software/java/jdk-6u33-linux-x64.bin \ && echo "\n" | sh /build/software/java/jdk-6u33-linux-x64.bin \ && rm /build/software/java/jdk-6u33-linux-x64.bin +RUN mkdir -p /build/software/go + +RUN wget -P /build/software/go https://dl.google.com/go/go1.10.linux-amd64.tar.gz \ + && tar -xzf /build/software/go/go1.10.linux-amd64.tar.gz --directory /build/software/go && mv /build/software/go/go /build/software/go/go-1.10 && rm /build/software/go/go1.10.linux-amd64.tar.gz + +RUN wget -P /build/software/go https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz \ + && tar -xzf /build/software/go/go1.12.5.linux-amd64.tar.gz --directory /build/software/go && mv /build/software/go/go /build/software/go/go-1.12.5 && rm /build/software/go/go1.12.5.linux-amd64.tar.gz + +RUN wget -P /build/software/go https://dl.google.com/go/go1.13.linux-amd64.tar.gz \ + && tar -xzf /build/software/go/go1.13.linux-amd64.tar.gz --directory /build/software/go && mv /build/software/go/go /build/software/go/go-1.13 && rm /build/software/go/go1.13.linux-amd64.tar.gz + +ENV GOPATH /build/software/go/go +ENV PATH $GOPATH/bin:/build/software/go/go-1.12.5/bin:$PATH +ENV PATH $GOPATH/bin:/build/software/go/go-1.13/bin:$PATH +RUN mkdir -p "$GOPATH/src/github.com/wso2-support" "$GOPATH/bin" && chmod -R 777 "$GOPATH" +RUN curl https://glide.sh/get | sh + RUN \ apt-get update && apt-get install -y zip