diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-10-07 21:42:05 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-10-07 23:04:45 +0200 |
commit | 472492d42c19929229db3bb71cb2b71ddf43ca02 (patch) | |
tree | d1a1bfa30addaf84149381dfdc468115ffda53a9 /build.sh | |
parent | 75686df0ef13d74875c47ae958a13648b8c87cea (diff) |
Publish first Functest K8s Jerma containers
It leverages on latest K8s tag (v1.16.1).
Change-Id: I57014c4193c7732c4dfd46d7a29e3104eec652ec
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'build.sh')
-rw-r--r-- | build.sh | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -12,22 +12,22 @@ build_opts=(--pull=true --no-cache --force-rm=true) find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-kubernetes-core|\ -${repo}/functest-kubernetes-core:amd64-latest|g" {} + +${repo}/functest-kubernetes-core:amd64-jerma|g" {} + find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-kubernetes-healthcheck|\ -${repo}/functest-kubernetes-healthcheck:amd64-latest|g" {} + +${repo}/functest-kubernetes-healthcheck:amd64-jerma|g" {} + for dir in ${amd64_dirs}; do (cd "${dir}" && docker build "${build_opts[@]}" \ - -t "${repo}/functest-kubernetes-${dir##**/}:amd64-latest" .) - docker push "${repo}/functest-kubernetes-${dir##**/}:amd64-latest" + -t "${repo}/functest-kubernetes-${dir##**/}:amd64-jerma" .) + docker push "${repo}/functest-kubernetes-${dir##**/}:amd64-jerma" [ "${dir}" != "docker/core" ] && (docker rmi \ - "${repo}/functest-kubernetes-${dir##**/}:amd64-latest" || true) + "${repo}/functest-kubernetes-${dir##**/}:amd64-jerma" || true) done [ ! -z "${amd64_dirs}" ] && (docker rmi \ - "${repo}/functest-kubernetes-core:amd64-latest" \ + "${repo}/functest-kubernetes-core:amd64-jerma" \ golang:1.12-alpine3.10 || true) find . -name Dockerfile -exec git checkout {} + @@ -35,20 +35,20 @@ find . -name Dockerfile -exec sed -i \ -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" {} + +${repo}/functest-kubernetes-core:arm64-jerma|g" {} + find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-kubernetes-healthcheck|\ -${repo}/functest-kubernetes-healthcheck:arm64-latest|g" {} + +${repo}/functest-kubernetes-healthcheck:arm64-jerma|g" {} + for dir in ${arm64_dirs}; do (cd "${dir}" && docker build "${build_opts[@]}" \ - -t "${repo}/functest-kubernetes-${dir##**/}:arm64-latest" .) - docker push "${repo}/functest-kubernetes-${dir##**/}:arm64-latest" + -t "${repo}/functest-kubernetes-${dir##**/}:arm64-jerma" .) + docker push "${repo}/functest-kubernetes-${dir##**/}:arm64-jerma" [ "${dir}" != "docker/core" ] && (docker rmi \ - "${repo}/functest-kubernetes-${dir##**/}:arm64-latest" || true) + "${repo}/functest-kubernetes-${dir##**/}:arm64-jerma" || true) done [ ! -z "${arm64_dirs}" ] && - (docker rmi "${repo}/functest-kubernetes-core:arm64-latest" \ + (docker rmi "${repo}/functest-kubernetes-core:arm64-jerma" \ arm64v8/golang:1.12-alpine3.10 || true) find . -name Dockerfile -exec git checkout {} + |