mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-15 05:52:57 +00:00
Recipe using bake to build with custom arguments (#2141)
* Example using bake to build with custom arguments * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add missing language markers * Unify markdown style in recipes.md * Update docs/using/recipe_code/docker-bake.python312.hcl --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
This commit is contained in:
45
docs/using/recipe_code/docker-bake.python312.hcl
Normal file
45
docs/using/recipe_code/docker-bake.python312.hcl
Normal file
@@ -0,0 +1,45 @@
|
||||
group "default" {
|
||||
targets = ["custom-notebook"]
|
||||
}
|
||||
|
||||
target "foundation" {
|
||||
context = "https://github.com/jupyter/docker-stacks.git#main:images/docker-stacks-foundation"
|
||||
args = {
|
||||
PYTHON_VERSION = "3.12"
|
||||
}
|
||||
tags = ["docker-stacks-foundation"]
|
||||
}
|
||||
|
||||
|
||||
target "base-notebook" {
|
||||
context = "https://github.com/jupyter/docker-stacks.git#main:images/base-notebook"
|
||||
contexts = {
|
||||
docker-stacks-foundation = "target:foundation"
|
||||
}
|
||||
args = {
|
||||
BASE_CONTAINER = "docker-stacks-foundation"
|
||||
}
|
||||
tags = ["base-notebook"]
|
||||
}
|
||||
|
||||
target "minimal-notebook" {
|
||||
context = "https://github.com/jupyter/docker-stacks.git#main:images/minimal-notebook"
|
||||
contexts = {
|
||||
base-notebook = "target:base-notebook"
|
||||
}
|
||||
args = {
|
||||
BASE_CONTAINER = "base-notebook"
|
||||
}
|
||||
tags = ["minimal-notebook"]
|
||||
}
|
||||
|
||||
target "custom-notebook" {
|
||||
context = "."
|
||||
contexts = {
|
||||
minimal-notebook = "target:minimal-notebook"
|
||||
}
|
||||
args = {
|
||||
BASE_CONTAINER = "minimal-notebook"
|
||||
}
|
||||
tags = ["custom-jupyter"]
|
||||
}
|
Reference in New Issue
Block a user