-
-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Graduate Docker backend from experimental status. (#14310)
The Docker backend was introduced in Pantsbuild 2.7.0. It is now proven to be a functional backend for many common Docker use cases. This deprecates `pants.backend.experimental.docker` in favour of `pants.backend.docker`.
- Loading branch information
Showing
7 changed files
with
34 additions
and
16 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from pants.backend.codegen import export_codegen_goal | ||
from pants.backend.docker.goals.tailor import rules as tailor_rules | ||
from pants.backend.docker.rules import rules as docker_rules | ||
from pants.backend.docker.target_types import DockerImageTarget | ||
from pants.backend.python.util_rules.pex import rules as pex_rules | ||
|
||
|
||
def rules(): | ||
return ( | ||
*docker_rules(), | ||
*export_codegen_goal.rules(), | ||
*pex_rules(), | ||
*tailor_rules(), | ||
) | ||
|
||
|
||
def target_types(): | ||
return (DockerImageTarget,) |
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 |
---|---|---|
@@ -1,21 +1,17 @@ | ||
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from pants.backend.codegen import export_codegen_goal | ||
from pants.backend.docker.goals.tailor import rules as tailor_rules | ||
from pants.backend.docker.rules import rules as docker_rules | ||
from pants.backend.docker.target_types import DockerImageTarget | ||
from pants.backend.python.util_rules.pex import rules as pex_rules | ||
from pants.backend.docker import register | ||
from pants.base.deprecated import deprecated | ||
|
||
|
||
@deprecated( | ||
"2.11.0.dev0", | ||
"The `pants.backend.experimental.docker` backend has graduated. Use `pants.backend.docker` instead.", | ||
) | ||
def rules(): | ||
return ( | ||
*docker_rules(), | ||
*export_codegen_goal.rules(), | ||
*pex_rules(), | ||
*tailor_rules(), | ||
) | ||
return register.rules() | ||
|
||
|
||
def target_types(): | ||
return (DockerImageTarget,) | ||
return register.target_types() |
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