Selaa lähdekoodia

ci: Fix docker-related errors in Algorand job (#4374)

This is an attempt to fix errors related to 'docker compose' not being installed.
The version of the sandbox we use has a bug with its `docker compose`
check. This commit includes a workaround to get CI to work.
John Saigle 6 kuukautta sitten
vanhempi
sitoutus
d7d9907cd0
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      algorand/runPythonUnitTests.sh

+ 7 - 0
algorand/runPythonUnitTests.sh

@@ -15,6 +15,13 @@ sed -i -e 's@export ALGOD_URL=""@export ALGOD_URL="https://github.com/algorand/g
        -e 's/export INDEXER_ENABLE_ALL_PARAMETERS="false"/export INDEXER_ENABLE_ALL_PARAMETERS="true"/'  _sandbox/config.dev
 
 cd _sandbox
+
+# NOTE: This is a workaround for a bug. It's already fixed in `d8e60ed1a6203f02d3b4702e2e2eefdb7f246f92` in the sandbox
+# repository, but we're not ready to upgrade. This allows docker to work in the meantime.
+# These lines can be removed when we update the commit hash.
+sed -i -e 's/docker compose help/docker compose --help/' ./sandbox
+sed -i -e 's/-eq 16/-eq 0/' ./sandbox
+
 ./sandbox clean
 ./sandbox up -v dev
 cd ..