dockly 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -7,12 +7,16 @@ Dockly
7
7
 
8
8
  `dockly` is a gem made to ease the pain of packaging an application. For this gem to be useful, quite a few assumptions can be made about your stack:
9
9
 
10
- - You use AWS
11
10
  - You're deploying to a Debian-based system
12
11
  - You want to use [Docker](http://docker.io) for process isolation
13
12
 
14
13
  Although only a specific type of repository may be used, these assumptions allow us to define a simple DSL to describe your repository.
15
14
 
15
+ Usage
16
+ -----
17
+
18
+ Once a `deb` block has been defined by the DSL below, dockly is invoked by either `bundle exec dockly build #{deb block name}` or `bundle exec rake dockly:deb:#{deb block name}`.
19
+
16
20
  The DSL
17
21
  -------
18
22
 
@@ -58,6 +62,8 @@ end
58
62
  `build_cache`
59
63
  -------------
60
64
 
65
+ Optional
66
+
61
67
  The `build_cache` DSL is used to prevent rebuilding assets every build and used cached assets.
62
68
 
63
69
  - `s3_bucket`
@@ -137,6 +143,8 @@ Need finer control of Docker packages? We also wrote [docker-api](https://github
137
143
  `foreman`
138
144
  ---------
139
145
 
146
+ Optional
147
+
140
148
  The `foreman` DSL is used to define the foreman export scripts. It has the following attributes:
141
149
 
142
150
  - `env`
data/dockly.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = %w{lib}
16
16
  gem.version = Dockly::VERSION
17
17
  gem.add_dependency 'clamp', '~> 0.6'
18
- gem.add_dependency 'docker-api', '~> 1.5.2'
18
+ gem.add_dependency 'docker-api', '~> 1.6.0'
19
19
  gem.add_dependency 'dockly-util', '~> 0.0.5'
20
20
  gem.add_dependency 'excon'
21
21
  gem.add_dependency 'fog', '~> 1.18.0'
@@ -1,3 +1,3 @@
1
1
  module Dockly
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -59,7 +59,7 @@ describe Dockly::Deb do
59
59
  it 'builds the docker image and adds it to the deb' do
60
60
  subject.create_package!
61
61
  `dpkg --contents #{filename}`
62
- .lines.grep(/dockly-deb_test-image\.tgz/).should_not be_empty
62
+ .lines.grep(/deb_test-image\.tgz/).should_not be_empty
63
63
  end
64
64
  end
65
65
 
@@ -85,7 +85,6 @@ describe Dockly::Docker do
85
85
  image = subject.build_image(image)
86
86
  container = Docker::Container.create('Image' => image.id, 'Cmd' => ['ls', '-1', '/'])
87
87
  output = container.tap(&:start).attach(:stream => true, :stdout => true, :stderr => true)
88
- puts "output: #{output}"
89
88
  output.lines.grep(/lol/).should_not be_empty
90
89
  # TODO: stop resetting the connection, once no longer necessary after attach
91
90
  Docker.reset_connection!
@@ -93,7 +92,7 @@ describe Dockly::Docker do
93
92
 
94
93
  # it 'exports'
95
94
  subject.export_image(image)
96
- File.exist?('build/docker/dockly-my-app-image.tgz').should be_true
95
+ File.exist?('build/docker/test_docker-image.tgz').should be_true
97
96
  end
98
97
  end
99
98
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-11 00:00:00.000000000 Z
12
+ date: 2013-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 1.5.2
37
+ version: 1.6.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 1.5.2
45
+ version: 1.6.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: dockly-util
48
48
  requirement: !ruby/object:Gem::Requirement