crane_rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crane_rails/templates/Vagrantfile +6 -24
- data/lib/crane_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f90bb44a1c6aad03a58fe3600be048563c12135
|
4
|
+
data.tar.gz: 16217f523a2b9c6efd7f68b4198cc56cb4cd211d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f727dc167d8e80534b18495ef70579b0f8c8319c90edadd1f62c4235b4037b20f5adfbd9d5a878a7babd3645eda32ec9a0f89792d21337833f5f99d328aadb5
|
7
|
+
data.tar.gz: 690176082e28309fb6cdd42fda315f1b34268bac9f9f2486bdb314bae2dcd20269d02cc464138ab3456d0bb432a81dac62f9e8affec2a82fd6bc04f55109abc1
|
@@ -1,31 +1,13 @@
|
|
1
1
|
Vagrant.configure('2') do |config|
|
2
|
-
config.vm.box = '
|
3
|
-
config.vm.box_url = 'http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant.box'
|
2
|
+
config.vm.box = 'hashicorp/precise64'
|
4
3
|
|
5
|
-
config.vm.synced_folder '.', '/home/
|
4
|
+
config.vm.synced_folder '.', '/home/vagrant/rails', type: 'rsync'
|
6
5
|
|
7
|
-
# Rails server port
|
8
6
|
config.vm.network 'forwarded_port', guest: 3000, host: 3000
|
9
7
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
config.vm.provision 'docker' do |d|
|
9
|
+
d.run 'shicholas/postgres', args: '-d --name=pg'
|
10
|
+
d.pull_images 'shicholas/rails-server'
|
11
|
+
d.pull_images 'shicholas/rails-guard'
|
14
12
|
end
|
15
|
-
|
16
|
-
config.vm.provider :vmware_fusion do |vb, override|
|
17
|
-
override.vm.box_url = 'http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant_vmware_fusion.box'
|
18
|
-
end
|
19
|
-
|
20
|
-
# plugin conflict
|
21
|
-
if Vagrant.has_plugin?('vagrant-vbguest') then
|
22
|
-
config.vbguest.auto_update = false
|
23
|
-
end
|
24
|
-
|
25
|
-
# install service containers for rails application
|
26
|
-
config.vm.provision 'shell', inline: <<-COMMANDS
|
27
|
-
docker run --name=pg -d shicholas/postgresql
|
28
|
-
docker pull shicholas/rails-server
|
29
|
-
docker pull shicholas/rails-guard
|
30
|
-
COMMANDS
|
31
13
|
end
|
data/lib/crane_rails/version.rb
CHANGED