Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create docker images for linux environment #666

Closed
1 of 5 tasks
oleg-brizy opened this issue Apr 2, 2020 · 17 comments
Closed
1 of 5 tasks

Create docker images for linux environment #666

oleg-brizy opened this issue Apr 2, 2020 · 17 comments

Comments

@oleg-brizy
Copy link

oleg-brizy commented Apr 2, 2020

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
  • 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 shivammathur/setup-php#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.

@alepauly
Copy link
Contributor

alepauly commented May 5, 2020

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: #196

@lgmorand
Copy link

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 :)

@ezYakaEagle442
Copy link

@shivammathur
Copy link
Contributor

shivammathur commented May 13, 2020

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

@catthehacker
Copy link
Contributor

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.

@01e9
Copy link

01e9 commented Feb 15, 2021

https://hub.docker.com/r/01e9/github-actions-runner

@lgmorand
Copy link

@01e9 thanks! could you edit the hub description with a link to your repo. Always safer to know what's inside the container :) and also to see argument, especially the TZ your defaulted with your city

@catthehacker
Copy link
Contributor

IMHO, there is a better base image containing runner: https://github.com/myoung34/docker-github-actions-runner

@01e9
Copy link

01e9 commented Mar 12, 2021

@lgmorand #666 (comment)

Done #666 (comment)

@shughes-uk
Copy link

shughes-uk commented May 5, 2021

this would be very helpful for those of us who want to use self hosted runners without breaking support for almost every action on the marketplace

@catthehacker
Copy link
Contributor

@shughes-uk
Copy link

@shughes-uk might want to look at https://github.com/nektos/act && https://github.com/nektos/act/blob/master/IMAGES.md

The actions/virtual-environment's full images seem to have last been updated feb 2020 which means they're pretty stale. Official docker images would be hopefully fully maintained.

@catthehacker
Copy link
Contributor

catthehacker commented May 5, 2021

@shughes-uk It will not happen since some of the software cannot be redistributed due to licencing.
#2320 (comment) + #176 (comment)

catthehacker/full-20.04 has been updated 5 months ago if that's ok for you

@shughes-uk
Copy link

@shughes-uk It will not happen since some of the software cannot be redistributed due to licencing.
#2320 (comment)

catthehacker/full-20.04 has been updated 5 months ago if that's ok for you

I'd love to but after codecov everyone is a little shaky on introducing unofficial things like this. What a pain.

@catthehacker
Copy link
Contributor

There are plans for smaller images though: #3242

@shughes-uk
Copy link

There are plans for smaller images though: #3242

awesome! might solve things.

@miketimofeev
Copy link
Contributor

Closing this for now as now progress was made throughout the year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants