This commit is contained in:
Egor Matveev 2022-05-03 12:21:03 +03:00
parent 6afc6a3a2c
commit 7028ac37b6
2 changed files with 2 additions and 3 deletions

View File

@ -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):

View File

@ -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