edf-hpc / clara

Cluster Administration tools
Other
18 stars 12 forks source link

Support creating images in other places than /tmp #92

Closed rezib closed 6 years ago

rezib commented 7 years ago

According to FHS, /tmp can be small. Therefore, this is not a safe place to build large diskless images.

It would be nice to add a configuration parameter to control where the image is actually build, eg. /var/tmp.

It probably depends on #91 as we do not want to change all current configurations where a default /tmp works well.

rezib commented 7 years ago

For information, this can be workaround with TMIDIR environment variable, thanks to Python tempfile module:

TMPDIR=/var/tmp clara images create <image>
mehdid commented 7 years ago

My feeling is that this bug should be closed without modifications in the code. Do you agree?