Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
192253c8
Commit
192253c8
authored
Jun 20, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: plugin dev tips headers
parent
189916d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
website/source/docs/extend/developing-plugins.html.markdown
website/source/docs/extend/developing-plugins.html.markdown
+9
-3
No files found.
website/source/docs/extend/developing-plugins.html.markdown
View file @
192253c8
...
...
@@ -120,13 +120,17 @@ be in order for the logs to be helpful.
Here are some tips for developing plugins, often answering common questions
or concerns.
First, it is standard practice to name the resulting plugin application
### Naming Conventions
It is standard practice to name the resulting plugin application
in the format of
`packer-TYPE-NAME`
. For example, if you're building a
new builder for CustomCloud, it would be standard practice to name the
resulting plugin
`packer-builder-custom-cloud`
. This naming convention
helps users identify the purpose of a plugin.
Next, while developing plugins, you can configure your Packer configuration
### Testing Plugins
While developing plugins, you can configure your Packer configuration
to point directly to the compiled plugin in order to test it. For example,
building the CustomCloud plugin, I may configure packer like so:
...
...
@@ -142,7 +146,9 @@ This would configure Packer to have the "custom-cloud" plugin, and execute
the binary that I am building during development. This is extremely useful
during development.
Additionally, it is recommended you use a tool like
[
goxc
](
https://github.com/laher/goxc
)
### Distributing Plugins
It is recommended you use a tool like
[
goxc
](
https://github.com/laher/goxc
)
in order to cross-compile your plugin for every platform that Packer supports,
since Go applications are platform-specific. goxc will allow you to build
for every platform from your own computer.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment