docora 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -21
- data/lib/docora/cli.rb +7 -1
- data/lib/docora/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: 9ab743048bd9c639293240c27cf35dde9fa21c4f
|
4
|
+
data.tar.gz: 01aabccf0b7a5026591954ac391db8fdc5ea11dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9e64207b165edf49891cd443fb9f8881c4b7f625f75af51e24443e52f0e59ca1bfa44c6135b62be683d767fcc7207934e90956d8b3f8d006552a9c33083ac6e
|
7
|
+
data.tar.gz: 9e6a802dd3641e76b9fd9a75490a2722c9ee1100a7586f3506a3a3b70ea9d6d760fb9536b627994c634ea3abc5f3adfc135b9b0ec8b2488a55415ab8578deab6
|
data/README.md
CHANGED
@@ -1,41 +1,35 @@
|
|
1
|
-
# Docora
|
1
|
+
# Docora - Docker Compose + Rails
|
2
|
+
Run your rails app in docker using docker compose.
|
3
|
+
The intention is use this to dockerify your rails project for use anywhere in development.
|
2
4
|
|
3
|
-
|
5
|
+
[](https://badge.fury.io/rb/docora)
|
4
6
|
|
5
|
-
|
7
|
+
[get docker](https://docs.docker.com/engine/getstarted/step_one/#step-1-get-docker)
|
8
|
+
[docker-compose](https://docs.docker.com/compose/install/)
|
6
9
|
|
7
|
-
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'docora'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
10
|
+
docker --version
|
11
|
+
> Docker version 17.03.1-ce, build c6d412e
|
16
12
|
|
17
|
-
|
13
|
+
docker-compose --version
|
14
|
+
> docker-compose version 1.11.2, build dfed245
|
18
15
|
|
19
|
-
|
16
|
+
## Installation
|
20
17
|
|
21
18
|
$ gem install docora
|
22
19
|
|
23
20
|
## Usage
|
24
21
|
|
25
|
-
|
22
|
+
docora setup # in your project
|
23
|
+
docora up # start the docker containers
|
26
24
|
|
27
25
|
## Development
|
28
26
|
|
29
|
-
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
27
|
+
Coming soon...
|
32
28
|
|
33
29
|
## Contributing
|
34
30
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
36
|
-
|
31
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/dakotalightning/docora.
|
37
32
|
|
38
33
|
## License
|
39
34
|
|
40
35
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
data/lib/docora/cli.rb
CHANGED
@@ -106,6 +106,12 @@ module Docora
|
|
106
106
|
"2.4.1"
|
107
107
|
]
|
108
108
|
|
109
|
+
if File.exists?('.gitignore')
|
110
|
+
append_to_file ".gitignore", "#{project}/"
|
111
|
+
else
|
112
|
+
create_file ".gitignore", "#{project}/"
|
113
|
+
end
|
114
|
+
|
109
115
|
if File.exists?('.ruby-version')
|
110
116
|
ruby_version = File.read('.ruby-version').strip
|
111
117
|
elsif File.exists?('Gemfile')
|
@@ -218,7 +224,7 @@ module Docora
|
|
218
224
|
def docker_running?
|
219
225
|
version = run('docker version', capture: true, verbose: false)
|
220
226
|
docker_version = YAML.load(version)
|
221
|
-
abort_with "Please make sure docker is running" unless docker_version["
|
227
|
+
abort_with "Please make sure docker is running" unless docker_version["Server"]
|
222
228
|
end
|
223
229
|
|
224
230
|
def ask(question, answer_type, &details)
|
data/lib/docora/version.rb
CHANGED