Virtual-environments: Create docker images for linux environment

Created on 2 Apr 2020  路  5Comments  路  Source: actions/virtual-environments

Tool information

  • Tool name: Docker
  • Add or update? Add
  • Desired version: -
  • Approximate size: -
  • If this is an add request:

    • Brief description of tool: Docker image to be used as base for self hosted runner containers

    • URL for tool's homepage: https://hub.docker.com/

Area for Triage: -

Question, Bug, or Feature?: Feature

Virtual environments affected

  • [ ] macOS 10.15
  • [x] Ubuntu 16.04 LTS
  • [ ] Ubuntu 18.04 LTS
  • [ ] Windows Server 2016 R2
  • [ ] Windows Server 2019

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.

Containers Image administration Ubuntu community-feature enhancement

Most helpful comment

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

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings