Coder Social home page Coder Social logo

gitccl / cluster-image Goto Github PK

View Code? Open in Web Editor NEW

This project forked from labring-actions/cluster-image

0.0 0.0 0.0 3.81 MB

License: Apache License 2.0

Shell 29.59% Python 0.16% Makefile 1.35% Smarty 8.71% PLpgSQL 17.26% Dockerfile 0.44% Open Policy Agent 0.27% Mustache 42.22%

cluster-image's Introduction

cluster-image

直接创建ISSUE 支持的镜像

说明

镜像配置存放位置

- applications 
  - argocd 应用名称
    - v2.4.8 版本
      - Dockerfile/Kubefile
      - init.sh
      

如何构建?

  1. 目录下的init.sh 根据实际需求,一般是需要下载一些分架构的二进制使用,比如helm、kubectl-minio相关
  2. Docker/Kubefile 都支持
  3. 构建规则
    1. charts目录 放一些集群镜像需要的chart,k8s根据扫描的chart获取镜像build出registry目录放到与Kubefile同级的目录
    2. manifests目录直接放一些yaml配置,k8s会扫描manifests目录所有的镜像并build出registry目录放到与Kubefile同级的目录
    3. images/shim 目录放文件主要存储一些额外的镜像列表并build出registry目录放到与Kubefile同级的目录
    4. 如果需要模板,在etc、charts、manifests放一些*.tmpl 结尾的文件可以被sealos run 环境变量渲染后去掉tmpl ,比如渲染之前是aa.yaml.tmpl 渲染后aa.yaml 使用需要注意文件名不要与现有的文件冲突
    5. registry必须放在与Kubefile同级的目录否则无法拷贝到master0的私有仓库,制作镜像也需要注意下。不要把registry存放到chart里否则helm扫描慢导致OOM labring/sealos#1545
APP集群镜像

主要是构建应用镜像,使用GitHub action,会同时出amd64和arm64架构

配置集群镜像

主要是构建配置镜像,使用GitHub action,没有容器镜像不区分架构,一般是一些脚本相关的配置或者覆盖默认的配置镜像

Docker镜像

主要是构建容器镜像,使用GitHub action,会同时出amd64和arm64架构,暂时不支持Run命令,使用buildah进行的build所以没有做Run的支持

大APP集群镜像

主要是构建应用镜像,使用阿里云主机构建,只会出amd64架构

集群镜像手动构建

把你要收到更新的集群镜像放到 .github/schedule/part1.txt 主要是一些latest的镜像需要手动操作

支持的命令
  • /imagebuild_k8s 构建k8s镜像
    • /single_imagebuild_k8s_part1
    • /single_imagebuild_k8s_part2
    • /single_imagebuild_k8s_part3
  • /imagebuild_configs 构建配置
  • /imagebuild_apps 构建应用
  • /imagebuild_docker_k8s 构建k8s基于docker
  • /imagebuild_dockerimages 构建docker镜像
  • /imagebuild_hosted 构建大APP镜像

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.