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 +4 -4
- data/Dockerfile +11 -9
- data/VERSION +1 -1
- data/kontena-cli.gemspec +1 -0
- data/tasks/release.rake +31 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28cfbe3a8a74a0d000701c1dc05ce31009ee5a63
|
4
|
+
data.tar.gz: 3fcd35e0ddf36e71d06629ba544e2c488b8fc69a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 714d5237e01f2eabeab8a7a28785ef9786a6f0bfffbce412b7b809b90a4d30b9b3956463d29fafd3934bc8981efdcc182d92e7870c969803b0bd1493b1058090
|
7
|
+
data.tar.gz: e7ddf8aa0f01afa73bda8e1389b63cd26c3f3b12e32d412b8b10c0f17156a8f176b94d9f6c7514460554c2e92d4c303e009c092eb079797ba63a69e061df69fb
|
data/Dockerfile
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
FROM
|
2
|
-
MAINTAINER
|
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
|
10
|
-
|
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.
|
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
|
data/tasks/release.rake
ADDED
@@ -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.
|
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-
|
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:
|