-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
from dataclasses import dataclass | ||
|
||
from buildbot.plugins import util | ||
|
||
from steps.base import BuildStep | ||
from steps.containers import DockerConfig, StartContainerStep | ||
|
||
|
||
@dataclass | ||
class WorkerMachine(object): | ||
arch: str | ||
name: str | ||
|
||
|
||
|
||
@dataclass | ||
class DistroDockerBuild: | ||
name: str # Distro name, such as ubuntu, rhel | ||
# Version number (such as 12 (Debian), 22.04 (Ubuntu), 8 (Rhel) | ||
version: str | ||
version_alias: str # Distro alias, such as Bookworm, Noble | ||
docker_environment: DockerConfig # Runtime environment config | ||
|
||
tags: list[str] # List of tags, presented in the UI | ||
# All the build steps the docker build must run. | ||
buildsteps: list[BuildStep] | ||
properties: dict[str, str] | ||
|
||
def __str__(self): | ||
return f'DistroDockerBuild: {self.name}' | ||
|
||
def create_builder_factory(self) -> util.BuildFactory: | ||
f = util.BuildFactory() | ||
f.addStep(StartContainerStep(self.docker_environment).generate()) | ||
f.addStep(FetchTarballStep().generate()) | ||
f.addStep(ConfigureMariaDBStep(cmake).generate()) | ||
f.addStep(CompileStep().generate()) | ||
f.addStep(MTRStep().generate()) | ||
f.addStep(StopContainerStep.generate()) | ||
return f | ||
... | ||
|
||
def start_container_step(self) -> Build: | ||
... | ||
|
||
def stop_container(self): | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class RPMBuilder: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters