lib/lux/docker_tasks.rb in lux-1.0.2 vs lib/lux/docker_tasks.rb in lux-1.0.3

- old
+ new

@@ -1,8 +1,14 @@ # Extend rake with file-like Docker tasks # -require 'rake' require 'docker' +require 'rake' +require 'socket' + +# Set this to avoid 5 sec timeouts with .local addresses +# which don't resolve in IPv6 +# +Docker.options = { family: Socket::Constants::AF_INET } module Rake module DSL def dockerimage(*args, &block) Lux::DockerImageTask.define_task(*args, &block)