Use a variable for the trace URL
We have to use the double dollar sign ($$) since docker-compose
interprets variables with a single dollar sign as environment variables.
@@ -14,11 +14,12 @@ services:
command:
- |
pulumi login --local
+ export TRACING_BACKEND_URL="http://host.docker.internal:9411/api/v1/spans"
(
cd grapl
pulumi stack init local-grapl --non-interactive
- pulumi up --yes --skip-preview --stack=local-grapl --tracing http://host.docker.internal:9411/api/v1/spans
+ pulumi up --yes --skip-preview --stack=local-grapl --tracing $$TRACING_BACKEND_URL
)
# Theoretically, we could skip uploading these job definitions for
@@ -31,7 +32,7 @@ services:
# Ideally this stack name would be scoped by organization, but
# login --local doesn't support organizations
pulumi stack init local-grapl-integration-tests --non-interactive
- pulumi up --yes --skip-preview --stack=local-grapl-integration-tests --tracing http://host.docker.internal:9411/api/v1/spans
+ pulumi up --yes --skip-preview --stack=local-grapl-integration-tests --tracing $$TRACING_BACKEND_URL
)
volumes:
