frigate/docker/tensorrt/trt.hcl

87 lines
1.6 KiB
HCL
Raw Normal View History

2023-07-18 19:52:32 +03:00
variable "ARCH" {
default = "amd64"
}
2023-07-18 20:14:37 +03:00
variable "BASE_IMAGE" {
default = null
}
variable "SLIM_BASE" {
default = null
}
variable "TRT_BASE" {
default = null
}
2023-07-18 19:52:32 +03:00
target "_build_args" {
2023-07-18 20:14:37 +03:00
args = {
BASE_IMAGE = BASE_IMAGE,
SLIM_BASE = SLIM_BASE,
TRT_BASE = TRT_BASE
}
2023-07-18 19:52:32 +03:00
platforms = ["linux/${ARCH}"]
}
2023-07-18 19:55:45 +03:00
target wget {
dockerfile = "docker/main/Dockerfile"
target = "wget"
inherits = ["_build_args"]
}
2023-07-18 00:19:13 +03:00
target deps {
2023-07-17 23:03:41 +03:00
dockerfile = "docker/main/Dockerfile"
target = "deps"
2023-07-18 19:52:32 +03:00
inherits = ["_build_args"]
2023-07-17 23:03:41 +03:00
}
target rootfs {
dockerfile = "docker/main/Dockerfile"
target = "rootfs"
2023-07-18 19:52:32 +03:00
inherits = ["_build_args"]
2023-07-17 23:03:41 +03:00
}
2023-07-18 00:19:13 +03:00
target wheels {
dockerfile = "docker/main/Dockerfile"
target = "wheels"
2023-07-18 19:52:32 +03:00
inherits = ["_build_args"]
2023-07-18 00:19:13 +03:00
}
2023-07-18 15:08:43 +03:00
target devcontainer {
dockerfile = "docker/main/Dockerfile"
platforms = ["linux/amd64"]
target = "devcontainer"
2023-07-18 15:08:43 +03:00
}
2023-07-18 19:52:32 +03:00
target "tensorrt-base" {
dockerfile = "docker/tensorrt/Dockerfile.base"
2023-07-18 15:08:43 +03:00
context = "."
contexts = {
deps = "target:deps",
2023-07-18 19:52:32 +03:00
}
inherits = ["_build_args"]
}
target "tensorrt" {
dockerfile = "docker/tensorrt/Dockerfile.${ARCH}"
context = "."
contexts = {
2023-07-18 19:55:45 +03:00
wget = "target:wget",
2023-07-18 19:52:32 +03:00
tensorrt-base = "target:tensorrt-base",
2023-07-18 15:08:43 +03:00
rootfs = "target:rootfs"
wheels = "target:wheels"
}
target = "frigate-tensorrt"
2023-07-18 19:52:32 +03:00
inherits = ["_build_args"]
2023-07-18 15:08:43 +03:00
}
target devcontainer-trt {
2023-07-17 23:03:41 +03:00
dockerfile = "docker/tensorrt/Dockerfile"
2023-07-18 00:19:13 +03:00
context = "."
2023-07-17 23:03:41 +03:00
contexts = {
deps = "target:deps",
rootfs = "target:rootfs"
2023-07-18 00:19:13 +03:00
wheels = "target:wheels"
devcontainer = "target:devcontainer"
2023-07-17 23:03:41 +03:00
}
platforms = ["linux/amd64"]
target = "devcontainer-trt"
2023-07-18 19:52:32 +03:00
}