Azure / DevOps-Self-Hosted

This repository contains solutions to create and operate self-hosted agents for DevOps environments
MIT License
57 stars 16 forks source link

Introduce MS-hosted agents image as image-basis #17

Open AlexanderSehr opened 2 years ago

AlexanderSehr commented 2 years ago

The images used by the Microsoft-Hosted agents already provide a very comprehensive suite of installed software. Using Packer and the file used by Microsoft to bake these images, we could introduce their creation as a preliminary step to the baking process.

ggirard07 commented 1 year ago

That would be really interesting indeed, but kind of curious how you would overcome the legal issues that prevented them to do so

https://github.com/actions/runner-images/issues/176#issuecomment-620638942

AlexanderSehr commented 1 year ago

Hey @ggirard07 thanks for sharing. The idea would be less to make it available in the marketplace, but more to implement the logic, some of the participants in the issue mentioned, to built an image based on the Packer file published in the referenced GitHub repository. So effectively, the consumer would need to build the images themselves.

The main reason this isn't implemented yet is that it turned out that the Packer built is very unstable (failing usually 2/3+ of times) which isn't really a good look. I can only assume this works better when using ImageTemplates as they may have a lot of retries implemented in there. Unfortunately it is currently not possible to use that Packer file directly as a customization step in the Image Template resource. Meh...