Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PACKER_CACHE_DIR environment variable if set #99

Closed
Wenzel opened this issue Aug 1, 2018 · 1 comment
Closed

Use PACKER_CACHE_DIR environment variable if set #99

Wenzel opened this issue Aug 1, 2018 · 1 comment

Comments

@Wenzel
Copy link
Contributor

Wenzel commented Aug 1, 2018

Hi,

I'm using Packer in multiple projects on my computer, and malboxes is one of them.
As such, i have a shared ~/packer_cache directory, where all my MSDN ISOs are stored.

I'm always using packer like this

export PACKER_CACHE_DIR=/home/tarrma/.packer_cache
packer build template.json

in Malboxes you are already overriding this variable by DIRS.user_cache_dir
https://github.com/GoSecure/malboxes/blob/master/malboxes/malboxes.py#L326

Could you modify that behavior so that the PACKER_CACHE_DIR environment variable is checked first, and then defaulting to DIRS.user_cache_dir ?

Thanks.

@obilodeau
Copy link
Member

Fixed by merging #100.

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

No branches or pull requests

2 participants