barnacle 0.1.3 → 0.1.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: 746509d0d58ec0c964396a7815684438af43c0de
4
- data.tar.gz: 23cba73789b4b32e8ea07429b4915ebfd0e04595
3
+ metadata.gz: 5819f09b42afdc9296874acedf5441e3648b9ca0
4
+ data.tar.gz: 6d841971806c949065fa2c516e71077f48152984
5
5
  SHA512:
6
- metadata.gz: e1eb4cdddc609eee37d67ae0a52dd1563512347ff5f5763e84c6c8ea9b21003475904de494d6ae0ace7677af3e0f504c9ee766659a2e2a79330cae0229f9ea7b
7
- data.tar.gz: 338f19d4b9725cc53cade4cb0fa0a76e6ab1e0366d1db4640eca62b8bddfa970da2303c5f666a2055af28f2793fcb9b2b1fba108dd9299041afcf770c4fdc7a7
6
+ metadata.gz: 1717670bf3d8de237ea091885c173a86dbbb335033995b8482c7ccbd8f4b031cd25ee58e0913b173370dcefce03c4cbc7c99661995c298fde39c3d5063d54f4d
7
+ data.tar.gz: 36675644d1a60df942006a3f3b1cb6190b5d393a86ac45343ddfe5eecec7f682374ec8a551e8679b266da45aa3aa6bc3784a8abe62e42106c3434a840e4e38e1
@@ -0,0 +1,26 @@
1
+ FROM centos
2
+ MAINTAINER 'kswope'
3
+
4
+ # run this container similar to this: docker run --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro -d image
5
+
6
+ ENV container docker
7
+ RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs
8
+
9
+ RUN yum -y update; yum clean all; \
10
+ (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11
+ rm -f /lib/systemd/system/multi-user.target.wants/*;\
12
+ rm -f /etc/systemd/system/*.wants/*;\
13
+ rm -f /lib/systemd/system/local-fs.target.wants/*; \
14
+ rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15
+ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16
+ rm -f /lib/systemd/system/basic.target.wants/*;\
17
+ rm -f /lib/systemd/system/anaconda.target.wants/*;
18
+
19
+ # VOLUME [ "/sys/fs/cgroup" ] # why is this here?
20
+ CMD ["/usr/sbin/init"]
21
+
22
+ # My additions below
23
+ RUN yum -y groupinstall "Development Tools"
24
+ RUN yum -y install rsyslog crond
25
+
26
+
@@ -0,0 +1,10 @@
1
+
2
+
3
+ docker:
4
+ privileged: true
5
+ v:
6
+ - /sys/fs/cgroup:/sys/fs/cgroup:ro
7
+ - /var/log/rails-test:/var/log
8
+ e: RAILS_ENV=<%= ENV['RAILS_ENV'] %>
9
+
10
+
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'rainbow'
4
4
  require 'yaml'
5
+ require 'erb'
5
6
 
6
7
  yml_filename = 'barnacle/config.yml'
7
8
 
@@ -45,7 +46,8 @@ end
45
46
  # merge in options from optional barnacle/switches.yml
46
47
  #-------------------------------------------------------------------------------
47
48
  if File.exists?(yml_filename)
48
- if docker_yml = YAML.load_file(yml_filename)['docker']
49
+
50
+ if docker_yml = YAML.load(ERB.new(File.read(yml_filename)).result)['docker']
49
51
  options.merge!(docker_yml) if docker_yml
50
52
  else
51
53
  cputs "Warning: #{yml_filename} found but didn't contain 'docker' node, can't use"
@@ -1,3 +1,3 @@
1
1
  module Barnacle
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barnacle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - kswope
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-03-06 00:00:00.000000000 Z
11
+ date: 2015-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.8'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rainbow
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Manage your Dockerized service with four simple commands
@@ -60,12 +60,14 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
63
+ - ".gitignore"
64
64
  - Gemfile
65
65
  - LICENSE.txt
66
66
  - README.md
67
67
  - Rakefile
68
68
  - barnacle.gemspec
69
+ - barnacle/Dockerfile
70
+ - barnacle/config.yml
69
71
  - exe/barnacle
70
72
  - lib/barnacle.rb
71
73
  - lib/barnacle/version.rb
@@ -79,17 +81,17 @@ require_paths:
79
81
  - lib
80
82
  required_ruby_version: !ruby/object:Gem::Requirement
81
83
  requirements:
82
- - - '>='
84
+ - - ">="
83
85
  - !ruby/object:Gem::Version
84
86
  version: '0'
85
87
  required_rubygems_version: !ruby/object:Gem::Requirement
86
88
  requirements:
87
- - - '>='
89
+ - - ">="
88
90
  - !ruby/object:Gem::Version
89
91
  version: '0'
90
92
  requirements: []
91
93
  rubyforge_project:
92
- rubygems_version: 2.0.14
94
+ rubygems_version: 2.4.6
93
95
  signing_key:
94
96
  specification_version: 4
95
97
  summary: Manage your Dockerized service with four simple commands