luban 0.12.3 → 0.12.4

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: 4a2c52afba7ac1fc8e47eed104a2318e486b66a6
4
- data.tar.gz: 59f6cc14a8d580e5559e42d53fd4ee66b5efb5ef
3
+ metadata.gz: 804de7c5538bce26975d679cdd982450d838e7d8
4
+ data.tar.gz: 3df39da4fb9f9a17c563447d45193d4c7219628e
5
5
  SHA512:
6
- metadata.gz: 1ef8f2405f5422b2febace4dbc866c35f39789d98613ae526dffdb304c67a021cde884f38ddcb29689cc1af6793825fca04c4e9498e5e89f3dea4a05c81fdee6
7
- data.tar.gz: 3f01d09888adc71fb2a628e1ac664bf3084b553ad73bd7e364d7ef56fa88ed925a088f737701b2674637c4ffc33e926e086ede94e7fcb348d95ea68198e7c8c4
6
+ metadata.gz: e1e218f0c621d35a7bed93af3016f8eb55236e98747a1d95832f3a6bd3c1b9f62548a39fe17371108a749ba04810732e31942b17822ab25558f31e102526ce9e
7
+ data.tar.gz: bf1a3a6c3da8b83cd86dcebced0337694b1db533beae27ed08705a7cf613c94bd86a6c65fbe37ba11eb38745b800fa9d314658c79ca468257b9c97f2e166964c
data/CHANGELOG.md CHANGED
@@ -1,13 +1,18 @@
1
1
  # Change log
2
2
 
3
- ## Version 0.12.3 (Feb 15, 2017)
3
+ ## Version 0.12.4 (Feb 16, 2017)
4
4
 
5
5
  Minor enhancements:
6
6
  * Added labels in docker image to show info about installed packages
7
- * Added new parameter, #luban_uid, to specify user id for luban user
7
+ * Added new Dockerfile arguments, #luban_user and #luban_uid, to specify user name and user id used in a docker container if necessary
8
8
  * This is mainly to address the permission issues on docker volumes
9
+ * It can be changed thru dotenv file for docker-compose
10
+ * Added new Dockerfile argument, #luban_root_path, to specify root path for luban deployments if necessary
11
+ * It can be changed thru dotenv file for docker-compose
9
12
  * Refactored luban_user and luban_uid as build arguments
10
13
  * Used environment variable TZ to correctly control the timezone for a docker container
14
+ * Cleaned up and optimized Dockerfile
15
+ * Bump up gem dependency on luban-cli to version 0.4.9
11
16
 
12
17
  Bug fixes:
13
18
  * Correctly composed revisions for build sources
@@ -4,15 +4,15 @@ MAINTAINER <%= author['name'] %> <%= author['email'].inspect %>
4
4
  ARG luban_uid
5
5
  ARG luban_user
6
6
 
7
- RUN adduser -ms /bin/bash -u $luban_uid $luban_user && \
8
- mkdir <%= luban_root_path %> && \
9
- chown -R $luban_user:$luban_user <%= luban_root_path %> && \
10
- echo "source <%= envrc_file %>" >> /home/$luban_user/.bashrc
7
+ # Add application archives
8
+ ADD <%= build[:archives].collect { |_, a| a[:path].basename }.join(" \\\n ") %> /
11
9
 
12
- <% build[:archives].each_value do |archive| -%>
13
- ADD <%= archive[:path].basename %> /
14
- <% end -%>
10
+ # Create luban user with the given uid
11
+ RUN adduser -ms /bin/bash -u $luban_uid $luban_user && \
12
+ echo "source <%= envrc_file %>" >> /home/$luban_user/.bashrc && \
13
+ chown -R $luban_user:$luban_user $luban_root_path
15
14
 
15
+ # Populate image labels
16
16
  LABEL luban.project="<%= project %>" \
17
17
  luban.application="<%= project %>" \
18
18
  luban.stage="<%= stage %>" \
@@ -28,7 +28,7 @@ LABEL luban.project="<%= project %>" \
28
28
  <%- end -%>
29
29
  luban.luban_uid="$luban_uid" \
30
30
  luban.luban_user="$luban_user" \
31
- luban.luban_root_path="<%= luban_root_path %>"
31
+ luban.luban_root_path="$luban_root_path"
32
32
 
33
33
  USER $luban_user
34
34
  WORKDIR /home/$luban_user
@@ -1,3 +1,4 @@
1
1
  LUBAN_UID=<%= luban_uid %>
2
2
  LUBAN_USER=<%= luban_user %>
3
+ LUBAN_ROOT_PATH=<%= luban_root_path %>
3
4
  COMPOSE_PROJECT_NAME=<%= project %>
@@ -7,6 +7,7 @@ services:
7
7
  args:
8
8
  luban_uid: $LUBAN_UID
9
9
  luban_user: $LUBAN_USER
10
+ luban_root_path: $LUBAN_ROOT_PATH
10
11
  image: <%= build[:image_tag] %>
11
12
  environment:
12
13
  TZ: <%= timezone %>
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.12.3"
3
+ VERSION = "0.12.4"
4
4
  end
5
5
  end
data/luban.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.required_ruby_version = ">= 2.1.0"
23
- spec.add_runtime_dependency 'luban-cli', ">=0.4.8"
23
+ spec.add_runtime_dependency 'luban-cli', ">=0.4.9"
24
24
  spec.add_runtime_dependency 'sshkit'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.9"
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.3
4
+ version: 0.12.4
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-02-15 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.8
19
+ version: 0.4.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.8
26
+ version: 0.4.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sshkit
29
29
  requirement: !ruby/object:Gem::Requirement