From bd28b49aa1ba7d8127144c2a3eef0536d9bdc606 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Fri, 20 Sep 2019 05:45:21 +0200 Subject: [PATCH] Select go 1.12 instead of 1.13 (rolling) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Functest K8s container builds failed [1] [1] https://build.opnfv.org/ci/view/functest%20(Installer%20gates)/job/functest-kubernetes-docker-master/94/ Change-Id: I3da0ebf05e1dd25b7fb609e0e851c07ed1722723 Signed-off-by: Cédric Ollivier --- ansible/site.yml | 2 +- build.sh | 6 +++--- docker/core/Dockerfile | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/site.yml b/ansible/site.yml index 734aec05..b0baf064 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -10,7 +10,7 @@ - repo: _ dport: container: golang - tag: alpine3.10 + tag: 1.12-alpine3.10 steps: - name: build opnfv/functest-kubernetes-core containers: diff --git a/build.sh b/build.sh index d5ca6bfc..2451d8a6 100644 --- a/build.sh +++ b/build.sh @@ -28,11 +28,11 @@ done [ ! -z "${amd64_dirs}" ] && (docker rmi \ "${repo}/functest-kubernetes-core:amd64-latest" \ - golang:alpine3.10 || true) + golang:1.12-alpine3.10 || true) find . -name Dockerfile -exec git checkout {} + find . -name Dockerfile -exec sed -i \ - -e "s|golang:alpine3.10|arm64v8/golang:alpine3.10|g" {} + + -e "s|golang:1.12-alpine3.10|arm64v8/golang:1.12-alpine3.10|g" {} + find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-kubernetes-core|\ ${repo}/functest-kubernetes-core:arm64-latest|g" {} + @@ -49,7 +49,7 @@ for dir in ${arm64_dirs}; do done [ ! -z "${arm64_dirs}" ] && (docker rmi "${repo}/functest-kubernetes-core:arm64-latest" \ - arm64v8/golang:alpine3.10 || true) + arm64v8/golang:1.12-alpine3.10 || true) find . -name Dockerfile -exec git checkout {} + exit $? diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile index 5ea3baa2..c6907a14 100644 --- a/docker/core/Dockerfile +++ b/docker/core/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine3.10 +FROM golang:1.12-alpine3.10 ARG BRANCH=master ARG OPENSTACK_TAG=master -- 2.16.6