Skip to content

Use PACKER_CACHE_DIR environment variable if set #99

@Wenzel

Description

@Wenzel

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.

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