diff --git a/noxfiles/run_infrastructure.py b/noxfiles/run_infrastructure.py index 81aa99772..43d838d40 100644 --- a/noxfiles/run_infrastructure.py +++ b/noxfiles/run_infrastructure.py @@ -164,7 +164,7 @@ def _run_quickstart( """ _run_cmd_or_err('echo "Running the quickstart..."') _run_cmd_or_err(f"docker-compose {path} up -d") - _run_cmd_or_err(f"docker exec -it {service_name} python scripts/quickstart.py") + _run_cmd_or_err(f"docker-compose run {service_name} python scripts/quickstart.py") def _run_create_superuser( @@ -177,7 +177,7 @@ def _run_create_superuser( _run_cmd_or_err('echo "Running create superuser..."') _run_cmd_or_err(f"docker-compose {path} up -d") _run_cmd_or_err( - f"docker exec -it {service_name} python scripts/create_superuser.py" + f"docker-compose run {service_name} python scripts/create_superuser.py" ) @@ -191,7 +191,7 @@ def _run_create_test_data( _run_cmd_or_err('echo "Running create test data..."') _run_cmd_or_err(f"docker-compose {path} up -d") _run_cmd_or_err( - f"docker exec -it {service_name} python scripts/create_test_data.py" + f"docker-compose run {service_name} python scripts/create_test_data.py" ) diff --git a/scripts/quickstart.py b/scripts/quickstart.py index b643d517a..6f7ec110a 100644 --- a/scripts/quickstart.py +++ b/scripts/quickstart.py @@ -487,7 +487,7 @@ def print_results(request_id: str) -> None: # NOTE: In a real application, these secrets and config values would be provided # via ENV vars or similar, but we've inlined everything here for simplicity - FIDESOPS_URL = "http://0.0.0.0:8080" + FIDESOPS_URL = "http://webserver:8080" ROOT_CLIENT_ID = "fidesopsadmin" ROOT_CLIENT_SECRET = "fidesopsadminsecret"