kontena-cli 0.10.0 → 0.10.1

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
  SHA1:
3
- metadata.gz: 70b337e81cf3345b89451a5c86ac5fdd5de1389d
4
- data.tar.gz: a18d8b80661384607d290267e5729a473c816a07
3
+ metadata.gz: a8f5bc539e826b11f55d55afbe568130310943a5
4
+ data.tar.gz: 2deb53aab67826428fdf4ebf665000f40c28952f
5
5
  SHA512:
6
- metadata.gz: b9cc3f93437193fee63ae85aefbd44270044ebb70825a0eb1c7ca0c29c92f62589264b5f46ada6855f2b1116b508798a5b835964d02f481d9096ed2738674934
7
- data.tar.gz: c151d8c9756635dcd2ed09e02365441ef78ef96b175c43b7cd8002bdcb16c38f5197a0e40c6fd7f33b5ca934ca84e7a44407e23b8400cba4b65419d95996efec
6
+ metadata.gz: 65fac439ad52f5b1622fff0e4f501c47d2b94959754dbf9a672b1dd07ed470acde8f01090cec5c6d1476090c64d98fa5335f6a63ffa2b70fc3e7630003e24cc3
7
+ data.tar.gz: 4d4ba8b1ef68e5134e56311d40d74240d4f3c8bf37f368d3f0e0813b9a4c332387d8ca33339096855aed4e8e8c6cccd59a8b392a385b2962837ffb0207c288ce
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.0
1
+ 0.10.1
@@ -38,10 +38,7 @@ module Kontena::Cli::Apps
38
38
 
39
39
  def deploy_services(queue)
40
40
  queue.each do |service|
41
- name = service['id'].split('/').last
42
- short_name = name.sub("#{service_prefix}-", "")
43
- puts "deploying #{short_name.colorize(:cyan)}"
44
- deploy_service(token, name, {})
41
+ deploy_service(token, service['id'].split('/').last, {})
45
42
  end
46
43
  end
47
44
 
@@ -5,7 +5,7 @@ module Kontena::Cli::ExternalRegistries
5
5
  def execute
6
6
  require 'highline/import'
7
7
 
8
- default_url = 'https://index.docker.io/v1/'
8
+ default_url = 'https://index.docker.io/v2/'
9
9
  require_api_url
10
10
  require_current_grid
11
11
  token = require_token
@@ -72,13 +72,10 @@ module Kontena::Cli::Registry
72
72
  affinity: ["node==#{node['name']}"]
73
73
  }
74
74
  client(token).post("grids/#{current_grid}/services", data)
75
- result = client(token).post("services/#{current_grid}/registry/deploy", {})
76
- print 'deploying registry service '
77
- until client(token).get("services/#{current_grid}/registry")['state'] != 'deploying' do
78
- print '.'
79
- sleep 1
75
+ client(token).post("services/#{current_grid}/registry/deploy", {})
76
+ ShellSpinner "Deploying registry service " do
77
+ sleep 1 until client(token).get("services/#{current_grid}/registry")['state'] != 'deploying'
80
78
  end
81
- puts ' done'
82
79
  puts "Docker Registry 2.1 is now running at registry.kontena.local."
83
80
  puts "Note: OpenVPN connection is needed to establish connection to this registry. See 'kontena vpn' for details."
84
81
  puts 'Note 2: you must set "--insecure-registry 10.81.0.0/19" to your client docker daemon before you are able to push to this registry.'
@@ -39,13 +39,10 @@ module Kontena::Cli::Vpn
39
39
  affinity: ["node==#{node['name']}"]
40
40
  }
41
41
  client(token).post("grids/#{current_grid}/services", data)
42
- result = client(token).post("services/#{current_grid}/vpn/deploy", {})
43
- print 'deploying '
44
- until client(token).get("services/#{current_grid}/vpn")['state'] != 'deploying' do
45
- print '.'
46
- sleep 1
42
+ client(token).post("services/#{current_grid}/vpn/deploy", {})
43
+ ShellSpinner "Deploying vpn service " do
44
+ sleep 1 until client(token).get("services/#{current_grid}/vpn")['state'] != 'deploying'
47
45
  end
48
- puts ' done'
49
46
  puts "OpenVPN service is now started (udp://#{vpn_ip}:1194)."
50
47
  puts "Use 'kontena vpn config' to fetch OpenVPN client config to your machine (it takes a while until config is ready)."
51
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler