Skip to content

weilaaa/grief-porter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grief-Porter

people who move bricks should not yield

Requirement

  1. if you want to use docker manifest feature, must open it at first
  2. if you want to push image to private register, must docker login at first

Quick Start

  1. download specified binary from release
  2. chmod +x ./goporter-*
  3. mv ./goporter-* /usr/local/bin/goporter
  4. use it
goporter --config=./config.json

Config

  • auto move all images under given manifest

amend means 'docker create manifest A B C --amend'

[
  {
    "sources": [
      {
        "addr": "golang:1.17"
      }
    ],
    "amend": true,
    "auto": true,
    "manifest": "registry.self/weilaaa/golang:1.17"
  }
]
  • general move will lift given specified images into one manifest
[
  {
    "sources": [
      {
        "addr": "golang:1.17@sha256:d860e175278037ee2429fecb1150bf10635ff4488c5a6faf695b169bf2c0868f",
        "new_tag": "registry.self/weilaaa/golang:1.17-amd64"
      },
      {
        "addr": "golang:1.17@sha256:6245b2bee36df7a76a983b7213af5765d6b61fda5a44fbaf95716135af152dac",
        "new_tag": "registry.self/weilaaa/golang:1.17-amd64-v8"
      }
    ],
    "auto": true,
    "manifest": "registry.self/weilaaa/golang:1.17-multi"
  }
]
  • move images by specified platform rather than digest
[
  {
    "sources": [
      {
        "addr": "golang:1.17",
        "platform": "amd64",
        "new_tag": "registry.self/weilaaa/golang:1.17-amd64"
      },
      {
        "addr": "golang:1.17",
        "platform": "arm64",
        "new_tag": "registry.self/weilaaa/golang:1.17-amd64"
      }
    ],
    "auto": true,
    "manifest": "registry.self/weilaaa/golang:1.17-multi"
  }
]
  • move single image to another place without creating manifest

you can remark what ever you want in config json file

[
  {
    "sources": [
      {
        "addr": "golang:1.17@sha256:d860e175278037ee2429fecb1150bf10635ff4488c5a6faf695b169bf2c0868f",
        "remark": "my-image",
        "new_tag": "registry.self/weilaaa/golang:1.17-amd64"
      }
    ]
  }
]

What is multi arch images

you can find tutorials here

Local Usage

serially execute project operation

make run-serial

parallels execute project operation

make run-parallels

About

people who move bricks should not yield

Resources

Stars

Watchers

Forks

Packages

No packages published