vagrant-communicator-docker 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bc5b9fed8ea0ff26112d096d95896e3ce2c3177390bb88263b3db778398debf
|
4
|
+
data.tar.gz: ea782c519f72b5fc51cb6458e38e832de6a59772208e37bd1c02e19ca16a1e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e92493ef62338a0faa7e4f01c03cb3128e1b89112f9566984e642ea828d4855d9a240e110faf6acc29fed43b4c96f6f64221bf0030ac5e3c427627d26b00ce2a
|
7
|
+
data.tar.gz: e71cd922c187d294ddc936129e5f31aef34b577826cc375523f00709da12d8797c126346312ea518d55f3bb2296b936d0cc0fcec78d861712b39504daddeda39
|
data/README.md
CHANGED
@@ -86,6 +86,24 @@ by creating a plugin or reporting a bug.
|
|
86
86
|
```
|
87
87
|
|
88
88
|
you likely need to change the shell to /bin/sh OR increase the shell_wait (default is 10)
|
89
|
+
OR the docker image in use (example: debian:bullseye) is not staying active after created.
|
90
|
+
You can force that by passing ```-t``` as a docker create arg in the vagrant setup
|
91
|
+
|
92
|
+
```
|
93
|
+
Vagrant.configure("2") do |config|
|
94
|
+
config.vm.define "test-case", primary: false do |d|
|
95
|
+
d.vm.communicator = 'docker'
|
96
|
+
d.vm.provider 'docker' do |box|
|
97
|
+
box.image = "debian:bullseye"
|
98
|
+
box.has_ssh = true
|
99
|
+
box.remains_running = true
|
100
|
+
box.create_args = ["-t"]
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
it would seem ```box.remains_running = true``` don't work on all docker images !
|
89
107
|
|
90
108
|
## shell_wait
|
91
109
|
|
@@ -68,6 +68,7 @@ module VagrantPlugins
|
|
68
68
|
# @param [String] from Path of the file on the remote machine.
|
69
69
|
# @param [String] to Path of where to save the file locally.
|
70
70
|
def download(from, to)
|
71
|
+
wait_for_ready(@machine.config.communicator.bash_wait)
|
71
72
|
@logger.debug("DOCKER COMMUNICATOR - DOWNLOAD from: #{from} to: #{to}")
|
72
73
|
tempfile = "/tmp/#{SecureRandom.urlsafe_base64}.tar"
|
73
74
|
@logger.debug("DOCKER COMMUNICATOR - tempfile - #{tempfile}")
|
@@ -91,6 +92,7 @@ module VagrantPlugins
|
|
91
92
|
# @param [String] to Path of where to save the file on the remote
|
92
93
|
# machine.
|
93
94
|
def upload(from, to)
|
95
|
+
wait_for_ready(@machine.config.communicator.bash_wait)
|
94
96
|
to_folder = File.dirname(to)
|
95
97
|
from_filename = File.basename(from)
|
96
98
|
@logger.debug("DOCKER COMMUNICATOR - upload from: #{from} to: #{to_folder} from_filename: #{from_filename}")
|