• 开发

    借助 Visual Studio Code 将 Docker 容器用作开发环境 - Training

    <aside>

    容器编写样板:

    https://github.com/docker-library/official-images

    https://github.com/devcontainers/images.git

    https://yeasy.gitbook.io/docker_practice/buildx/buildkit

    https://docs.docker.com/build/building/best-practices/

    • FROM https://hub.docker.com/_/alpine/| https://hub.docker.com/_/scratch| 本地机器 | https://github.com/moby/moby/tree/master/contrib→ old
    • LABEL
    • RUN  pipes
    • CMD
    • EXPOSE
    • ENV update the PATH
    • ADD | COPY
    • EXTRYPOINT set the image's main command
    • VOLUME
    • USER
    • WORKDIR
    • ONBUILD

    https://github.com/docker-library/official-images/blob/master/NEW-IMAGE-CHECKLIST.md


    镜像构建

    https://github.com/moby/buildkit


    镜像仓库

    https://github.com/goharbor/harbor


    CI/CD

    https://github.com/docker-library/oi-janky-groovy

    https://www.jenkins.io/download/ | https://www.jenkins.io/doc/book/installing/

    </aside>

    1. 使用阿里云DevOps云效codeup
    2. 使用阿里云容器镜像服务ACR个人版(单个仓库限制5GB)
    3. 使用github action(+ self-manage runner)