Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix Balena build issues (#2602)

Wouter Born9cc052b01df8
diff --git a/balena/docker-compose.yml b/balena/docker-compose.yml
index 6889cb40c..af8994ca4 100755
--- a/balena/docker-compose.yml
+++ b/balena/docker-compose.yml
@@ -1,3 +1,6 @@
+# Balena CLI requires this version, see: https://github.com/balena-io/balena-cli/issues/2314
+version: '2.4'
+
volumes:
proxy-data:
postgresql-data:
diff --git a/balena/run_balena_build.sh b/balena/run_balena_build.sh
index 267eed0e3..aefaf29cc 100755
--- a/balena/run_balena_build.sh
+++ b/balena/run_balena_build.sh
@@ -47,9 +47,9 @@ if [ ! -d "./manager-build" ]; then
cp -r ../manager/build/install/manager ./manager-build
fi
-# Push to balena with no cache or run docker-compose up if dry-run
+# Push to balena with no cache or run docker compose up if dry-run
if [ "$DRY_RUN" = true ]; then
- docker compose build --no-cache && docker-compose -f ./docker-compose.yml -p openremote up --force-recreate -d
+ docker compose -f ./docker-compose.yml -p openremote build --no-cache && docker compose -f ./docker-compose.yml -p openremote up --force-recreate -d
else
balena push "$BALENA_FLEET_SLUG" --nocache
fi