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   荣锋亮  阅读(262)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2021-05-15 nunjucks jinja2 启发的nodejs 模板引擎
2021-05-15 使用jinja 模板引擎生成cube.js schema 文件
2019-05-15 处理kubernetes 一些比较难删除的资源

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示