You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running our tests on the concourse pipeline using ./gradlew run. This seems to work fine on our docker image locally and also on gocd, where we do a docker run. It fails on our concourse pipeline with Could not open terminal for stdout: $TERM not set.
@mbhave Thanks for reporting this! The current workaround is to set TERM yourself in your script before you run ./gradlew. See here for an example. We'll see what the best course of action is here to match the Docker behavior.
@goonzoid@julz It looks like Docker sets the TERM environment variable when you execute docker run -t .... How do you think this should be reflected in Garden?
At first pass this seems like something the client needs to tell us: why not pass TERM as an env var in the process spec? Our general policy has been (with some historic exceptions) that garden should be unopinionated and defer to clients about things like this. We spin up a container exactly how you ask, you tell us if you want to add TERM etc. Does setting the env var on the spec work for this use case?
@julz Yep, that works. It's more of a question of whether or not we should match Docker semantics _magically_ than how we'd accomplish the same thing in Garden.
Yeah magic is what I'd like to avoid. Better to let the client decide explicitly when we can, I think. Garden is more like runC (soon, even more so ;) than docker.
@mbhave Looks like that workaround above is the recommended way to actually do this. We're slightly different from Docker in this respect. I'm going to close this for now but please feel free to re-open if something comes up.
Activity
concourse-bot commentedon Aug 3, 2015
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
xoebus commentedon Aug 3, 2015
@mbhave Thanks for reporting this! The current workaround is to set
TERMyourself in your script before you run./gradlew. See here for an example. We'll see what the best course of action is here to match the Docker behavior.@goonzoid @julz It looks like Docker sets the
TERMenvironment variable when you executedocker run -t .... How do you think this should be reflected in Garden?julz commentedon Aug 3, 2015
At first pass this seems like something the client needs to tell us: why not pass TERM as an env var in the process spec? Our general policy has been (with some historic exceptions) that garden should be unopinionated and defer to clients about things like this. We spin up a container exactly how you ask, you tell us if you want to add TERM etc. Does setting the env var on the spec work for this use case?
xoebus commentedon Aug 3, 2015
@julz Yep, that works. It's more of a question of whether or not we should match Docker semantics
_magically_than how we'd accomplish the same thing in Garden.julz commentedon Aug 3, 2015
Yeah magic is what I'd like to avoid. Better to let the client decide explicitly when we can, I think. Garden is more like runC (soon, even more so ;) than docker.
Sent from my iPhone
xoebus commentedon Aug 3, 2015
@julz Ok, makes sense - thanks!
@goonzoid Sound good to you?
goonzoid commentedon Aug 4, 2015
Yeah, I agree with @julz here.
xoebus commentedon Aug 4, 2015
@goonzoid Ok, thanks.
@mbhave Looks like that workaround above is the recommended way to actually do this. We're slightly different from Docker in this respect. I'm going to close this for now but please feel free to re-open if something comes up.
mbhave commentedon Aug 4, 2015
ok we'll do that. thanks everyone!
bump fly yaml.v2