Skip to content

Conversation

@mrnugget
Copy link
Contributor

This addresses a customer report in which src campaigns apply couldn't
be run in CI because the docker-in-docker setup prohibits mounting
/tmp into containers.

It also fixes parts of
#316, since the temporary
directory is also where the logs are stored, but we might want to split
those locations up (in case a user wants to keep logs but not inside the
temporary directory).

This addresses a customer report in which `src campaigns apply` couldn't
be run in CI because the docker-in-docker setup prohibits mounting
`/tmp` into containers.

It also fixes parts of
#316, since the temporary
directory is also where the logs are stored, but we might want to split
those locations up (in case a user wants to keep logs but not inside the
temporary directory).
@mrnugget mrnugget requested a review from a team September 14, 2020 09:20
Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool :)

Co-authored-by: Erik Seliger <erikseliger@me.com>
Copy link
Contributor

@LawnGnome LawnGnome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mrnugget mrnugget merged commit 4ea6280 into main Sep 15, 2020
@mrnugget mrnugget deleted the mrn/custom-tmp-dir branch September 15, 2020 11:29
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* Allow setting temp dir used by campaigns through flag/env var

This addresses a customer report in which `src campaigns apply` couldn't
be run in CI because the docker-in-docker setup prohibits mounting
`/tmp` into containers.

It also fixes parts of
#316, since the temporary
directory is also where the logs are stored, but we might want to split
those locations up (in case a user wants to keep logs but not inside the
temporary directory).

* Update cmd/src/campaigns_common.go

Co-authored-by: Erik Seliger <erikseliger@me.com>

* Update cmd/src/campaigns_common.go

Co-authored-by: Adam Harvey <aharvey@sourcegraph.com>

* Fall back to os.TempDir in campaignsDefaultTempDirPrefix

Co-authored-by: Erik Seliger <erikseliger@me.com>
Co-authored-by: Adam Harvey <aharvey@sourcegraph.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants