mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
39 lines
698 B
HCL
39 lines
698 B
HCL
|
variable "AMDGPU" {
|
||
|
default = "gfx900"
|
||
|
}
|
||
|
variable "ROCM" {
|
||
|
default = "5.7.3"
|
||
|
}
|
||
|
variable "HSA_OVERRIDE_GFX_VERSION" {
|
||
|
default = ""
|
||
|
}
|
||
|
variable "HSA_OVERRIDE" {
|
||
|
default = "1"
|
||
|
}
|
||
|
target deps {
|
||
|
dockerfile = "docker/main/Dockerfile"
|
||
|
platforms = ["linux/amd64"]
|
||
|
target = "deps"
|
||
|
}
|
||
|
|
||
|
target rootfs {
|
||
|
dockerfile = "docker/main/Dockerfile"
|
||
|
platforms = ["linux/amd64"]
|
||
|
target = "rootfs"
|
||
|
}
|
||
|
|
||
|
target rocm {
|
||
|
dockerfile = "docker/rocm/Dockerfile"
|
||
|
contexts = {
|
||
|
deps = "target:deps",
|
||
|
rootfs = "target:rootfs"
|
||
|
}
|
||
|
platforms = ["linux/amd64"]
|
||
|
args = {
|
||
|
AMDGPU = AMDGPU,
|
||
|
ROCM = ROCM,
|
||
|
HSA_OVERRIDE_GFX_VERSION = HSA_OVERRIDE_GFX_VERSION,
|
||
|
HSA_OVERRIDE = HSA_OVERRIDE
|
||
|
}
|
||
|
}
|