Megan Marsh
57dd1c3ca2
Merge pull request #6543 from thedrow/lxc-root-path
...
Determine lxc root according to the running user
2018-08-06 11:34:01 -07:00
Omer Katz
26dd6441e0
Locate lxc root directory when exporting as well.
2018-07-29 16:14:17 +03:00
Omer Katz
808df82eea
Remove privilege escalation with sudo when copying files. Preserve file permission mapping when copying files.
2018-07-29 16:03:01 +03:00
Omer Katz
e5b740e223
Determine lxc root according to the running user.
2018-07-29 13:16:41 +03:00
Chris Lundquist
c925a02f82
don't chown to close the security issue
2018-05-16 21:40:22 +00:00
Matthew Hooker
ff64ccda55
Merge pull request #5426 from hashicorp/fix_4915
...
Fix 4915
2018-02-05 14:54:27 -08:00
Matthew Hooker
7a189a83a1
fix imports
...
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
a831d522be
change run signatures
...
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.
`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
366dc3da0a
move multistep imports to helper.
...
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker
ebe995c0ff
run goimports
2018-01-22 17:21:10 -08:00
Matt Schreiber
1f2135f65e
Add options to LXC builder for influencing for how containers are built and started
...
via
- create_options: a list of options passed to lxc-create
- start_options: a list of options passed to lxc-start
- attach_options: a list of options passed to lxc-attach
Also extended existing LXC builder BATS tests to exercise the new builder
options, and added website docs.
2017-10-30 21:48:43 -04:00
Megan Marsh
e8cabc1e83
implemented for LXD
2017-10-04 15:23:36 -07:00
Megan Marsh
93bddb3e65
implement directory fix for lxc file uploads
2017-10-04 13:35:15 -07:00
Megan Marsh
8d24b3930a
cleanup imports and rebase artifacts
2017-09-05 15:23:22 -07:00
Chris Lundquist
cd2a783382
[lxc] update to new conventions, improve docs
2017-09-05 15:19:25 -07:00
Chris Lundquist
5eb1bc9338
[lxc] go fmt our files
2017-09-05 15:18:07 -07:00
Chris Lundquist
9b4a7e935f
[lxc] add basic tests
2017-09-05 15:18:07 -07:00
Chris Lundquist
2d19b4f2d2
Revert "[lxc] only build for linux. Ignore vim swp files."
...
This reverts commit 60409dc678273864dbb29f624a669d00b4cc0134.
2017-09-05 15:17:15 -07:00
Chris Lundquist
8b4e94d9c6
[lxc] remove commented code
2017-09-05 15:17:15 -07:00
Chris Lundquist
e23920a6b9
[lxc] only build for linux. Ignore vim swp files.
2017-09-05 15:17:15 -07:00
Chris Lundquist
15c18c83a9
[lxc] default to target runlevel 3
2017-09-05 15:17:15 -07:00
Chris Lundquist
ddbb584235
[lxc] Ubuntu likes runlevel 5
2017-09-05 15:17:15 -07:00
Chris Lundquist
341ebdd7e8
[lxc] implement interface, add validation
2017-09-05 15:17:15 -07:00
Michele Catalano
659a0da594
Add lxc builder to packer
2017-09-05 15:15:28 -07:00