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 +4 -4
- data/VERSION +1 -1
- data/lib/kontena/cli/apps/common.rb +2 -0
- data/lib/kontena/cli/containers/exec_command.rb +3 -2
- data/lib/kontena/cli/deploy_command.rb +2 -0
- data/lib/kontena/cli/nodes/show_command.rb +1 -0
- data/lib/kontena/cli/nodes/update_command.rb +3 -1
- data/lib/kontena/machine/digital_ocean/cloudinit.yml +8 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16045824a8737f120ba0e57060bc936312d24c49
|
4
|
+
data.tar.gz: 8e71615acaa226eef9abb0c4dc2248e0b707a049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2da530ae315278855bbb2c3e95c5acb29977f2f27ecac14eb3cf7834c4d08fb31a47da836b0e7d22b451b49896c46f8a328d4b6a4931350fd668e9dddbd8232
|
7
|
+
data.tar.gz: c8cba0fcfab582c66dc604b660680a3625b939e0f55e5bdfebada0be318c26615716e917452e40fb61ff3ec28c985853f55ffa1c0af8640db198d147924270f0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.1
|
@@ -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',
|
13
|
-
|
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]
|
@@ -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
|
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-
|
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.
|
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-
|
11
|
+
date: 2015-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|