Skip to content

Setting --cli-artifacts-dir does not appear to be respected #2212

Closed

Description

@hfinucane

Bug Report

Howdy, in an attempt to keep things out of /tmp, I tried adding --cli-artifacts-dir /var/local/lib/concourse/ as an argument to my binary Concourse deployment, but it seems to still be reading from /tmp/cli-artifacts anyway. I'm still on Concourse 3.9.1, but I don't think this bit of code changes much. I tried manually placing the fly binaries in /var/local/lib/concourse/ and /var/local/lib/concourse/cli-artifacts, in case this flag also disabled the directory creation, but no luck.

Activity

  1. shashwathi commented on May 15, 2018

    @shashwathi
    Contributor

    @hfinucane

    --cli-artifacts-dir is meant for use cases where atc binary is used by itself and cli binary is packaged in different location(like bosh deployments). In case of concourse binary cli is packaged and user is not expected to set this flag.

    Is your intention not to use /tmp/ dir ?

  2. hfinucane commented on May 15, 2018

    @hfinucane
    Author

    Yeah, I'm trying to avoid tmpwatch, systemd-tmpfiles-clean, etc.

  3. shashwathi commented on May 16, 2018

    @shashwathi
    Contributor

    @hfinucane :

    Path of tmp directory can be changed by setting environment variable TMPDIR. Golang should recognize this and create any further tmp dir under that path

    Ref docs:
    https://golang.org/src/os/file.go?s=9724:9745#L304
    https://golang.org/pkg/os/#TempDir

  4. jama22 commented on May 23, 2018

    @jama22

    @hfinucane looks like @shashwathi was able to help you out. Closing this issue, feel free to reopen if you feel like we've missed something

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