act 提供的docker 镜像说明

act 是基于docker 实现了github actions 的本地运行,当然我们直接运行是需要使用docker 镜像的,了解
act内部提供的docker 镜像有助于更好的熟悉内部机制以及更好的使用

一些说明

镜像构建是基于了buildpacj-deps

node镜像说明

  • node 是基于了debian 的root 文件系统
  • node slim 镜像不包含python,如果需要的任务是依赖python 的就不适合
    包含的镜像
 
node:12-buster 
node:12-buster-slim 
node:16-buster
node:16-buster-slim

目前提供了 12,16 版本的

ubuntu 镜像

catthehacker/ubuntu 基于ubuntu root 文件系统提供了20以及18版本的
包含的镜像

 
ghcr.io/catthehacker/ubuntu:act-latest 
ghcr.io/catthehacker/ubuntu:act-20.04 
ghcr.io/catthehacker/ubuntu:act-18.04 
ghcr.io/catthehacker/ubuntu:act-16.04

act-environments 环境

github actions 官方包含了不少环境的比如ubuntu,macos,windows。。。但是因为本地运行,暂时官方只提供了ubuntu 版本的
包含的镜像

 
nektos/act-environments-ubuntu:18.04  
nektos/act-environments-ubuntu:18.04-lite  
nektos/act-environments-ubuntu:18.04-full

说明

官方同时提供了github 仓库我们可以参考学习,查看实际的处理机制

参考资料

https://github.com/nektos/act/blob/master/IMAGES.md
https://www.cnblogs.com/rongfengliang/p/13353793.html
https://github.com/docker-library/buildpack-deps
https://github.com/catthehacker/docker_images
https://github.com/actions/virtual-environments

posted on 2022-05-15 19:13  荣锋亮  阅读(228)  评论(0编辑  收藏  举报

导航