From ab2f8ebfdbd97589e0df0e1fcc0d9f049577e832 Mon Sep 17 00:00:00 2001 From: Geek Squirrel Date: Tue, 8 Sep 2026 09:58:20 +0800 Subject: [PATCH] fix: call anytype binary from PATH instead of /app/anytype anytype-cli v0.3.7 moved the binary from /app/anytype to /usr/local/bin/anytype, leaving /app empty in the image. The optional anytype-cli_bootstrap service and tests/test-anytype-cli.sh still used the old absolute path, so account creation failed silently (the error was swallowed by '|| true' and the script still exited 0) and the bot account was never created with the self-hosted network config. Invoke the binary by name so it resolves through PATH regardless of its install location inside the image. --- docker-compose.yml | 4 ++-- tests/test-anytype-cli.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6bb0170..5de47a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -243,10 +243,10 @@ services: # /bin/sh -c " # if [ ! -f /root/.anytype/config.json ]; then # echo 'Creating bot account...'; - # /app/anytype serve & + # anytype serve & # SERVER_PID=$$!; # sleep 2; - # /app/anytype auth create $${ANYTYPE_CLI_ACCOUNT_NAME} --network-config /etc/anytype/network.yml || true; + # anytype auth create $${ANYTYPE_CLI_ACCOUNT_NAME} --network-config /etc/anytype/network.yml || true; # echo 'Waiting for account initialization...'; # sleep 2; # kill $$SERVER_PID 2>/dev/null || true; diff --git a/tests/test-anytype-cli.sh b/tests/test-anytype-cli.sh index a2b6d5e..ad60353 100755 --- a/tests/test-anytype-cli.sh +++ b/tests/test-anytype-cli.sh @@ -13,11 +13,11 @@ docker compose ps anytype-cli echo echo "2. Checking authentication status..." -docker compose exec anytype-cli /app/anytype auth status +docker compose exec anytype-cli anytype auth status echo echo "3. Listing spaces..." -docker compose exec anytype-cli /app/anytype space list +docker compose exec anytype-cli anytype space list echo echo "4. Checking health..."