fix: update docker compose file path retrieval to use get_path function

This commit is contained in:
patilk 2024-11-16 00:05:50 +01:00
parent 8ca8225122
commit 3dd2d168b2
Signed by: s500042
GPG Key ID: 1921AD722E7392EE

View File

@ -1,11 +1,12 @@
import subprocess import subprocess
import os import os
from run_command import run_command from run_command import run_command
from get_path import get_path
def main(): def main():
docker_compose_file = os.getenv( docker_compose_file = os.getenv(
"DOCKER_COMPOSE_FILE", "$WEBSCRAPER/app/docker-compose.yaml" "DOCKER_COMPOSE_FILE", f"{get_path}/app/docker-compose.yaml"
) )
service_name = os.getenv("SERVICE_NAME", "webscraper") service_name = os.getenv("SERVICE_NAME", "webscraper")
script_name = os.getenv("SCRIPT_NAME", "main.py") script_name = os.getenv("SCRIPT_NAME", "main.py")