Skip to content

$TERM not set #94

Closed
Closed

Description

@mbhave

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.

Activity

  1. concourse-bot commented on Aug 3, 2015

    @concourse-bot

    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.

  2. xoebus commented on Aug 3, 2015

    @xoebus
    Contributor

    @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?

  3. julz commented on Aug 3, 2015

    @julz

    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?

  4. xoebus commented on Aug 3, 2015

    @xoebus
    Contributor

    @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.

  5. julz commented on Aug 3, 2015

    @julz

    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

  6. xoebus commented on Aug 3, 2015

    @xoebus
    Contributor

    @julz Ok, makes sense - thanks!

    @goonzoid Sound good to you?

  7. goonzoid commented on Aug 4, 2015

    @goonzoid

    Yeah, I agree with @julz here.

  8. xoebus commented on Aug 4, 2015

    @xoebus
    Contributor

    @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.

  9. mbhave commented on Aug 4, 2015

    @mbhave
    Author

    ok we'll do that. thanks everyone!

  10. added a commit that references this issue on Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions