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
1578f961
Commit
1578f961
authored
Mar 23, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instructions for working on Packer
parent
1748ca31
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
Makefile
Makefile
+5
-0
README.md
README.md
+10
-0
setup.sh
setup.sh
+11
-0
No files found.
Makefile
0 → 100644
View file @
1578f961
all
:
@
mkdir
-p
bin/
go build
-o
bin/packer packer/bin-packer
.PHONY
:
all
README.md
View file @
1578f961
...
...
@@ -7,4 +7,14 @@ machine images to launch into any environment, such as VirtualBox, VMware,
Amazon EC2, etc. Because this build process is automated, you can develop in
VirtualBox, then deploy to EC2 with an identical image.
## Developing Packer
If you wish to work on Packer itself, you'll first need
[
Go
](
http://golang.org
)
installed. Next, clone this repository and source "setup.sh" in your shell. This
will set up the environmental variables properly to work on Packer. After
that, just run
`make`
. Commands:
```
$ source setup.sh
$ make
```
setup.sh
0 → 100755
View file @
1578f961
#!/usr/bin/env bash
# Get the full path to the directory where this script is, because
# GOPATH prefers full paths.
SOURCE
=
"
${
BASH_SOURCE
[0]
}
"
while
[
-h
"
$SOURCE
"
]
;
do
SOURCE
=
"
$(
readlink
"
$SOURCE
"
)
"
;
done
DIR
=
"
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
"
&&
pwd
)
"
# Setup our GOPATH
echo
"Setting GOPATH to:
${
DIR
}
"
export
GOPATH
=
"
${
DIR
}
"
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