minos 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +35 -0
- data/LICENSE.txt +21 -0
- data/README.md +157 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/minos +5 -0
- data/lib/minos/artifact.rb +95 -0
- data/lib/minos/cli.rb +22 -0
- data/lib/minos/docker.rb +41 -0
- data/lib/minos/k8s.rb +8 -0
- data/lib/minos/version.rb +3 -0
- data/lib/minos.rb +12 -0
- data/minos.gemspec +31 -0
- metadata +118 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b3e9853e5a1c81483e6f0e946d8e670d1dc947ba9f1d17d045a32c9af2d121c3
|
4
|
+
data.tar.gz: 62b4000e486b49a2fa3002d40b4921926e89ad891e9483c5451ef0fe18a3725a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8358d1a238ed0510a5a5d85bd1341d736e9c41a099eb87ced95d8c2db44d3cf555474a2fc9e9ba8ac4233a2022cbfffd04dd867cd227b574fb61f4a4487c0367
|
7
|
+
data.tar.gz: b01639fef57b52f125f5157d1225556aba660a80c0d195c6d5f43bd9c37595a019333ce579e9166a75be74d9f013eaa6fc9d925ba399fd95819e52666e74069d
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at pierrelouis.gottfrois@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
minos (0.2.0)
|
5
|
+
activesupport (~> 5.2)
|
6
|
+
thor (~> 0.20)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activesupport (5.2.2)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (>= 0.7, < 2)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
tzinfo (~> 1.1)
|
16
|
+
concurrent-ruby (1.1.4)
|
17
|
+
i18n (1.5.2)
|
18
|
+
concurrent-ruby (~> 1.0)
|
19
|
+
minitest (5.11.3)
|
20
|
+
rake (10.5.0)
|
21
|
+
thor (0.20.3)
|
22
|
+
thread_safe (0.3.6)
|
23
|
+
tzinfo (1.2.5)
|
24
|
+
thread_safe (~> 0.1)
|
25
|
+
|
26
|
+
PLATFORMS
|
27
|
+
ruby
|
28
|
+
|
29
|
+
DEPENDENCIES
|
30
|
+
bundler (~> 1.17)
|
31
|
+
minos!
|
32
|
+
rake (~> 10.0)
|
33
|
+
|
34
|
+
BUNDLED WITH
|
35
|
+
1.17.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Pierre-Louis Gottfrois
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
# Minos
|
2
|
+
|
3
|
+
Minos is a gem created at TextMaster to ease our docker deployments on Kubernetes.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Run:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem install minos
|
11
|
+
```
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
Minos comes with a binary. You can see its usage with:
|
16
|
+
|
17
|
+
$ minos help
|
18
|
+
|
19
|
+
Minos is divided into two components:
|
20
|
+
|
21
|
+
1. Building and publishing docker artifacts
|
22
|
+
2. Deploying docker artifacts on a Kubernetes cluster
|
23
|
+
|
24
|
+
### Build
|
25
|
+
|
26
|
+
To build docker artifacts, Minos use a declarative config file written in YAML.
|
27
|
+
By default Minos will look for a file called `minos.yaml` under the
|
28
|
+
current directory. See `--manifest` option to provide in different config file.
|
29
|
+
For example:
|
30
|
+
|
31
|
+
```yaml
|
32
|
+
build:
|
33
|
+
artifacts:
|
34
|
+
- name: builder
|
35
|
+
image: textmasterapps/foo
|
36
|
+
tags:
|
37
|
+
- "$TARGET-latest"
|
38
|
+
docker:
|
39
|
+
# file: MyDockerfile
|
40
|
+
tag: "$IMAGE:$TARGET" # $IMAGE and $TARGET are automatically populated as env vars for you
|
41
|
+
target: builder
|
42
|
+
cacheFrom:
|
43
|
+
- textmasterapps/foo:builder
|
44
|
+
- textmasterapps/foo:builder-latest
|
45
|
+
- name: release
|
46
|
+
image: textmasterapps/foo
|
47
|
+
tags:
|
48
|
+
- "$REVISION" # you can reference ENV variables from your shell
|
49
|
+
- "latest"
|
50
|
+
docker:
|
51
|
+
# file: MyDockerfile
|
52
|
+
tag: "$IMAGE:$TARGET"
|
53
|
+
target: release
|
54
|
+
buildArg:
|
55
|
+
ENV: "production"
|
56
|
+
REVISION: "$REVISION"
|
57
|
+
cacheFrom:
|
58
|
+
- textmasterapps/foo:builder
|
59
|
+
- textmasterapps/foo:$REVISION
|
60
|
+
- textmasterapps/foo:latest
|
61
|
+
```
|
62
|
+
|
63
|
+
With the following `Dockerfile`, leveraging [multi-stages](https://docs.docker.com/develop/develop-images/multistage-build/):
|
64
|
+
|
65
|
+
```
|
66
|
+
######################
|
67
|
+
# Stage: builder
|
68
|
+
FROM ruby:2.5.3-alpine3.7 as builder
|
69
|
+
|
70
|
+
ENV HOME /home/app
|
71
|
+
WORKDIR $HOME
|
72
|
+
|
73
|
+
# Copy the Gemfile and Gemfile.lock
|
74
|
+
COPY Gemfile* $HOME/
|
75
|
+
|
76
|
+
# Install build deps and gems from all environments under vendor/bundle path
|
77
|
+
#
|
78
|
+
# - build-base -- used to install gcc, make, etc.
|
79
|
+
# - git -- used to install git based gems
|
80
|
+
# - libxml2-dev -- used to install nokogiri native extension
|
81
|
+
# - libxslt-dev -- used to install nokogiri native extension
|
82
|
+
RUN apk add --update --no-cache --virtual .build-deps \
|
83
|
+
build-base \
|
84
|
+
git \
|
85
|
+
libxml2-dev \
|
86
|
+
libxslt-dev \
|
87
|
+
&& bundle config build.nokogiri --use-system-libraries \
|
88
|
+
&& bundle install --frozen --deployment --jobs 4 --retry 3 \
|
89
|
+
# Remove unneeded build deps
|
90
|
+
&& apk del .build-deps
|
91
|
+
|
92
|
+
###############################
|
93
|
+
# Stage release
|
94
|
+
FROM ruby:2.5.3-alpine3.7 as release
|
95
|
+
LABEL description="Builds a release image removing unneeded files and dependencies"
|
96
|
+
|
97
|
+
# Install runtime deps and create a non-root user
|
98
|
+
#
|
99
|
+
# - libcurl -- runtime deps for faraday
|
100
|
+
# - git -- used to run `git` command in *.gemspec
|
101
|
+
# - libxml2 -- used to run nokogiri
|
102
|
+
# - libxslt -- used to run nokogiri
|
103
|
+
# - tzdata -- used to install TZinfo data
|
104
|
+
RUN apk add --update --no-cache \
|
105
|
+
libcurl \
|
106
|
+
git \
|
107
|
+
libxml2 \
|
108
|
+
libxslt \
|
109
|
+
tzdata
|
110
|
+
|
111
|
+
# Copy bundle config from builder stage
|
112
|
+
COPY --from=builder /usr/local/bundle/config /usr/local/bundle/config
|
113
|
+
# Copy bundled gems from builder stage
|
114
|
+
COPY --from=builder $HOME/vendor $HOME/vendor
|
115
|
+
# Copy source files according to .dockerignore policy
|
116
|
+
# Make sure your .dockerignore file is properly configure to ensure proper layer caching
|
117
|
+
COPY . $HOME
|
118
|
+
|
119
|
+
# Removes development and test gems by re-running the bundle install command
|
120
|
+
# using cached gems and simply removing unneeded gems using the clean option.
|
121
|
+
RUN bundle install --local --clean --without development test \
|
122
|
+
# Remove unneeded cached gems
|
123
|
+
&& find vendor/bundle/ -name "*.gem" -delete \
|
124
|
+
# Remove unneeded files and folders
|
125
|
+
&& rm -rf spec tmp/cache node_modules app/assets vendor/assets lib/assets
|
126
|
+
|
127
|
+
ENV PORT 8080
|
128
|
+
EXPOSE 8080
|
129
|
+
|
130
|
+
ENTRYPOINT ["bundle", "exec"]
|
131
|
+
|
132
|
+
CMD ["puma", "-C", "config/puma.rb"]
|
133
|
+
|
134
|
+
ARG ENV=production
|
135
|
+
ARG REVISION
|
136
|
+
|
137
|
+
ENV RAILS_ENV $ENV
|
138
|
+
ENV REVISION $REVISION
|
139
|
+
```
|
140
|
+
|
141
|
+
More details about our Dockerfiles at TextMaster can be found on our [Blog](https://medium.com/textmaster-engineering/how-textmaster-reduced-deployment-time-by-using-multi-stages-dockerfile-in-its-ci-pipeline-ffb5e153bfc7)
|
142
|
+
|
143
|
+
### Deploy
|
144
|
+
|
145
|
+
WIP
|
146
|
+
|
147
|
+
## Contributing
|
148
|
+
|
149
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/gottfrois/minos. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
150
|
+
|
151
|
+
## License
|
152
|
+
|
153
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
154
|
+
|
155
|
+
## Code of Conduct
|
156
|
+
|
157
|
+
Everyone interacting in the Minos project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/gottfrois/minos/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "minos"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/minos
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
require 'active_support/core_ext/string/inflections'
|
2
|
+
|
3
|
+
module Minos
|
4
|
+
class Artifact
|
5
|
+
attr_reader :artifact, :options
|
6
|
+
|
7
|
+
def initialize(artifact, options: {})
|
8
|
+
@artifact = artifact
|
9
|
+
@options = options
|
10
|
+
end
|
11
|
+
|
12
|
+
def pull
|
13
|
+
caches.each do |cache|
|
14
|
+
docker_pull(cache)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def build
|
19
|
+
docker_build
|
20
|
+
end
|
21
|
+
|
22
|
+
def push
|
23
|
+
docker_push
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def docker_pull(cache)
|
29
|
+
run "docker inspect #{cache} -f '{{json .ID}}' > /dev/null 2>&1 || docker pull #{cache} 2> /dev/null"
|
30
|
+
end
|
31
|
+
|
32
|
+
def docker_build
|
33
|
+
run "docker build #{to_args(docker)} ."
|
34
|
+
end
|
35
|
+
|
36
|
+
def docker_push
|
37
|
+
tags.each do |tag|
|
38
|
+
run "docker tag #{image}:#{target} #{image}:#{tag}"
|
39
|
+
run "docker push #{image}:#{tag}"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def run(cmd)
|
44
|
+
system("#{envs_as_cmd} && #{cmd}")
|
45
|
+
end
|
46
|
+
|
47
|
+
def envs
|
48
|
+
{
|
49
|
+
'IMAGE' => image,
|
50
|
+
'TARGET' => target,
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
def envs_as_cmd
|
55
|
+
envs.map { |k, v| "#{k}=\"#{v}\"" }.join(' ')
|
56
|
+
end
|
57
|
+
|
58
|
+
def docker
|
59
|
+
artifact['docker']
|
60
|
+
end
|
61
|
+
|
62
|
+
def caches
|
63
|
+
docker['cacheFrom']
|
64
|
+
end
|
65
|
+
|
66
|
+
def image
|
67
|
+
artifact['image']
|
68
|
+
end
|
69
|
+
|
70
|
+
def target
|
71
|
+
docker['target']
|
72
|
+
end
|
73
|
+
|
74
|
+
def tags
|
75
|
+
artifact['tags'].to_a
|
76
|
+
end
|
77
|
+
|
78
|
+
def to_args(args)
|
79
|
+
args.map do |key, value|
|
80
|
+
case value
|
81
|
+
when Array
|
82
|
+
value.map do |v|
|
83
|
+
"--#{key.underscore.gsub('_', '-')} #{v}"
|
84
|
+
end
|
85
|
+
when Hash
|
86
|
+
value.map do |k, v|
|
87
|
+
"--#{key.underscore.gsub('_', '-')} #{k}=#{v}"
|
88
|
+
end
|
89
|
+
else
|
90
|
+
"--#{key.underscore.gsub('_', '-')} #{value}"
|
91
|
+
end
|
92
|
+
end.flatten.join(' ')
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
data/lib/minos/cli.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
module Minos
|
2
|
+
class CLI < Thor
|
3
|
+
class_option :manifest, default: "./minos.yaml", desc: "Manifest config file describing docker artifacts"
|
4
|
+
class_option :only, type: :array, default: [], desc: "Process only given artifacts"
|
5
|
+
class_option :except, type: :array, default: [], desc: "Process all but given artifacts"
|
6
|
+
|
7
|
+
desc "build", "Build docker artifacts specified in the manifest"
|
8
|
+
def build
|
9
|
+
invoke 'minos:docker:build', []
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "push", "Publish docker artifacts specified in the manifest"
|
13
|
+
def push
|
14
|
+
invoke 'minos:docker:push', []
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "deploy", "Deploy docker artifacts specified in the manifest"
|
18
|
+
def deploy
|
19
|
+
invoke 'minos:k8s:deploy', []
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/minos/docker.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
module Minos
|
2
|
+
class Docker < Thor
|
3
|
+
class_option :manifest, default: "./minos.yaml", desc: "Manifest config file describing docker artifacts"
|
4
|
+
class_option :only, type: :array, default: [], desc: "Process only given artifacts"
|
5
|
+
class_option :except, type: :array, default: [], desc: "Process all but given artifacts"
|
6
|
+
|
7
|
+
desc "build", "Build docker artifacts specified in the manifest"
|
8
|
+
def build
|
9
|
+
artifacts.each do |a|
|
10
|
+
artifact = Artifact.new(a, options: options)
|
11
|
+
artifact.pull
|
12
|
+
artifact.build
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "push", "Publish docker artifacts specified in the manifest"
|
17
|
+
def push
|
18
|
+
artifacts.each do |a|
|
19
|
+
artifact = Artifact.new(a, options: options)
|
20
|
+
artifact.push
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def artifacts
|
27
|
+
artifacts = parse['build']['artifacts'].to_a
|
28
|
+
artifacts.reject! { |a| options[:except].include?(a['name']) } if options[:except].count > 0
|
29
|
+
artifacts.select! { |a| options[:only].include?(a['name']) } if options[:only].count > 0
|
30
|
+
artifacts
|
31
|
+
end
|
32
|
+
|
33
|
+
def parse
|
34
|
+
@parse ||= YAML.load(read)
|
35
|
+
end
|
36
|
+
|
37
|
+
def read
|
38
|
+
File.read(options[:manifest])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/lib/minos/k8s.rb
ADDED
data/lib/minos.rb
ADDED
data/minos.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "minos/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "minos"
|
8
|
+
spec.version = Minos::VERSION
|
9
|
+
spec.authors = ["Pierre-Louis Gottfrois"]
|
10
|
+
spec.email = ["pierre-louis@textmaster.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Easy and repeatable Kubernetes deployment based on Docker images}
|
13
|
+
spec.description = %q{Easy and repeatable Kubernetes deployment based on Docker images}
|
14
|
+
spec.homepage = "https://github.com/textmaster/minos"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_dependency "activesupport", "~> 5.2"
|
27
|
+
spec.add_dependency "thor", "~> 0.20"
|
28
|
+
|
29
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
30
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: minos
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pierre-Louis Gottfrois
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.20'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.20'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.17'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.17'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
description: Easy and repeatable Kubernetes deployment based on Docker images
|
70
|
+
email:
|
71
|
+
- pierre-louis@textmaster.com
|
72
|
+
executables:
|
73
|
+
- minos
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
78
|
+
- CODE_OF_CONDUCT.md
|
79
|
+
- Gemfile
|
80
|
+
- Gemfile.lock
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/console
|
85
|
+
- bin/setup
|
86
|
+
- exe/minos
|
87
|
+
- lib/minos.rb
|
88
|
+
- lib/minos/artifact.rb
|
89
|
+
- lib/minos/cli.rb
|
90
|
+
- lib/minos/docker.rb
|
91
|
+
- lib/minos/k8s.rb
|
92
|
+
- lib/minos/version.rb
|
93
|
+
- minos.gemspec
|
94
|
+
homepage: https://github.com/textmaster/minos
|
95
|
+
licenses:
|
96
|
+
- MIT
|
97
|
+
metadata: {}
|
98
|
+
post_install_message:
|
99
|
+
rdoc_options: []
|
100
|
+
require_paths:
|
101
|
+
- lib
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
requirements: []
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 2.7.6
|
115
|
+
signing_key:
|
116
|
+
specification_version: 4
|
117
|
+
summary: Easy and repeatable Kubernetes deployment based on Docker images
|
118
|
+
test_files: []
|