kontena-cli 0.15.2 → 0.15.3

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: 0799760c154ff891c9e67c2a893b47f47d9012c6
4
- data.tar.gz: 075dcb4a30e995da47f86153b02d54b66e6576b7
3
+ metadata.gz: 28cfbe3a8a74a0d000701c1dc05ce31009ee5a63
4
+ data.tar.gz: 3fcd35e0ddf36e71d06629ba544e2c488b8fc69a
5
5
  SHA512:
6
- metadata.gz: 943320e9d2f861ec68da9b0f4796bd268ec302bde7094ef440af6b578bc0f9b997ddf5dd913289cbe4fb40b78b049e0babdc52ec42de10cb3c64bec6543c449d
7
- data.tar.gz: 74450cc8ab63055a6bd109f967d7c730e16c437236fb1c7b43825b73ade44dcad10fcbfdc9048eaa32d4c00e8f22585ea70a0035bea79898b973b1c1c92db018
6
+ metadata.gz: 714d5237e01f2eabeab8a7a28785ef9786a6f0bfffbce412b7b809b90a4d30b9b3956463d29fafd3934bc8981efdcc182d92e7870c969803b0bd1493b1058090
7
+ data.tar.gz: e7ddf8aa0f01afa73bda8e1389b63cd26c3f3b12e32d412b8b10c0f17156a8f176b94d9f6c7514460554c2e92d4c303e009c092eb079797ba63a69e061df69fb
data/Dockerfile CHANGED
@@ -1,14 +1,16 @@
1
- FROM gliderlabs/alpine:edge
2
- MAINTAINER jari@kontena.io
3
-
4
- RUN apk update && \
5
- apk --update add ruby ruby-json ca-certificates libssl1.0 openssl libstdc++ && \
6
- gem install kontena-cli --no-rdoc --no-ri
1
+ FROM alpine:3.4
2
+ MAINTAINER Kontena, Inc. <info@kontena.io>
7
3
 
4
+ ADD https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 /usr/local/bin/docker
5
+ ARG CLI_VERSION
8
6
 
9
- RUN adduser kontena -D -h /home/kontena -s /bin/sh
10
- RUN chown -R kontena.kontena /home/kontena
11
-
7
+ RUN apk update && \
8
+ apk --update add ruby ruby-json ruby-bigdecimal \
9
+ ca-certificates libssl1.0 openssl libstdc++ && \
10
+ gem install kontena-cli --no-rdoc --no-ri -v ${CLI_VERSION} && \
11
+ adduser kontena -D -h /home/kontena -s /bin/sh && \
12
+ chown -R kontena.kontena /home/kontena && \
13
+ chmod +sx /usr/local/bin/docker
12
14
 
13
15
  VOLUME ["/home/kontena"]
14
16
  WORKDIR /home/kontena
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.15.2
1
+ 0.15.3
data/kontena-cli.gemspec CHANGED
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_runtime_dependency "ruby_dig", "~> 0.0.2"
31
31
  spec.add_runtime_dependency "dry-validation", "~> 0.8.0"
32
32
  spec.add_runtime_dependency "dry-configurable", "~> 0.1.6"
33
+ spec.add_runtime_dependency "dry-monads", "~> 0.1.1"
33
34
  end
@@ -0,0 +1,31 @@
1
+ namespace :release do
2
+ VERSION = File.read('VERSION').strip
3
+ DOCKER_NAME = 'kontena/cli'
4
+ DOCKER_VERSIONS = ['latest', VERSION.match(/(\d+\.\d+)/)[1]]
5
+
6
+ desc 'Build all'
7
+ task :build => [:build_docker] do
8
+ end
9
+
10
+ desc 'Build docker images'
11
+ task :build_docker do
12
+ sh("docker rmi #{DOCKER_NAME}:#{VERSION} || true")
13
+ sh("docker build --build-arg CLI_VERSION=#{VERSION} --no-cache --pull -t #{DOCKER_NAME}:#{VERSION} .")
14
+ DOCKER_VERSIONS.each do |v|
15
+ sh("docker rmi #{DOCKER_NAME}:#{v} || true")
16
+ sh("docker tag #{DOCKER_NAME}:#{VERSION} #{DOCKER_NAME}:#{v}")
17
+ end
18
+ end
19
+
20
+ desc 'Push all'
21
+ task :push => [:push_docker] do
22
+ end
23
+
24
+ desc 'Push docker images'
25
+ task :push_docker => :environment do
26
+ sh("docker push #{DOCKER_NAME}:#{VERSION}")
27
+ DOCKER_VERSIONS.each do |v|
28
+ sh("docker push #{DOCKER_NAME}:#{v}")
29
+ end
30
+ end
31
+ 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.15.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-13 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.1.6
153
+ - !ruby/object:Gem::Dependency
154
+ name: dry-monads
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.1.1
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.1.1
153
167
  description: Kontena command line tool
154
168
  email:
155
169
  - info@kontena.io
@@ -407,6 +421,7 @@ files:
407
421
  - spec/spec_helper.rb
408
422
  - spec/support/client_helpers.rb
409
423
  - spec/support/fixtures_helpers.rb
424
+ - tasks/release.rake
410
425
  - tasks/rspec.rake
411
426
  homepage: https://www.kontena.io
412
427
  licenses: