Turned out that linaro-london network pipe is too thin
to support this job. Pushing images took 3 hours so job
timed out.
Will check it once new nodes arrive.
This reverts commit f2801fabdd
.
Change-Id: I8897ede43f11090902fe7c0c096f17f57c1c9c67
changes/98/702698/1
parent
f2801fabdd
commit
b66f144c42
@ -1,24 +0,0 @@
|
||||
---
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Login to Dockerhub
|
||||
command: "docker login -u {{ kolla_dockerhub_creds.user }} -p {{ kolla_dockerhub_creds.password }}"
|
||||
no_log: true
|
||||
|
||||
- name: Ensure ~/.docker exists
|
||||
file:
|
||||
path: ~/.docker
|
||||
state: directory
|
||||
mode: 0777
|
||||
|
||||
- name: Enable experimental features in Docker so we can use 'docker manifest'
|
||||
copy:
|
||||
content: '{ "experimental": "enabled" }'
|
||||
dest: ~/.docker/config.json
|
||||
|
||||
- name: Define image tag
|
||||
set_fact:
|
||||
image_tag: zuul.branch | regex_replace('^stable/', '')
|
||||
|
||||
- name: Create multiarch images
|
||||
command: "TAG={{ image_tag }} NAMESPACE=kolla DISTRO={{ base_distro }} TYPE={{ install_type }} tools/create-multiarch-images.sh"
|
@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script takes aarch64 and x86_64 images from our publish jobs and makes
|
||||
# multiarch containers so users of any of those architectures can pull them.
|
||||
|
||||
TARGET=${NAMESPACE}/${DISTRO}-${TYPE}
|
||||
TMP=$(mktemp -d)
|
||||
|
||||
for arch in aarch64 x86_64; do
|
||||
tools/build.py --base ${DISTRO} --type ${TYPE} --base-arch $arch --list-images|sed -e 's/^.* : //g'|sort >${TMP}/images-$arch
|
||||
done
|
||||
|
||||
comm -12 ${TMP}/images-aarch64 ${TMP}/images-x86_64 >${TMP}/list-of-common-images
|
||||
comm -13 ${TMP}/images-aarch64 ${TMP}/images-x86_64 >${TMP}/list-of-x86_64-only-images
|
||||
comm -23 ${TMP}/images-aarch64 ${TMP}/images-x86_64 >${TMP}/list-of-aarch64-only-images
|
||||
|
||||
|
||||
for image_name in $(cat ${TMP}/list-of-common-images); do
|
||||
docker manifest create ${TARGET}-${image_name}:${TAG} ${TARGET}-${image_name}:${TAG}-aarch64 ${TARGET}-${image_name}:${TAG}-x86_64
|
||||
done
|
||||
|
||||
for image_name in $(cat ${TMP}/list-of-x86_64-only-images); do
|
||||
docker manifest create ${TARGET}-${image_name}:${TAG} ${TARGET}-${image_name}:${TAG}-x86_64
|
||||
done
|
||||
|
||||
for image_name in $(cat ${TMP}/list-of-aarch64-only-images); do
|
||||
docker manifest create ${TARGET}-${image_name}:${TAG} ${TARGET}-${image_name}:${TAG}-aarch64
|
||||
done
|
||||
|
||||
for image_name in $(cat ${TMP}/list-of-*); do
|
||||
docker manifest push ${TARGET}-${image_name}:${TAG}
|
||||
done
|
Loading…
Reference in new issue