Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions infrastructure/charts/mev-commit-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ service:
resources:
requests:
cpu: "100m"
memory: "128Mi"
memory: "50Mi"
limits:
cpu: "500m"
memory: "512Mi"
memory: "100Mi"

# Configuration for the Dashboard
config:
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/charts/mev-commit-emulator-bt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ resources:
cpu: 1000m
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
cpu: 50m
memory: 100Mi

# Bidder Emulator specific configuration
bidderEmulator:
Expand Down
11 changes: 6 additions & 5 deletions infrastructure/charts/mev-commit-erigon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,29 @@ terminationGracePeriodSeconds: 60
resources:
erigon:
requests:
cpu: "1000m"
memory: "2Gi"
cpu: "100m"
memory: "500Mi"
limits:
cpu: "6000m"
memory: "16Gi"
snode:
requests:
cpu: "100m"
memory: "1Gi"
memory: "100Mi"
limits:
cpu: "6000m"
memory: "16Gi"

# Init container resources
initContainerResources:
requests:
cpu: "500m"
memory: "500Mi"
cpu: "50m"
memory: "100Mi"
limits:
cpu: "1000m"
memory: "1Gi"


service:
erigon:
type: LoadBalancer
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/charts/mev-commit-geth-l1/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ resources:
cpu: 2000m
memory: 4Gi
requests:
cpu: 500m
memory: 1Gi
cpu: 50m
memory: 100Mi

# Node selector and tolerations
#nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/charts/postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resources:
memory: 4Gi
requests:
cpu: 100m
memory: 1Gi
memory: 10Mi

# Security context
securityContext:
Expand Down
80 changes: 51 additions & 29 deletions infrastructure/docker/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
variable "TAG" { default = "dev" }
variable "PLATFORM" { default = ["linux/amd64"] }
variable "REGISTRY" { default = "ghcr.io/primev" }
variable "REPO_NAME" { default = "" }
variable "TAG" {
default = "dev"
}

variable "PLATFORM" {
default = "linux/amd64"
}

variable "REGISTRY" {
default = "ghcr.io/primev"
}

variable "REPO_NAME" {
default = ""
}

# Git variables - these will be passed from Makefile
variable "GIT_BRANCH" {
Expand All @@ -15,118 +26,129 @@ variable "GIT_COMMIT" {
function "get_labels" {
params = [component]
result = {
"branch" = GIT_BRANCH != null ? GIT_BRANCH : "unknown"
"commit" = GIT_COMMIT != null ? GIT_COMMIT : "unknown"
"component" = component
"build.timestamp" = timestamp()
"build.tag" = TAG
"branch" = GIT_BRANCH != null ? GIT_BRANCH : "unknown"
"commit" = GIT_COMMIT != null ? GIT_COMMIT : "unknown"
"component" = component
"build.timestamp"= timestamp()
"build.tag" = TAG
}
}

target "mev-commit-builder" {
inherits = ["_common"]
context = "../../"
dockerfile = "infrastructure/docker/Dockerfile.builder"
labels = get_labels("builder")
labels = get_labels("builder")
}

target "mev-commit-oracle" {
inherits = ["_common"]
inherits = ["_common"]
context = "./"
dockerfile = "Dockerfile.oracle"
contexts = {
builder_ctx = "target:mev-commit-builder"
}
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-mev-commit-oracle" : "${REGISTRY}/mev-commit-oracle:${TAG}"]
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-mev-commit-oracle" : "${REGISTRY}/mev-commit-oracle:${TAG}"]
labels = get_labels("oracle")
}

target "mev-commit" {
inherits = ["_common"]
inherits = ["_common"]
context = "./"
dockerfile = "Dockerfile.p2p"
contexts = {
builder_ctx = "target:mev-commit-builder"
}
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-mev-commit" : "${REGISTRY}/mev-commit:${TAG}"]
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-mev-commit" : "${REGISTRY}/mev-commit:${TAG}"]
labels = get_labels("p2p")
}

target "mev-commit-bridge" {
inherits = ["_common"]
inherits = ["_common"]
context = "./"
dockerfile = "Dockerfile.bridge"
contexts = {
builder_ctx = "target:mev-commit-builder"
}
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-mev-commit-bridge" : "${REGISTRY}/mev-commit-bridge:${TAG}"]
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-mev-commit-bridge" : "${REGISTRY}/mev-commit-bridge:${TAG}"]
labels = get_labels("bridge")
}

target "mev-commit-dashboard" {
inherits = ["_common"]
inherits = ["_common"]
context = "./"
dockerfile = "Dockerfile.dashboard"
contexts = {
builder_ctx = "target:mev-commit-builder"
}
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-mev-commit-dashboard" : "${REGISTRY}/mev-commit-dashboard:${TAG}"]
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-mev-commit-dashboard" : "${REGISTRY}/mev-commit-dashboard:${TAG}"]
labels = get_labels("dashboard")
}

target "preconf-rpc" {
inherits = ["_common"]
inherits = ["_common"]
context = "./"
dockerfile = "Dockerfile.rpc"
contexts = {
builder_ctx = "target:mev-commit-builder"
}
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-preconf-rpc" : "${REGISTRY}/preconf-rpc:${TAG}"]
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-preconf-rpc" : "${REGISTRY}/preconf-rpc:${TAG}"]
labels = get_labels("preconf-rpc")
}

target "bidder-emulator" {
inherits = ["_common"]
inherits = ["_common"]
context = "./"
dockerfile = "Dockerfile.bidderemulator"
contexts = {
builder_ctx = "target:mev-commit-builder"
}
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-bidder-emulator" : "${REGISTRY}/bidder-emulator:${TAG}"]
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-bidder-emulator" : "${REGISTRY}/bidder-emulator:${TAG}"]
labels = get_labels("bidder-emulator")
}

target "provider-emulator" {
inherits = ["_common"]
inherits = ["_common"]
context = "./"
dockerfile = "Dockerfile.provideremulator"
contexts = {
builder_ctx = "target:mev-commit-builder"
}
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-provider-emulator" : "${REGISTRY}/provider-emulator:${TAG}"]
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-provider-emulator" : "${REGISTRY}/provider-emulator:${TAG}"]
labels = get_labels("provider-emulator")
}

target "relay-emulator" {
inherits = ["_common"]
inherits = ["_common"]
context = "./"
dockerfile = "Dockerfile.relayemulator"
contexts = {
builder_ctx = "target:mev-commit-builder"
}
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-relay-emulator" : "${REGISTRY}/relay-emulator:${TAG}"]
tags = [REPO_NAME != "" ? "${REGISTRY}/${REPO_NAME}:${TAG}-relay-emulator" : "${REGISTRY}/relay-emulator:${TAG}"]
labels = get_labels("relay-emulator")
}

group "all" {
targets = ["mev-commit-builder", "mev-commit-oracle", "mev-commit", "mev-commit-bridge", "mev-commit-dashboard", "preconf-rpc", "bidder-emulator", "provider-emulator", "relay-emulator"]
targets = [
"mev-commit-builder",
"mev-commit-oracle",
"mev-commit",
"mev-commit-bridge",
"mev-commit-dashboard",
"preconf-rpc",
"bidder-emulator",
"provider-emulator",
"relay-emulator"
]
}

group "default" {
targets = ["all"]
}

target "_common" {
platforms = PLATFORM
output = ["type=docker"]
platforms = [PLATFORM]
output = ["type=docker"]
}

Loading