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

python wrapper for packer binary #21

Closed
mayn opened this issue Oct 6, 2017 · 4 comments
Closed

python wrapper for packer binary #21

mayn opened this issue Oct 6, 2017 · 4 comments

Comments

@mayn
Copy link
Owner

mayn commented Oct 6, 2017

packerlicious is limited to generating json template. This is good.
It would be better if this could be feed directly to the packer binary for processing.

challenge:
create packer.py that can be fed a packerlicious template for things like

  • template validation
  • template execution

basically a python interface to these commands https://www.packer.io/docs/commands/index.html

should:

  • check if the binary is available, fail with an error saying that it was not found otherwise
  • capture output from command and make available in a pythonic format

may:

  • work when ran on linux + windows (
@Hrily
Copy link

Hrily commented Oct 7, 2017

I would like to take this up.
Any suggestions on how to start...

@mayn
Copy link
Owner Author

mayn commented Oct 7, 2017

hi @Hrily , thanks for your interest.
I updated the requirements a bit to give you a high level idea of what to do.

in its simplest form:

  • check for packer library
  • call packer library
  • capture response of library and return to the caller

hopefully this helps, if not lets continue the discussion.

looking forward to your PR!

@Hrily
Copy link

Hrily commented Oct 8, 2017

Yeah
I got the idea, will start working on it...

Do you have any test cases that I should/must pass, for checking correctness?

@mayn
Copy link
Owner Author

mayn commented Mar 25, 2018

Thanks @Hrily.
Ended up Doing alternate implementation as separate repository https://github.com/mayn/packer.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants