kontena-cli 0.8.0.1 → 0.8.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: 1bfab587091d57799af6a71901b2e06c2fdccfe2
4
- data.tar.gz: a10b356b3daa4b7f0850754e5b89739daaf4dfba
3
+ metadata.gz: 16045824a8737f120ba0e57060bc936312d24c49
4
+ data.tar.gz: 8e71615acaa226eef9abb0c4dc2248e0b707a049
5
5
  SHA512:
6
- metadata.gz: 12161c21f23669c889f91437c0b4979fb801f78ed015b8aa2b46b38d41b01782cfd7b0f4cd4548c1ecff0eb0e520dbe4230fe5269da1a5dc207ab2777674a299
7
- data.tar.gz: bbe4051f32249124285e39426fc50075acc123865ad4e886ab875f65cbf2aad4cb27524f23c9d2b50791f323486d42cdcae07cd16d702f3c782caf841159ba29
6
+ metadata.gz: c2da530ae315278855bbb2c3e95c5acb29977f2f27ecac14eb3cf7834c4d08fb31a47da836b0e7d22b451b49896c46f8a328d4b6a4931350fd668e9dddbd8232
7
+ data.tar.gz: c8cba0fcfab582c66dc604b660680a3625b939e0f55e5bdfebada0be318c26615716e917452e40fb61ff3ec28c985853f55ffa1c0af8640db198d147924270f0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0.1
1
+ 0.8.1
@@ -19,6 +19,8 @@ module Kontena::Cli::Apps
19
19
  end
20
20
 
21
21
  def prefixed_name(name)
22
+ return name if service_prefix.strip == ""
23
+
22
24
  "#{service_prefix}-#{name}"
23
25
  end
24
26
 
@@ -9,8 +9,9 @@ module Kontena::Cli::Containers
9
9
  require_api_url
10
10
  token = require_token
11
11
 
12
- payload = {cmd: ['sh', '-c', cmd]}
13
- result = client(token).post("containers/#{current_grid}/#{container_id}/exec", payload)
12
+ payload = {cmd: ['sh', '-c', cmd_list.join(' ')]}
13
+ service_name = container_id.match(/(.+)-(\d+)/)[1]
14
+ result = client(token).post("containers/#{current_grid}/#{service_name}/#{container_id}/exec", payload)
14
15
  puts result[0].join(" ") unless result[0].size == 0
15
16
  STDERR.puts result[1].join(" ") unless result[1].size == 0
16
17
  exit result[2]
@@ -102,6 +102,8 @@ class Kontena::Cli::DeployCommand < Clamp::Command
102
102
  end
103
103
 
104
104
  def prefixed_name(name)
105
+ return name if service_prefix.strip == ""
106
+
105
107
  "#{service_prefix}-#{name}"
106
108
  end
107
109
 
@@ -14,6 +14,7 @@ module Kontena::Cli::Nodes
14
14
  puts " id: #{node['id']}"
15
15
  puts " connected: #{node['connected'] ? 'yes': 'no'}"
16
16
  puts " last connect: #{node['updated_at']}"
17
+ puts " last seen: #{node['last_seen_at']}"
17
18
  puts " public ip: #{node['public_ip']}"
18
19
  puts " private ip: #{node['private_ip']}"
19
20
  puts " overlay network: 10.81.#{node['node_number']}.0/24"
@@ -10,9 +10,11 @@ module Kontena::Cli::Nodes
10
10
  require_current_grid
11
11
  token = require_token
12
12
 
13
+
14
+ node = client(token).get("grids/#{current_grid}/nodes/#{node_id}")
13
15
  data = {}
14
16
  data[:labels] = label_list if label_list
15
- client(token).put("grids/#{current_grid}/nodes/#{node_id}", data)
17
+ client.put("nodes/#{node['id']}", data, {}, {'Kontena-Grid-Token' => node['grid']['token']})
16
18
  end
17
19
  end
18
20
  end
@@ -8,27 +8,19 @@ write_files:
8
8
  KONTENA_TOKEN="<%= grid_token %>"
9
9
  KONTENA_PEER_INTERFACE=eth1
10
10
  KONTENA_VERSION=<%= version %>
11
- - path: /etc/systemd/system/docker.service.d/50-insecure-registry.conf
11
+ - path: /etc/systemd/system/docker.service.d/50-kontena.conf
12
12
  content: |
13
13
  [Service]
14
14
  Environment='DOCKER_OPTS=--insecure-registry="10.81.0.0/19" --bip="172.17.42.1/16"'
15
+ - path: /etc/resolv.conf
16
+ permissions: 0644
17
+ owner: root
18
+ content: |
19
+ nameserver 172.17.42.1
20
+ nameserver 8.8.8.8
21
+ nameserver 8.8.4.4
15
22
  coreos:
16
23
  units:
17
- - name: 00-eth.network
18
- runtime: true
19
- content: |
20
- [Match]
21
- Name=eth*
22
- [Network]
23
- DHCP=yes
24
- DNS=172.17.42.1
25
- DNS=173.245.58.51
26
- DNS=173.245.59.41
27
- DNS=8.8.8.8
28
- DOMAINS=kontena.local
29
- [DHCP]
30
- UseDNS=false
31
-
32
24
  - name: 10-weave.network
33
25
  runtime: false
34
26
  content: |
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.8.0.1
4
+ version: 0.8.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-08-31 00:00:00.000000000 Z
11
+ date: 2015-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler