diff --git a/bin/deploy_to_balena.sh b/bin/deploy_to_balena.sh index e6266f85e..28b266ee2 100755 --- a/bin/deploy_to_balena.sh +++ b/bin/deploy_to_balena.sh @@ -6,7 +6,7 @@ print_help() { echo "Usage: deploy_to_balena.sh [options]" echo "Options:" echo " -h, --help show this help message and exit" - echo " -b, --board BOARD specify the board to build for (pi1, pi2, pi3, pi4, pi5)" + echo " -b, --board BOARD specify the board to build for (pi1, pi2, pi3, pi4, pi5, x86)" echo " -f, --fleet FLEET specify the fleet name to deploy to" echo " -s, --short-hash HASH specify the short hash to use for the image tag" echo " -d, --dev run in dev mode" @@ -23,7 +23,7 @@ while [[ $# -gt 0 ]]; do -b|--board) export BOARD="$2" - if [[ $BOARD =~ ^(pi1|pi2|pi3|pi4|pi5)$ ]]; then + if [[ $BOARD =~ ^(pi1|pi2|pi3|pi4|pi5|x86)$ ]]; then echo "Building for $BOARD" else echo "Invalid board $BOARD" @@ -91,7 +91,7 @@ function prepare_balena_file() { cat docker-compose.balena.yml.tmpl | \ envsubst > balena-deploy/docker-compose.yml - if [[ "$BOARD" == "pi5" ]]; then + if [[ $BOARD =~ ^(pi5|x86)$ ]]; then sed -i '/devices:/ {N; /\n.*\/dev\/vchiq:\/dev\/vchiq/d}' \ balena-deploy/docker-compose.yml fi @@ -118,7 +118,7 @@ else cat docker-compose.balena.dev.yml.tmpl | \ envsubst > docker-compose.yml - if [[ "$BOARD" == "pi5" ]]; then + if [[ $BOARD =~ ^(pi5|x86)$ ]]; then sed -i '/devices:/ {N; /\n.*\/dev\/vchiq:\/dev\/vchiq/d}' \ docker-compose.yml fi diff --git a/docs/balena-fleet-deployment.md b/docs/balena-fleet-deployment.md index 2f538c4ce..cd5d29ac5 100644 --- a/docs/balena-fleet-deployment.md +++ b/docs/balena-fleet-deployment.md @@ -164,3 +164,7 @@ a while for the device to appear online. Once done, the display should show the Anthias splash screen. You can now add assets via the web interface. + +## Deploying x86 devices + +Some preliminary code has been enabled to deploy to x86 fleets. However, at this time, it only works in Proxmox VM using the Intel NUC device type.