dockly 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzU2YTdjMzNkOTQ4ZGYzNWI4MWZlMjY1MTFlYWUwMTQwOGI4NTdmZA==
4
+ MmY4YTk4ZmY0OTU5NzA2ZGM4MWQ4YWUwMjIwOTJkZWI4MDVlY2QyMQ==
5
5
  data.tar.gz: !binary |-
6
- MmI0ZjY4NTFlMDQxYzJmNmVlYjViZjk1MTAxNWM5ODY1ZjNlZmUzOQ==
6
+ MmNiMGU5MDQ2ZmU1NmNlZjQ2NGZmMTIwYWEwNzE4OGJiNDE0YzJkNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjllNDAyZjM1ODQ1MWEwZjlhYWQwMWM0ZTAzMzI4ZGEzNTk3OTI1ZDI2OTFl
10
- ODkzNjhkZTk0MzNhN2Q2NjdjZjNlODRhZjMwMzJhYTU1ZmY5ODkxNTdjYTFh
11
- MTU5ZGNhYzhjNDFjODU0Yjk2ZWI3MmNhZWZkYjVjNGJjNzBhZjU=
9
+ NTI1Nzg2Njc1MDUzZTMyYmVjMmRmMDVlYmExNDUwMjQ5YWFmZTg4NTQxZDI3
10
+ NTY2YWU2NjYwMDU1ZTVkZjlhNWUwYzc4NjNiZjM0MDhhMWRmMGRhMWJhYjcw
11
+ NzZmMWQyYjY1MmMxZTY3ZTZmYjE4NThjOTVlMzVkNjAzZTQxNTM=
12
12
  data.tar.gz: !binary |-
13
- NDM3MjNhZDMyZGFmY2VkYWNhMTQ3NzliMWIxMjRiMWM2ZjNmMWJhYThkNjEy
14
- ODBlNTc4YzM2MTNiOTQ4YTc3YzExMzA0ZGE4OTMzODFkZjgyZGM5NDFjMmYx
15
- ZmY2NWI1ZWNkMmIzNjBjNWM0MDdlMWY3MWQ4YmZkYmVjNGRjYTk=
13
+ MWQ0ZGFmNDg1YjZmMTU2MGQzNmM5NmRiZGI0ODViMTJkN2YwNWIyMzg3MTlj
14
+ ZGMxMTEwNTNjMWJiMTBmY2UzYmRkOWE1ZjBiY2E0ZDc3OWZmNzA4ZWFjNzYz
15
+ NWZlYjI1YTY5OWFhZWFjMzY0ZTEwMjRlMjJlNWJhY2E4ODE0MDQ=
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Dockly
2
- VERSION = '2.3.0'
2
+ VERSION = '2.4.0'
3
3
  end
@@ -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
@@ -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: 2.3.0
4
+ version: 2.4.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-03 00:00:00.000000000 Z
11
+ date: 2015-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp