library

package module
v0.0.0-...-818fa0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 14 Imported by: 0

README

library

镜像源代码仓库,使用了 Go 模板语言进行渲染,便于批量构建和管理

镜像

自制镜像

自制镜像的用法和标签,参考各个子目录

自制镜像列表可以访问如下地址获得:

https://acicn.guoyk.net/library/IMAGES.txt
外部镜像

除了自制镜像外,我还导入了常用的外部镜像,对应关系参考 manifest.yml 文件,以下为示例

k8s.gcr.io/ingress-nginx/controller    =>  acicn/ingress-nginx-controller
k8s.gcr.io/defaultbackend-amd64        =>  acicn/ingress-nginx-defaultbackend
jettech/kube-webhook-certgen           =>  acicn/ingress-nginx-kube-webhook-certgen
quay.io/external_storage/nfs-client-provisioner    =>    acicn/nfs-client-provisioner

外部镜像列表可以访问如下地址获得:

https://acicn.guoyk.net/library/MIRRORS.txt
镜像源

除了标准的 DockerHub 源之外,我在其他云厂商的公共镜像仓库上也创建了对等的源

  • 腾讯云: ccr.ccs.tencentyun.com/acicn
  • 阿里云: registry.cn-shenzhen.aliyuncs.com/acicn

Helm 仓库

鉴于官方的 stable 中央仓库已经停用,我复制了一些常用的 Helm 仓库到 charts 子目录下,并定期发布。

Helm 仓库所涉及到的镜像均会作为外部镜像一并导入 acicn 命名空间

地址如下:

https://acicn.guoyk.net/charts

许可证

Guo Y.K., MIT License

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pulls   []PullTask
	Builds  []BuildTask
	Mirrors []MirrorTask
)

Functions

func Execute

func Execute(dir, name string, args ...string) (err error)

func RegistryListTags

func RegistryListTags(ctx context.Context, repo string) (tags []string, err error)

Types

type BuildTask

type BuildTask struct {
	Dir        string
	Repo       string
	Names      []string
	Doc        string
	Dockerfile string
	Vars       map[string]interface{}
}

func (BuildTask) Do

func (b BuildTask) Do(push bool) (err error)

type MirrorSubTask

type MirrorSubTask MirrorTask

func (MirrorSubTask) Do

func (s MirrorSubTask) Do() (err error)

type MirrorTask

type MirrorTask struct {
	From string
	To   string
}

func (MirrorTask) SubTasks

func (m MirrorTask) SubTasks(ctx context.Context) (tasks []MirrorSubTask, err error)

type PullTask

type PullTask struct {
	Name string
}

func (PullTask) Do

func (p PullTask) Do() error

Directories

Path Synopsis
scripts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL