Skip to content

Commit

Permalink
Env variable NO_WINDOWS_SERVICE to force interactive mode on Windows
Browse files Browse the repository at this point in the history
This is a copy of the main repo PR: open-telemetry/opentelemetry-collector#2272 that enables running the collector inside Windows Docker containers.

Main repo PR description:

> Adding a feature - adds a check for NO_WINDOWS_SERVICE environment variable on Windows to allow forcing interactive mode instead of running as a service.
>
> This is required for using the collector in Windows Docker containers, as at least some of the Windows base images do not support services (fails with "The service process could not connect to the service controller"). Environment variable is used instead of automatic detection of Docker as it is uncertain if images that support services are possible and/or desired.
>
>Running collector in Windows Docker containers is required to perform containerized integration tests of agents on Windows.

We want to use splunk-otel-collector in our splunk-otel-java
smoke-tests, and that includes Windows tests. This change is required
to make Windows containers work.
  • Loading branch information
Mateusz Rzeszutek committed Apr 8, 2021
1 parent 15c02c2 commit 31cb200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/docker-compose/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SPLUNK_ACCESS_TOKEN=12345
SPLUNK_ACCESS_TOKEN=jYC1_CSZJWaCO1UkHK2cZg
SPLUNK_MEMORY_TOTAL_MIB=1024
SPLUNK_REALM=us0
SPLUNK_REALM=lab0

0 comments on commit 31cb200

Please sign in to comment.