From 2cc59ca41155b21cfcf30999a17e4b029fc2f26c Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Tue, 7 Apr 2020 18:16:49 +0530 Subject: [PATCH] Install go from release tar ball and update to 1.13.9 The current version of go ( 1.12.x) is causing issues on some method call under errors package. This patch could help to overcome the same. More details about the failure is @https://github.com/ceph/ceph-csi/pull/917#issuecomment-609998502 Signed-off-by: Humble Chirammal --- scripts/Dockerfile.devel | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/Dockerfile.devel b/scripts/Dockerfile.devel index d99e43bd2..16f15b712 100644 --- a/scripts/Dockerfile.devel +++ b/scripts/Dockerfile.devel @@ -1,12 +1,18 @@ FROM ceph/ceph:v15 ENV GOPATH=/go \ - GO111MODULE=on + GOROOT=/usr/local/go \ + GO111MODULE=on + +RUN mkdir -p /usr/local/go && \ + curl https://storage.googleapis.com/golang/go1.13.9.linux-amd64.tar.gz | tar xzf - -C /usr/local/go --strip-components=1 + +ENV PATH="$GOROOT/bin:$GOPATH/bin:$PATH" RUN yum -y install \ - golang \ git \ make \ + gcc \ librados-devel \ librbd-devel \ && yum -y update \