xcat2 / xcat-docker

Repository to build Docker image for xCAT
5 stars 5 forks source link

Refine the Makefile to push manifest #16

Closed robin2008 closed 5 years ago

robin2008 commented 5 years ago

1, using ORGNAME to distinguish USER 2, refine manifest push

make manifest  VERSION=latest ORGNAME=xcatdevops
Makefile:27: IMAGE=docker.io/xcatdevops/xcat2 VERSION=latest TAG=2.14.6-x86_64
INFO: create manifest docker.io/xcatdevops/xcat2:2.14.6 from /Users/binxu/GitHub/xcat-docker/manifest/xcat-2.14.6.yml...
docker run --rm \
        -v /Users/binxu/GitHub/xcat-docker/manifest/xcat-2.14.6.yml:/xcat2.yml \
        -v /Users/binxu/.docker:/tmp/docker-cfg \
        mplatform/manifest-tool --debug  --docker-cfg '/tmp/docker-cfg' \
        push from-spec /xcat2.yml
time="2019-04-19T14:30:05Z" level=debug msg="endpoints: [{false https://registry-1.docker.io v2 false true true 0xc000001800}]"
time="2019-04-19T14:30:05Z" level=debug msg="repoName: xcatdevops/xcat2"
time="2019-04-19T14:30:05Z" level=info msg="Retrieving digests of images..."
time="2019-04-19T14:30:05Z" level=debug msg="endpoints: [{false https://registry-1.docker.io v2 false true true 0xc000001980}]"
time="2019-04-19T14:30:05Z" level=debug msg="Trying to fetch image manifest of docker.io/xcatdevops/xcat2 repository from https://registry-1.docker.io v2"
time="2019-04-19T14:30:21Z" level=info msg="Image \"xcatdevops/xcat2:2.14.6-x86_64\" is digest sha256:102f0cf7bec7667a865be3435b83f9a46c993451795363470de61ce29bc10efc; size: 1782"
time="2019-04-19T14:30:21Z" level=debug msg="endpoints: [{false https://registry-1.docker.io v2 false true true 0xc000352600}]"
time="2019-04-19T14:30:21Z" level=debug msg="Trying to fetch image manifest of docker.io/xcatdevops/xcat2 repository from https://registry-1.docker.io v2"
time="2019-04-19T14:30:32Z" level=info msg="Image \"xcatdevops/xcat2:2.14.6-ppc64le\" is digest sha256:5fc5b43c7ebcb22ecc7bcef39e54c15914cf9952901022b21009b9fb5f17c96c; size: 1782"
time="2019-04-19T14:30:32Z" level=debug msg="Manifest list push url: https://registry-1.docker.io/v2/xcatdevops/xcat2/manifests/2.14.6"
time="2019-04-19T14:30:32Z" level=debug msg="mediaType of manifestList: application/vnd.docker.distribution.manifest.list.v2+json"
time="2019-04-19T14:30:41Z" level=debug msg="[extra tag \"latest\"] push url: https://registry-1.docker.io/v2/xcatdevops/xcat2/manifests/latest"
Digest: sha256:15973cba1807183d4c2ea8e340fb64b8afdbd99d3299266d4a89090e4c968e11 745