dockly 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/dockly/deb.rb +4 -2
- data/lib/dockly/version.rb +1 -1
- data/spec/dockly/deb_spec.rb +11 -2
- data/spec/dockly/rpm_spec.rb +11 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWI0NjQwNGQ1ODUyM2JiMjVlMTcxZmYzOGFkNDEzOWJjZmRjZTUzMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzNkYTQ3MDkxZWQ1NjAzOWQ5NDViOWFkNWY1YTU2Yzg2NTU2MzM0MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjcxZTUyYjlhYWZjNTFiNWU2NTJkNTA5YzcxNTI4MjUyMGIwMGYwNzc4ZTZl
|
10
|
+
YWYyMzkwMmI3NzUxMWIxMjc2NTNkNWUxZDNmYTRmY2Y1OGJkMzk0NWMzM2Qw
|
11
|
+
NjgyMzk5MTJmOGViOWQ2YzFjYTI0YzFjZmQ1YmI4NTY3NzUyYjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODIzMWI1MzQ1NjUwMGJhMjM3ZjEyOGUyY2UzYmEwM2YzNDIwZmZmMGZmODIz
|
14
|
+
OTRiNGU4MWYyZjc2NWJlMTcxODdjNDNkODk2ZjU1YzcyMDQwMzUzMGUxNGY5
|
15
|
+
MjQyNjUzYjAzMTZmNjE0YWUzY2U5OTdiZjk3NWZkZDAyYTQ2YmY=
|
data/lib/dockly/deb.rb
CHANGED
@@ -7,7 +7,8 @@ class Dockly::Deb
|
|
7
7
|
logger_prefix '[dockly deb]'
|
8
8
|
dsl_attribute :package_name, :version, :release, :arch, :build_dir,
|
9
9
|
:deb_build_dir, :pre_install, :post_install, :pre_uninstall,
|
10
|
-
:post_uninstall, :s3_bucket, :files, :app_user, :vendor
|
10
|
+
:post_uninstall, :s3_bucket, :files, :app_user, :vendor,
|
11
|
+
:package_startup_script
|
11
12
|
|
12
13
|
dsl_class_attribute :docker, Dockly::Docker
|
13
14
|
dsl_class_attribute :foreman, Dockly::Foreman, type: Array
|
@@ -20,6 +21,7 @@ class Dockly::Deb
|
|
20
21
|
default_value :files, []
|
21
22
|
default_value :app_user, 'nobody'
|
22
23
|
default_value :vendor, 'Dockly'
|
24
|
+
default_value :package_startup_script, true
|
23
25
|
|
24
26
|
def file(source, destination)
|
25
27
|
@files << { :source => source, :destination => destination }
|
@@ -102,7 +104,7 @@ private
|
|
102
104
|
add_files(@dir_package)
|
103
105
|
add_docker_auth_config(@dir_package)
|
104
106
|
add_docker(@dir_package)
|
105
|
-
add_startup_script(@dir_package)
|
107
|
+
add_startup_script(@dir_package) if package_startup_script
|
106
108
|
|
107
109
|
convert_package
|
108
110
|
|
data/lib/dockly/version.rb
CHANGED
data/spec/dockly/deb_spec.rb
CHANGED
@@ -64,7 +64,7 @@ describe Dockly::Deb do
|
|
64
64
|
name 'deb_test'
|
65
65
|
import 'https://s3.amazonaws.com/swipely-pub/docker-export-ubuntu-latest.tgz'
|
66
66
|
git_archive '.'
|
67
|
-
build 'touch /deb_worked'
|
67
|
+
build 'RUN touch /deb_worked'
|
68
68
|
build_dir 'build/docker'
|
69
69
|
end
|
70
70
|
end
|
@@ -89,7 +89,7 @@ describe Dockly::Deb do
|
|
89
89
|
name 'deb_test'
|
90
90
|
import 'https://s3.amazonaws.com/swipely-pub/docker-export-ubuntu-latest.tgz'
|
91
91
|
git_archive '.'
|
92
|
-
build 'touch /deb_worked'
|
92
|
+
build 'RUN touch /deb_worked'
|
93
93
|
build_dir 'build/docker'
|
94
94
|
|
95
95
|
registry :test_docker_registry do
|
@@ -166,6 +166,15 @@ describe Dockly::Deb do
|
|
166
166
|
subject.create_package!
|
167
167
|
expect(`dpkg --contents #{filename}`).to include("dockly-startup.sh")
|
168
168
|
end
|
169
|
+
|
170
|
+
context 'when package_startup_script is false' do
|
171
|
+
before { subject.package_startup_script(false) }
|
172
|
+
|
173
|
+
it 'does not place a startup script in the package' do
|
174
|
+
subject.create_package!
|
175
|
+
expect(`dpkg --contents #{filename}`).to_not include("dockly-startup.sh")
|
176
|
+
end
|
177
|
+
end
|
169
178
|
end
|
170
179
|
|
171
180
|
describe '#exists?' do
|
data/spec/dockly/rpm_spec.rb
CHANGED
@@ -51,7 +51,7 @@ describe Dockly::Rpm do
|
|
51
51
|
name 'rpm_test'
|
52
52
|
import 'https://s3.amazonaws.com/swipely-pub/docker-export-ubuntu-latest.tgz'
|
53
53
|
git_archive '.'
|
54
|
-
build 'touch /rpm_worked'
|
54
|
+
build 'RUN touch /rpm_worked'
|
55
55
|
build_dir 'build/docker'
|
56
56
|
end
|
57
57
|
end
|
@@ -76,7 +76,7 @@ describe Dockly::Rpm do
|
|
76
76
|
name 'rpm_test'
|
77
77
|
import 'https://s3.amazonaws.com/swipely-pub/docker-export-ubuntu-latest.tgz'
|
78
78
|
git_archive '.'
|
79
|
-
build 'touch /rpm_worked'
|
79
|
+
build 'RUN touch /rpm_worked'
|
80
80
|
build_dir 'build/docker'
|
81
81
|
|
82
82
|
registry :test_docker_registry do
|
@@ -153,6 +153,15 @@ describe Dockly::Rpm do
|
|
153
153
|
subject.create_package!
|
154
154
|
expect(`rpm -qpl #{filename}`).to include("dockly-startup.sh")
|
155
155
|
end
|
156
|
+
|
157
|
+
context 'when package_startup_script is false' do
|
158
|
+
before { subject.package_startup_script(false) }
|
159
|
+
|
160
|
+
it 'does not place a startup script in the package' do
|
161
|
+
subject.create_package!
|
162
|
+
expect(`rpm -qpl #{filename}`).to_not include("dockly-startup.sh")
|
163
|
+
end
|
164
|
+
end
|
156
165
|
end
|
157
166
|
|
158
167
|
describe '#exists?' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dockly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swipely, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|