You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Warning:** Below badges with size for each image are displaying size of **compressed image size in registry. After pulling the image, size can be drastically different due to Docker uncompressing the image layers.**
4
+
5
+
## Images based on [`buildpack-deps`][hub/_/buildpack-deps]
6
+
7
+
**Note 1: `node` images are based on Debian root filesystem, while it is extremely similar to Ubuntu, there might be some differences**
8
+
9
+
**Note 2: `node``-slim` images don't have `python` installed, if you want to use actions or software that is depending on `python`, you need to specify image manually**
## Images based on [`actions/virtual-environments`][gh/actions/virtual-environments]
28
+
29
+
**Note: `nektos/act-environments-ubuntu` have been last updated in February, 2020. It's recommended to update the image manually after `docker pull` if you decide to to use it.**
# Overview [](https://github.com/nektos/act/actions)[](https://gitter.im/nektos/act?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[](https://goreportcard.com/report/github.com/nektos/act)[](https://github.com/jonico/awesome-runners)
3
+
# Overview [](https://github.com/nektos/act/actions)[](https://gitter.im/nektos/act?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[](https://goreportcard.com/report/github.com/nektos/act)[](https://github.com/jonico/awesome-runners)
4
4
5
5
6
6
> "Think globally, `act` locally"
@@ -20,34 +20,66 @@ Let's see it in action with a [sample repo](https://github.com/cplee/github-acti
20
20
21
21
# Installation
22
22
23
+
## Necessary prerequisites for running `act`
24
+
`act` depends on `docker` to run workflows.
25
+
26
+
If you are using macOS, please be sure to follow the steps outlined in [Docker Docs for how to install Docker Desktop for Mac](https://docs.docker.com/docker-for-mac/install/).
27
+
28
+
If you are using Windows, please follow steps for [installing Docker Desktop on Windows](https://docs.docker.com/docker-for-windows/install/).
29
+
30
+
If you are using Linux, you will need to [install Docker Engine](https://docs.docker.com/engine/install/).
31
+
32
+
`act` is currently not supported with `podman` or other container backends (it might work, but it's not guaranteed). Please see [#303](https://github.com/nektos/act/issues/303) for updates.
33
+
34
+
## Homebrew
35
+
23
36
To install with [Homebrew](https://brew.sh/), run:
If you are running Windows, download the [latest release](https://github.com/nektos/act/releases/latest) and add the binary into your PATH.
34
49
If you are using [Chocolatey](https://chocolatey.org/) then run:
If you are using NixOS or the Nix package manager on another platform you can install act globally by running
45
73
46
-
`nix-env -iA nixpkgs.act`
74
+
```sh
75
+
nix-env -iA nixpkgs.act
76
+
```
47
77
48
78
or in a shell by running
49
79
50
-
`nix-shell -p act`
80
+
```sh
81
+
nix-shell -p act
82
+
```
51
83
52
84
# Commands
53
85
@@ -117,6 +149,8 @@ It will save that information to `~/.actrc`, please refer to [Configuration](#co
117
149
118
150
# Known Issues
119
151
152
+
## `MODULE_NOT_FOUND`
153
+
120
154
A `MODULE_NOT_FOUND` during `docker cp` command [#228](https://github.com/nektos/act/issues/228) can happen if you are relying on local changes that have not been pushed. This can get triggered if the action is using a path, like:
121
155
122
156
```yaml
@@ -137,42 +171,53 @@ steps:
137
171
138
172
If the `path:` value doesn't match the name of the repository, a `MODULE_NOT_FOUND` will be thrown.
139
173
174
+
## `act` on Windows
175
+
176
+
Running `act` on Windows host is currently broken - see [#587](https://github.com/nektos/act/issues/587)
177
+
140
178
# Runners
141
179
142
180
GitHub Actions offers managed [virtual environments](https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners) for running workflows. In order for `act` to run your workflows locally, it must run a container for the runner defined in your workflow file. Here are the images that `act` uses for each runner type and size:
143
181
144
-
| GitHub Runner | Micro Docker Image | Medium Docker Image | Large Docker Image |
## Please see [IMAGES.md](./IMAGES.md) for more information about the Docker images that can be used with `act`
162
202
163
203
## Default runners are intentionally incomplete
164
204
165
205
These default images do **not** contain **all** the tools that GitHub Actions offers by default in their runners.
166
206
Many things can work improperly or not at all while running those image.
207
+
Additionally, some software might still not work even if installed properly, since GitHub Actions are running in fully virtualized machines while `act` is using Docker containers (e.g. Docker does not support running `systemd`).
208
+
In case of any problems [please create issue](https://github.com/nektos/act/issues/new/choose) in respective repository (issues with `act` in this repository, issues with `nektos/act-environments-ubuntu:18.04` in [`nektos/act-environments`](https://github.com/nektos/act-environments) and issues with any image from user `catthehacker` in [`catthehacker/docker_images`](https://github.com/catthehacker/docker_images))
167
209
168
210
## Alternative runner images
169
211
170
212
If you need an environment that works just like the corresponding GitHub runner then consider using an image provided by [nektos/act-environments](https://github.com/nektos/act-environments):
171
213
172
-
- [nektos/act-environments-ubuntu:18.04](https://hub.docker.com/r/nektos/act-environments-ubuntu/tags) - built from the Packer file GitHub uses in [actions/virtual-environments](https://github.com/actions/runner).
214
+
- [`nektos/act-environments-ubuntu:18.04`](https://hub.docker.com/r/nektos/act-environments-ubuntu/tags) - built from the Packer file GitHub uses in [actions/virtual-environments](https://github.com/actions/runner).
173
215
174
216
:warning: :elephant: `*** WARNING - this image is >18GB 😱***`
175
217
218
+
- [`catthehacker/ubuntu:full-20.04`](https://hub.docker.com/r/catthehacker/ubuntu/tags) - built from Dockerfile based on the Packer template from [actions/virtual-environments](https://github.com/actions/runner).
219
+
This image size is about `61GB` unpacked (`23GB` compressed) but contains more recent software versions (as of date of build).
220
+
176
221
## Use an alternative runner image
177
222
178
223
To use a different image for the runner, use the `-P` option.
@@ -272,6 +317,5 @@ Want to contribute to act? Awesome! Check out the [contributing guidelines](CONT
272
317
273
318
- Install Go tools 1.16+ - (https://golang.org/doc/install)
0 commit comments