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

Building boxes results in files with unhelpful names #433

Closed
davidjb opened this issue Sep 4, 2015 · 2 comments
Closed

Building boxes results in files with unhelpful names #433

davidjb opened this issue Sep 4, 2015 · 2 comments
Assignees

Comments

@davidjb
Copy link
Contributor

davidjb commented Sep 4, 2015

I'm using the latest version of Bento from git and finding that if I build a box like so, following the instructions:

packer build -only=virtualbox-iso -var 'mirror=...' centos-7.1-x86_64.json

the result is that the box is named builds/__unset_box_basename__.virtualbox.box. This isn't very helpful, especially when I was building two boxes from different OSes at the same time.

I note that the string __unset_box_basename__ is hard-coded into most, but not all, provided JSON files in Bento and that the comment at #430 (comment) mentions how to configure the box basename.

If that comment is the prescribed the way to avoid the above problem, then may I suggest documenting this process in the README? Otherwise, can a more useful name be set in each JSON file?

@davidjb davidjb changed the title Building boxes results in boxes with unhelpful names Building boxes results in files with unhelpful names Sep 4, 2015
@cheeseplus
Copy link
Contributor

Yes to both questions - PR #434 is addressing the first part and I'm planning on reverting to friendlier and more generally useful names.

That was initially something that was done to serve our needs for the bin/bento tool but has proven a bit more confusing than helpful.

@grtjn
Copy link

grtjn commented Sep 4, 2015

You might find these comments useful too: https://github.com/grtjn/centos-packer-templates#building-yourself

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

4 participants