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

Allow custom worker images #328

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Jul 18, 2024

Allow custom worker images

This allows builders to provide their own worker image via build context.
This enables builders to install their own repos, as an example, or use pre-built workers.

Adds azlinux3/worker, mariner2/worker, and windowscross/worker/ build targets which outputs each worker image respectively.
You can take the output of these, inject whatever is needed, and feed that as an input into another build.

Note: By using the image ref as a build-context name, this brings dalec more inline with how Dockerfile works as well.

@cpuguy83 cpuguy83 force-pushed the image_from_context branch 3 times, most recently from c500e35 to c21788d Compare July 24, 2024 21:28
@cpuguy83 cpuguy83 changed the title WIP: Allow custom worker images Allow custom worker images Jul 24, 2024
@cpuguy83 cpuguy83 force-pushed the image_from_context branch from c21788d to 293cb70 Compare July 24, 2024 21:34
@cpuguy83 cpuguy83 marked this pull request as ready for review July 24, 2024 21:38
@cpuguy83 cpuguy83 requested a review from a team as a code owner July 24, 2024 21:38
@cpuguy83 cpuguy83 requested a review from adamperlin July 24, 2024 21:39
@cpuguy83 cpuguy83 force-pushed the image_from_context branch from 293cb70 to 1e30236 Compare July 24, 2024 21:42
test/azlinux_test.go Outdated Show resolved Hide resolved
test/windows_test.go Outdated Show resolved Hide resolved
This allows builders to provide their own worker image.
This enables builders to install their own repos, as an example, or use
pre-built workers.

Adds `azlinux3/worker`, `mariner2/worker`, and `windowscross/worker/`
build targets which outputs each worker image respectively. You can
take the output of these, inject whatever is needed, and feed that as an
input into another build.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 force-pushed the image_from_context branch from 1e30236 to 75337da Compare July 25, 2024 21:49
@cpuguy83 cpuguy83 merged commit 8c1d340 into Azure:main Jul 25, 2024
10 checks passed
@cpuguy83 cpuguy83 deleted the image_from_context branch July 25, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants