-
Notifications
You must be signed in to change notification settings - Fork 271
Expand file tree
/
Copy pathdocker-bake-profiling.hcl
More file actions
43 lines (38 loc) · 1004 Bytes
/
docker-bake-profiling.hcl
File metadata and controls
43 lines (38 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Override targets for profiling builds with frame pointers enabled
// Variables inherited from docker-bake.hcl when files are merged
variable "VERGEN_GIT_SHA" {
default = ""
}
variable "VERGEN_GIT_SHA_SHORT" {
default = ""
}
target "chef" {
dockerfile = "Dockerfile.chef"
context = "."
platforms = ["linux/amd64", "linux/arm64"]
args = {
RUST_PROFILE = "profiling"
RUST_FEATURES = "asm-keccak,jemalloc,otlp,tracy"
EXTRA_RUSTFLAGS = "-C force-frame-pointers=yes"
}
}
target "_common" {
dockerfile = "Dockerfile"
context = "."
contexts = {
chef = "target:chef"
}
args = {
CHEF_IMAGE = "chef"
RUST_PROFILE = "profiling"
RUST_FEATURES = "asm-keccak,jemalloc,otlp,tracy"
EXTRA_RUSTFLAGS = "-C force-frame-pointers=yes"
VERGEN_GIT_SHA = "${VERGEN_GIT_SHA}"
VERGEN_GIT_SHA_SHORT = "${VERGEN_GIT_SHA_SHORT}"
}
platforms = ["linux/amd64", "linux/arm64"]
}
target "tempo" {
inherits = ["_common", "docker-metadata"]
target = "tempo"
}