luban 0.12.3 → 0.12.4
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 +4 -4
- data/CHANGELOG.md +7 -2
- data/lib/luban/deployment/cli/application/docker/templates/Dockerfile.erb +8 -8
- data/lib/luban/deployment/cli/application/docker/templates/docker-compose-env.erb +1 -0
- data/lib/luban/deployment/cli/application/docker/templates/docker-compose.yml.erb +1 -0
- data/lib/luban/deployment/version.rb +1 -1
- data/luban.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 804de7c5538bce26975d679cdd982450d838e7d8
|
|
4
|
+
data.tar.gz: 3df39da4fb9f9a17c563447d45193d4c7219628e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+
## 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
|
|
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
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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="
|
|
31
|
+
luban.luban_root_path="$luban_root_path"
|
|
32
32
|
|
|
33
33
|
USER $luban_user
|
|
34
34
|
WORKDIR /home/$luban_user
|
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.
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
26
|
+
version: 0.4.9
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: sshkit
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|