GithubHelp home page GithubHelp logo

quaysync's Introduction

quaysync

This "syncs" (actually creates manifests) from one multi-arch registy to another. This most likely is of no use outside of LINBIT.

Why?

  • quay.io does not allow "nested registries". So one can not just have "quay.io/$user/$arch/$project" and use prestomanifesto.
  • quay.io does not handle multi arch automagically, one has to create a manifest.

So this pulls

Docker

This requires two bind mounts:

  • the docker socket
  • a docker.json that contains the credentials for registry
docker run -it --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v ~/.docker/config.json:/etc/docker/config.json \
  linbit/quaysync -dry-run src_registry.io quay.io/quayuser drbd-utils

rm -rf ~/.docker/manifests
docker pull src_registry.io/amd64/drbd-utils:latest
docker tag src_registry.io/amd64/drbd-utils:latest quay.io/quayuser/drbd-utils-amd64:latest
docker push quay.io/quayuser/drbd-utils-amd64:latest
docker pull src_registry.io/s390x/drbd-utils:latest
docker tag src_registry.io/s390x/drbd-utils:latest quay.io/quayuser/drbd-utils-s390x:latest
docker push quay.io/quayuser/drbd-utils-s390x:latest
docker manifest create --insecure --amend quay.io/quayuser/drbd-utils:latest \
  quay.io/quayuser/drbd-utils-amd64:latest quay.io/quayuser/drbd-utils-s390x:latest
docker manifest push --insecure quay.io/quayuser/drbd-utils:latest

quaysync's People

Contributors

rck avatar

Watchers

 avatar Rene Peinthor avatar Lars Ellenberg avatar James Cloos avatar Brian Hellman avatar  avatar Matt Kereczman avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.