# Edit the Kurtosis config file in order to have K3S cluster configuration
-run:
name:Add K3S cluster config in Kurtosis config file
command:|
KURTOSIS_CONFIG_FILEPATH=$(kurtosis config path)
cat \<< EOF > "$KURTOSIS_CONFIG_FILEPATH"
config-version: 2
should-send-metrics: true
kurtosis-clusters:
docker:
type: docker
k3d-k3s-default:
type: kubernetes
config:
kubernetes-cluster-name: k3d-k3s-default
storage-class: standard
enclave-size-in-megabytes: 2048
EOF
# Set the K3S cluster with some previous steps to force this cluster type in the cluster-setting file. This save us to start the engine with the cluster set command
# because we are going to start it on the next step
kurtosis cluster set k3d-k3s-default --cli-log-level trace
-run:
name:Start Kurtosis engine in K8s backend
command:|
kurtosis engine start --enclave-pool-size 2
-run:
name:Run Kurtosis gateway
command:"kurtosisgateway"
background:true
# NOTE: Because CircleCI jobs run on separate machines from each other, we duplicate steps (like checkout) between jobs. This is because doing the "correct" DRY
# NOTE: Because CircleCI jobs run on separate machines from each other, we duplicate steps (like checkout) between jobs. This is because doing the "correct" DRY
# refactoring of, "one job for checkout, one job for build Docker image, etc." would require a) persisting files between jobs and b) persisting Docker images between
# refactoring of, "one job for checkout, one job for build Docker image, etc." would require a) persisting files between jobs and b) persisting Docker images between
...
@@ -170,6 +225,12 @@ jobs:
...
@@ -170,6 +225,12 @@ jobs:
-checkout
-checkout
-run:kurtosis run ${PWD} "$(cat ./.circleci/tests/mev.json)"
-run:kurtosis run ${PWD} "$(cat ./.circleci/tests/mev.json)"
mev_k8s:
executor:ubuntu_vm
steps:
-checkout
-run:kurtosis run ${PWD} "$(cat ./.circleci/tests/mev.json)"
nimbus_mev:
nimbus_mev:
executor:ubuntu_vm
executor:ubuntu_vm
steps:
steps:
...
@@ -177,6 +238,19 @@ jobs:
...
@@ -177,6 +238,19 @@ jobs:
-checkout
-checkout
-run:kurtosis run ${PWD} "$(cat ./.circleci/tests/nimbus-mev.json)"
-run:kurtosis run ${PWD} "$(cat ./.circleci/tests/nimbus-mev.json)"
mix_with_tools_k8s:
executor:ubuntu_vm
steps:
-checkout
-run:kurtosis run ${PWD} "$(cat ./.circleci/tests/mix-with-tools.json)"
mix_with_tools_docker:
executor:ubuntu_vm
steps:
-<<:*setup_kurtosis
-checkout
-run:kurtosis run ${PWD} "$(cat ./.circleci/tests/mix-with-tools.json)"