-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-container-discovery.gemspec
58 lines (47 loc) · 2.19 KB
/
docker-container-discovery.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# frozen_string_literal: true
lib = File.join(__dir__, 'lib')
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'docker/container_discovery/version'
Gem::Specification.new do |spec|
spec.name = 'docker-container-discovery'
spec.version = Docker::ContainerDiscovery::VERSION
spec.licenses = ['MIT']
spec.authors = ['Gordon Bleux']
spec.email = ['UiP9AV6Y+dockercontainerdiscovery@protonmail.com']
spec.summary = 'Service discovery for docker containers'
spec.description = <<-DESC
DNS server which provides address resolution for docker containers based
on their metadata.
DESC
spec.homepage = 'https://github.com/uip9av6y/docker-container-discovery'
if spec.respond_to?(:metadata)
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = "#{spec.homepage}.git"
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
end
spec.bindir = 'bin'
spec.require_paths = ['lib']
Dir.chdir(__dir__) do
all_dirs = spec.require_paths + [spec.bindir]
all_files = Dir.glob("{#{all_dirs.join(',')}}/**/*")
test_files = Dir.glob('{spec}/**/*')
all_files += %w[LICENSE.txt README.md]
all_files += [File.basename(__FILE__)]
spec.files = all_files
spec.test_files = test_files
spec.executables = all_files.grep(%r{^bin/}) { |f| File.basename(f) }
end
spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '~> 2.7'
spec.add_development_dependency('bundler', '~> 2.1')
spec.add_development_dependency('rake', '~> 13.0')
spec.add_development_dependency('rspec', '~> 3.9')
spec.add_development_dependency('rubocop', '~> 0.91')
spec.add_runtime_dependency('async', '~> 1.26', '>= 1.26.2')
spec.add_runtime_dependency('async-dns', '~> 1.2', '>= 1.2.5')
spec.add_runtime_dependency('async-http', '~> 0.52', '>= 0.52.5')
spec.add_runtime_dependency('console', '~> 1.9', '>= 1.9.0')
spec.add_runtime_dependency('docker-api', '~> 2.0', '>= 2.0.0')
spec.add_runtime_dependency('prometheus-client', '~> 2.1', '>= 2.1.0')
spec.add_runtime_dependency('protocol-http', '~> 0.20', '>= 0.20.1')
end