mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-02-16 23:35:46 +00:00
67 lines
1.3 KiB
HCL
67 lines
1.3 KiB
HCL
group "default" {
|
|
targets = ["backend", "model-server", "web"]
|
|
}
|
|
|
|
variable "BACKEND_REPOSITORY" {
|
|
default = "onyxdotapp/onyx-backend"
|
|
}
|
|
|
|
variable "WEB_SERVER_REPOSITORY" {
|
|
default = "onyxdotapp/onyx-web-server"
|
|
}
|
|
|
|
variable "MODEL_SERVER_REPOSITORY" {
|
|
default = "onyxdotapp/onyx-model-server"
|
|
}
|
|
|
|
variable "INTEGRATION_REPOSITORY" {
|
|
default = "onyxdotapp/onyx-integration"
|
|
}
|
|
|
|
variable "TAG" {
|
|
default = "latest"
|
|
}
|
|
|
|
target "backend" {
|
|
context = "backend"
|
|
dockerfile = "Dockerfile"
|
|
|
|
cache-from = ["type=registry,ref=${BACKEND_REPOSITORY}:latest"]
|
|
cache-to = ["type=inline"]
|
|
|
|
tags = ["${BACKEND_REPOSITORY}:${TAG}"]
|
|
}
|
|
|
|
target "web" {
|
|
context = "web"
|
|
dockerfile = "Dockerfile"
|
|
|
|
cache-from = ["type=registry,ref=${WEB_SERVER_REPOSITORY}:latest"]
|
|
cache-to = ["type=inline"]
|
|
|
|
tags = ["${WEB_SERVER_REPOSITORY}:${TAG}"]
|
|
}
|
|
|
|
target "model-server" {
|
|
context = "backend"
|
|
|
|
dockerfile = "Dockerfile.model_server"
|
|
|
|
cache-from = ["type=registry,ref=${MODEL_SERVER_REPOSITORY}:latest"]
|
|
cache-to = ["type=inline"]
|
|
|
|
tags = ["${MODEL_SERVER_REPOSITORY}:${TAG}"]
|
|
}
|
|
|
|
target "integration" {
|
|
context = "backend"
|
|
dockerfile = "tests/integration/Dockerfile"
|
|
|
|
// Provide the base image via build context from the backend target
|
|
contexts = {
|
|
base = "target:backend"
|
|
}
|
|
|
|
tags = ["${INTEGRATION_REPOSITORY}:${TAG}"]
|
|
}
|