njord 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d780d5248b8d33222d76608167cadd6afdc9cdb2b52aba939cd2256a639ff29
4
- data.tar.gz: 6a54b2397735fa6fa24bab31cd3245ac3e20c41985898ad217a117f595ebe6f2
3
+ metadata.gz: 9b64ca82ef7c85a0b9ecf3ac2dbf0ab6f10740b5b6731e5f57b254cfcd2155e0
4
+ data.tar.gz: 2935265c084593f696e00a3075aecc2a4d1dd185d252545169ec1f110b899b31
5
5
  SHA512:
6
- metadata.gz: 033b5c41e514f4aac2658dce320f32602fbc390afbbae8b1289a871accdfeb223928d8a16bf6f3bffbfc07dab9114a5d089a3ea4b1e1983591619b7f99b390e0
7
- data.tar.gz: 4bd435f8f8c48e67dc1da7f557ecceb6bf06fe0beb24dff9355bf09502a3cbc2ed4f18874b0b36520a01be26443cac386ac207ee3df8b31f36bcdfb9bbf933ff
6
+ metadata.gz: fbb75ebda14529c1af1da7273caa42558ddcb4b087144d1d25f0f8340e503902e880c28c4ee3b7abc74793984edff143754682497c905f89fb8255281279c357
7
+ data.tar.gz: 6d58a516e36b0400d584a557da2d36979678849c5526cdd78f01c3f9011f206b8a2a6d79557ad935be21145d9de37728e472c8007483d02fceeee23871550046
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ Gemfile.lock
data/README.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # Njord
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/njord`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Welcome to Njord. I needed a gem to help me with some common docker and kubernetes tasks so here it is.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
7
+ Add this line to your application's Gemfile, preferably in the test/development section:
10
8
 
11
9
  ```ruby
12
10
  gem 'njord'
@@ -22,17 +20,29 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
23
+ Njord needs a config file in the directory you want to execute it.
24
+
25
+ Just create `.njord.yml` with the content:
26
+ ```yaml
27
+ images:
28
+ - image_name: njord/image1
29
+ docker_repo: hub.docker.com
30
+ dockerfile: Dockerfile
31
+ tagging: git
32
+ - image_name: njord/image2
33
+ docker_repo: hub.docker.com
34
+ dockerfile: Dockerfile-Http
35
+ tagging: git
36
+ ```
28
37
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
+ You can currently use the command `$ njord build`, `$ njord push`. I plan to integrate some k8s commands as well.
39
+ The option `tagging` can currently only be `git`. I will add `sem-ver` soon, to enable semantic versioning without user input.
30
40
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
41
+ The finished state of Njord should make a workflow possible, that handles building, tagging, pushing, deploying, rolling back and getting logs.
32
42
 
33
43
  ## Contributing
34
44
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/njord.
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/DTrierweiler/njord.
36
46
 
37
47
  ## License
38
48
 
@@ -4,7 +4,6 @@ module Njord
4
4
  class DockerHandler
5
5
  class << self
6
6
  def build_images
7
- puts Njord.config.inspect
8
7
  Njord.config.images.each do |image_config|
9
8
  execute("docker build -t #{image_config.image_name}:#{image_tag(image_config)}" \
10
9
  " -f #{image_config.dockerfile} .")
data/lib/njord/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Njord
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: njord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Trierweiler
@@ -47,9 +47,7 @@ extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
49
  - ".gitignore"
50
- - ".travis.yml"
51
50
  - Gemfile
52
- - Gemfile.lock
53
51
  - LICENSE.txt
54
52
  - README.md
55
53
  - Rakefile
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.4.5
7
- before_install: gem install bundler -v 2.0.1
data/Gemfile.lock DELETED
@@ -1,20 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- njord (0.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- rake (10.5.0)
10
-
11
- PLATFORMS
12
- ruby
13
-
14
- DEPENDENCIES
15
- bundler (~> 2.0)
16
- njord!
17
- rake (~> 10.0)
18
-
19
- BUNDLED WITH
20
- 2.0.1