Tool information
Area for Triage: -
Question, Bug, or Feature?: Feature
Virtual environments affected
Can this tool be installed during the build? No
Are you willing to submit a PR?
No. I am not familiar with current environments format.
I tried to create a self hosted runner for a PHP project but it doesn't work https://github.com/shivammathur/setup-php/issues/209
I am not sure why, but I guess I need to install a bunch of packages in my docker container (where the self hosted runner is installed) so it will be compatible with the same setups that work with ubuntu-latest.
hi @oleg-brizy, unfortunately we won't be able to work on this but I'll leave this open in case someone out there has a chance to figure it out. Thanks for the feedback. It's not the first time it's requested: https://github.com/actions/virtual-environments/issues/196
I do agree, that's a need. Especially because it was available for AzDO (https://github.com/Microsoft/azure-pipelines-image-generation/)
I do hope, it'll get in the backlog at one moment :)
For shivammathur/setup-php after 2.2.0 release, shivammathur/node docker images can be used for ubuntu workflows. For windows workflows servercore docker image with pwsh installed would work.
Example Dockerfile for setting up self-hosted runner - Ubuntu, Windows
I've built ubuntu-20.04 in Docker, https://quay.io/repository/catthehacker/virtual-environments?tab=tags
This image has almost all software that is in GitHub Actions runner except for: cached Docker images (due to not being able to run Docker inside Docker build), Android (it randomly fails), currently tests for all Dotnet versions were skipped due to how time consuming they are, there are certain tests that are also skipped because I couldn't get them to work during build (mysql, postsgres, docker info), GitHub Actions Self-Hosted Runner is not included as well.
Most helpful comment
For
shivammathur/setup-phpafter2.2.0release,shivammathur/nodedocker images can be used for ubuntu workflows. Forwindowsworkflowsservercoredocker image withpwshinstalled would work.Example Dockerfile for setting up self-hosted runner - Ubuntu, Windows