From eef46940da786dd9835a8e2063e0d9e73164c370 Mon Sep 17 00:00:00 2001 From: Lakr <25259084+Lakr233@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:14:57 +0800 Subject: [PATCH] Update Permission --- Resource/ApiTest/Docker-Env/docker-compose.yml | 3 +++ Resource/ApiTest/Docker-Env/startup.sh | 1 + Resource/ApiTest/Docker-Env/wait.sh | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Resource/ApiTest/Docker-Env/docker-compose.yml b/Resource/ApiTest/Docker-Env/docker-compose.yml index 861862c..52d9000 100644 --- a/Resource/ApiTest/Docker-Env/docker-compose.yml +++ b/Resource/ApiTest/Docker-Env/docker-compose.yml @@ -4,6 +4,7 @@ version: '3' services: misskey: image: misskey/misskey + restart: always volumes: - ./config:/misskey/.config/ depends_on: @@ -17,6 +18,7 @@ services: postgres: image: postgres:15.2 # latest + restart: always environment: POSTGRES_PASSWORD: misskey_api_test_stub_password POSTGRES_USER: misskey @@ -26,6 +28,7 @@ services: redis: image: redis + restart: always command: redis-server --requirepass misskey_api_test_stub_password environment: - REDIS_PASSWORD=misskey_api_test_stub_password diff --git a/Resource/ApiTest/Docker-Env/startup.sh b/Resource/ApiTest/Docker-Env/startup.sh index c60deaa..d85caab 100755 --- a/Resource/ApiTest/Docker-Env/startup.sh +++ b/Resource/ApiTest/Docker-Env/startup.sh @@ -16,6 +16,7 @@ git checkout -- . echo "[+] extract payload dir from payload.tar.gz" tar -xzf payload.tar.gz +chmod -R 777 ./payload echo "[+] waiting for file system to get ready..." sleep 1 diff --git a/Resource/ApiTest/Docker-Env/wait.sh b/Resource/ApiTest/Docker-Env/wait.sh index 83ee3c9..b79ce22 100755 --- a/Resource/ApiTest/Docker-Env/wait.sh +++ b/Resource/ApiTest/Docker-Env/wait.sh @@ -18,7 +18,7 @@ while true; do echo "[i] docker container is not ready $STATUS_CODE, retry in 10s" sleep 10 COUNT=$((COUNT+1)) - if [ $COUNT -eq 3600 ]; then + if [ $COUNT -eq 360 ]; then echo "[!] docker container is not ready for too long, exit" exit 1 fi