Skip to content

Modular logistics and supply chain operating system (LSOS)

Build app-httpd and socketcluster images

Eugene Dementyeve61ace5bcbb0
diff --git a/docker-bake.hcl b/docker-bake.hcl
index 662d84f1..08cc69dc 100644
--- a/docker-bake.hcl
+++ b/docker-bake.hcl
@@ -4,7 +4,7 @@ variable "tags" { default = "[]" }
target "docker-metadata-action" {}
group "default" {
- targets = ["app"]
+ targets = ["app", "app-httpd", "socketcluster"]
}
target "app" {
@@ -39,3 +39,32 @@ target "app" {
concat(["latest"], jsondecode(replace(tags, "willbereplaced:", "")))
) : []
}
+
+target "app-httpd" {
+ inherits = ["docker-metadata-action"]
+
+ context = "./"
+ dockerfile = "docker/httpd/Dockerfile"
+ platforms = [
+ "linux/amd64",
+ ]
+
+ tags = notequal("", REGISTRY) ? formatlist(
+ "${REGISTRY}/fleetbase-app-httpd:%s",
+ concat(["latest"], jsondecode(replace(tags, "willbereplaced:", "")))
+ ) : []
+}
+target "socketcluster" {
+ inherits = ["docker-metadata-action"]
+
+ context = "./"
+ dockerfile = "socket/Dockerfile"
+ platforms = [
+ "linux/amd64",
+ ]
+
+ tags = notequal("", REGISTRY) ? formatlist(
+ "${REGISTRY}/fleetbase-socketcluster:%s",
+ concat(["latest"], jsondecode(replace(tags, "willbereplaced:", "")))
+ ) : []
+}