Michael Juliano
c8db128dc5
Modified func Upload to use docker cp
2017-08-24 13:29:37 -07:00
Megan Marsh
ef858857e4
fix bug introduced by 5221
2017-08-14 14:07:21 -07:00
Megan Marsh
199b9062b0
fix file copy script to prevent error when encountering empty directory
2017-08-09 15:19:17 -07:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
a51f492558
communicator/docker: preserve file mode.
2017-01-23 13:47:22 -08:00
Rickard von Essen
476d981211
Merge pull request #3800 from benwtr/issue-3142-match-dotfiles-docker-communicator
...
Fix file provisioner dotfile matching w/ docker builder
2016-09-20 12:25:37 +02:00
Ben P
8ecbbe9037
backticks instead of $() for csh compatibility
2016-08-11 11:27:56 -07:00
Ben P
0d7937fce1
[docker] ls -A instead of * glob for copying paths
2016-08-11 18:03:48 +00:00
Billie H. Cleek
165ec694ab
fix docker builder with ansible provisioner
...
Refactor the docker builder so that it does not expect output from the
container to be strictly line oriented or even text, because SFTP, used by
Ansible, is a binary protocol. Since `docker exec` was introduced in 2014,
remove support for older versions of docker that required using `docker
attach`. The old notes in the docker builder referring to specific issues have
all been resolved or else closed because they could not be reproduced.
2016-04-27 13:54:40 -07:00
Vasiliy Tolstov
feee19e4ed
file provisioner improvements
...
* allow specify source/destination as dir
* allow specify many files as source
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-12 11:48:28 -08:00
Chris Bednarski
5ad4b0e97e
Added tests and handle the tar format from docker cp -
2015-08-12 12:16:26 -07:00
Chris Bednarski
3523ffdce1
Farewell extra line. You were pretty but out of place.
2015-08-12 11:36:10 -07:00
Chris Bednarski
047382eec9
Style tweak
2015-08-11 22:30:19 -07:00
Chris Bednarski
dc3c55cf8e
Implemented downloader for the docker communicator so we can pull files out of a container
2015-08-11 22:22:52 -07:00
Chris Bednarski
715662f60b
Reformat
2015-07-27 16:42:06 -07:00
georgevicbell
b2811a8252
Update communicator.go
2015-07-16 21:51:13 -04:00
georgevicbell
d00271aab3
Fix Capitilzation
2015-07-16 21:50:24 -04:00
georgevicbell
4da4150abe
Update communicator.go
2015-07-16 21:37:08 -04:00
georgevicbell
e3ab74e09f
Add Config struct for docker PTY
2015-07-16 21:06:03 -04:00
Mitchell Hashimoto
31ac2652d6
bulder/docker: canExec as sep function
2015-05-29 11:08:41 -07:00
Mitchell Hashimoto
6570b53c4a
builder/docker: use exec for v1.4+
2015-05-29 09:29:59 -07:00
Donald Guy
a7206aebd7
builder/docker: attempt to satisfy travis for #1993
2015-03-20 12:50:03 -04:00
Donald Guy
df7623d9d8
builder/docker: Run scripts /w `exec` if -v > 1.4
2015-03-20 12:07:43 -04:00
Godefroid Chapelle
f52283d78e
all calls to cp should be escaped
2014-12-22 12:58:41 +01:00
Godefroid Chapelle
955122f2e1
Be more explicit about escaping alias
2014-12-02 15:07:29 +01:00
Godefroid Chapelle
075abfeeae
Escapes cp alias
...
Fix for #1656
2014-12-02 14:58:13 +01:00
Israel Shirk
d4080244b0
Resolves issue where docker communicator mishandled symlinks by treating them as files
2014-11-12 14:22:48 -07:00
Mitchell Hashimoto
75395af12d
Merge branch '1064-fix-upload-file-permissions' of github.com:rasa/packer into rasa-1064-fix-upload-file-permissions
...
Conflicts:
builder/parallels/common/step_upload_parallels_tools.go
builder/vmware/common/step_upload_tools.go
provisioner/chef-client/provisioner.go
provisioner/chef-solo/provisioner.go
2014-09-08 13:20:46 -07:00
Mitchell Hashimoto
b267c3eb4a
builder/docker: wait for tail to end when running remote command
2014-09-04 17:24:09 -07:00
Mitchell Hashimoto
c139aa3b71
builder/docker: style
2014-09-04 17:07:21 -07:00
Ross Smith II
d92179847d
provisioner/file: set file/directory permissions
...
fixes #1064
2014-05-09 21:03:35 -07:00
Mitchell Hashimoto
7bcfd83bdd
builder/docker: stream output from commands
2013-11-09 19:06:03 -08:00
Mitchell Hashimoto
2b89da50b3
builder/docker: UploadDir
2013-11-09 18:44:43 -08:00
Mitchell Hashimoto
23ad5442ec
builder/docker: perform cleanup in run method, not prematurely
2013-11-09 10:15:25 -08:00
Mitchell Hashimoto
44a41451f0
builder/docker: Communicator.Start doesn't block
2013-11-09 10:13:27 -08:00
Mitchell Hashimoto
d27ceaf509
builder/docker: remove the exit code file when we're done
2013-11-09 00:47:37 -08:00
Mitchell Hashimoto
2e7574e360
builder/docker: command output and exit codes work
...
/cc @mwhooker - CCing you on this because it is also ridiculous. See the
big comments
2013-11-09 00:33:36 -08:00
Mitchell Hashimoto
eabd32f3ce
builder/docker: comment the sleep on remote exec
2013-11-09 00:06:45 -08:00
Mitchell Hashimoto
c1f0fe3f3f
builder/docker: fix upload for copy to work
2013-11-09 00:05:44 -08:00
Mitchell Hashimoto
5f76ed68c4
builder/docker: Remote execution works!
...
/cc @mwhooker - WOW. By luck, I had a hunch that maybe something like
this might be going on based on straces I was reading. Check:
https://github.com/dotcloud/docker/issues/2628
Anyways, this works now. No more blocker!
2013-11-08 23:59:25 -08:00
Mitchell Hashimoto
797c44bfc1
builder/docker: a non-working communicator
2013-11-08 23:43:41 -08:00