Skip to content
Closed
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
10 changes: 6 additions & 4 deletions custom-recipes/buildernet/mkosi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ ls /dev/kvm
curl -sSfL https://raw.githubusercontent.com/flashbots/builder-playground/main/install.sh | bash

# 2. Create project dir and generate recipe files
# (ignore if you're reading the generated README)
mkdir buildernet-dev && cd buildernet-dev
builder-playground generate buildernet/mkosi

# 3. Point to the VM image
# - you can point to a local file or URL
# - alternatively you can set this in playground.yaml (see below)
# 3. Build a VM image or point to it
# Build
./scripts/build.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The BuilderNet VM should be built according to flashbots-images instructions. Those might change.
I have added builder.sh as an example, and it shouldnt be used as part of regular workflow.

# or you can point to a local file or URL (can be set in playground.yaml - see below)
export BUILDERNET_IMAGE=/path/to/buildernet-qemu.qcow2

# 4. Start (runs L1 Docker stack + VM in the background)
builder-playground start playground.yaml --bind-external --detached
builder-playground start playground.yaml --bind-external

# 5. Wait for the VM to boot (~60-90s) then check readiness
./scripts/operator-api-health.sh # repeat until you see "OK"
Expand Down
2 changes: 1 addition & 1 deletion custom-recipes/buildernet/mkosi/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PROJECT_DIR="${SCRIPT_DIR}/.."

FLASHBOTS_IMAGES_DIR="${PROJECT_DIR}/.flashbots-images"
FLASHBOTS_IMAGES_REPO="https://github.com/flashbots/flashbots-images.git"
FLASHBOTS_IMAGES_BRANCH="${FLASHBOTS_IMAGES_BRANCH:-main}"
FLASHBOTS_IMAGES_BRANCH="${FLASHBOTS_IMAGES_BRANCH:-fryd/mkosi-playground}"

if [[ ! -d "${FLASHBOTS_IMAGES_DIR}" ]]; then
echo "Cloning flashbots-images (branch: ${FLASHBOTS_IMAGES_BRANCH})..."
Expand Down