vagrant-communicator-docker 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7ef642fbce92f0ce6e2225ecac4660e3f906551d63b0021446dbdb596e8c840
4
- data.tar.gz: 26a7589ad4ef448834bd3628e80b8c4dbca7abf4579ac8b7337bf00619e37248
3
+ metadata.gz: 1bc5b9fed8ea0ff26112d096d95896e3ce2c3177390bb88263b3db778398debf
4
+ data.tar.gz: ea782c519f72b5fc51cb6458e38e832de6a59772208e37bd1c02e19ca16a1e01
5
5
  SHA512:
6
- metadata.gz: 311e39e32e0ff405e5647c5512cd89b594df6121b3b52e8731e57fce4beb6f0bfa9699a0de14e5d91c4d3f572c5d9de3cd0832987ed7e0372d5aeffe9a1abd2d
7
- data.tar.gz: 28a962afb2eeabe69a495e7c958e474cbd7f46e98831d08b0760f1450b08eae912ccbf7d4d9edc6412dbe171228fdc0faf8657c4232df6057cdae02bf5499210
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}")
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VagrantCommunicatorDocker
3
- VERSION = '1.0.11'
3
+ VERSION = '1.0.12'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-communicator-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas van Staden