diff --git a/SprintLib/testers/BaseTester.py b/SprintLib/testers/BaseTester.py index e038e5f..05a7014 100644 --- a/SprintLib/testers/BaseTester.py +++ b/SprintLib/testers/BaseTester.py @@ -100,7 +100,7 @@ class BaseTester: def execute(self): self.solution.result = CONSTS["testing_status"] self.solution.save() - with TemporaryDirectory() as self.path: + with TemporaryDirectory(dir='/tmp') as self.path: for file in SolutionFile.objects.filter(solution=self.solution): dirs = file.path.split("/") for i in range(len(dirs) - 1): diff --git a/docker-compose-deploy.yaml b/docker-compose-deploy.yaml index 4e2957b..2b1a34d 100644 --- a/docker-compose-deploy.yaml +++ b/docker-compose-deploy.yaml @@ -28,7 +28,6 @@ services: POSTGRES_DB: sprint volumes: - /sprint-data/postgres-data:/var/lib/postgresql/data -# - ./pg_hba.conf:/var/lib/postgresql/data/pg_hba.conf networks: - net deploy: @@ -225,7 +224,7 @@ services: DEBUG: $DEBUG TELEGRAM_TOKEN: $TELEGRAM_TOKEN volumes: - - /var/folders:/var/folders + - /tmp:/tmp - /var/run/docker.sock:/var/run/docker.sock deploy: mode: replicated