luban 0.12.11 → 0.12.12

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: cb67666121f6fcf2e0f70c16adb5c7b38766c8fb
4
- data.tar.gz: db0722a6ca9911ec279b1e16e81e986ea48d054a
3
+ metadata.gz: a3816179cd320d9eb87ffe5d9e3a29d8515ff1cc
4
+ data.tar.gz: 4f33f9199c8feb67c88b3a7c80af6995146f14a0
5
5
  SHA512:
6
- metadata.gz: c55ed12e6e87905f0f10d09cb6d3949a342e23d97ef9cdb1ff906f4ec6d5257fa82d0c9f3b9ecc02c641fe897f939ba7594959b466ff205146d361c91ae3e9b0
7
- data.tar.gz: 2695763a39a650874112ec59710a5daefeda724611a3eebeb6bc2e5bdea24c988526b447a0b652f9bd74732d31f85fa63b09b4440281ca695024d8d2c7e2c65c
6
+ metadata.gz: 615cedf6860798c0e537886e712f64148fa62b4c6722f60e7aafe213adcf67b7150b563b5211b07d33a260444408b6995bbda6923630ea5ee5042866d3d09231
7
+ data.tar.gz: 87bafdb3fd139a8319e023c591b7720fb39ff5486193c037b056cd402c74d7031103f2981e875ebf79a5fa1b55562ae11338701f5bc3f9fd60384bc59ca44de5
@@ -1,5 +1,13 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.12.12 (Mar 30, 2017)
4
+
5
+ Minor enhancements:
6
+ * Added parameter, :base_os, to specify the Dockerfile template by OS
7
+ * By default, :base_os is set to "centos"
8
+ * The original Dockerfile.erb was renamed to Dockerfile.centos.erb
9
+ * Down the road more other OS Dockerfile templates will be added
10
+
3
11
  ## Version 0.12.11 (Mar 29, 2017)
4
12
 
5
13
  Bug fixes:
@@ -247,7 +247,7 @@ module Luban
247
247
 
248
248
  def render_dockerfile
249
249
  upload_by_template(file_to_upload: build[:dockerfile],
250
- template_file: find_template_file('Dockerfile.erb'),
250
+ template_file: find_template_file("Dockerfile.#{base_os}.erb"),
251
251
  auto_revision: true)
252
252
  end
253
253
 
@@ -127,6 +127,7 @@ module Luban
127
127
  parameter :luban_uid, default: ->{ current_uid }
128
128
  parameter :luban_user, default: ->{ current_user }
129
129
  parameter :build_tag, default: '0.0.0'
130
+ parameter :base_os, default: 'centos'
130
131
  parameter :base_image, default: 'centos:7'
131
132
  parameter :timezone, default: 'UTC'
132
133
  parameter :base_packages, default: ->{ Array.new }
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.12.11"
3
+ VERSION = "0.12.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.11
4
+ version: 0.12.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli
@@ -110,7 +110,7 @@ files:
110
110
  - lib/luban/deployment/cli/application/docker.rb
111
111
  - lib/luban/deployment/cli/application/docker/dockerable.rb
112
112
  - lib/luban/deployment/cli/application/docker/dockerizer.rb
113
- - lib/luban/deployment/cli/application/docker/templates/Dockerfile.erb
113
+ - lib/luban/deployment/cli/application/docker/templates/Dockerfile.centos.erb
114
114
  - lib/luban/deployment/cli/application/docker/templates/docker-compose-env.erb
115
115
  - lib/luban/deployment/cli/application/docker/templates/docker-compose.yml.erb
116
116
  - lib/luban/deployment/cli/application/publisher.rb