Browse Source

Updating docs

Alax Alves 6 years ago
parent
commit
25707417b5
2 changed files with 13 additions and 2 deletions
  1. 11 0
      README.md
  2. 2 2
      Rakefile

+ 11 - 0
README.md

@@ -374,6 +374,17 @@ bundle install
 bundle exec rake test
 ```
 
+or if you'd rather use docker just run:
+```bash
+docker run -it --name shopify_api -v $PWD:/shopify_api -w="/shopify_api" ruby:2.4.6 bundle install
+docker exec -it shopify_api bash
+```
+
+or you can even use our automated rake task for docker:
+```bash
+bundle exec rake docker
+```
+
 ## Additional Resources
 
 * [API Reference](https://help.shopify.com/api/reference)

+ 2 - 2
Rakefile

@@ -39,8 +39,8 @@ Rake::RDocTask.new do |rdoc|
 end
 
 task :docker do
-  cmd = "docker-compose up -d && docker exec -i -t shopify_api bash" 
+  cmd = "docker-compose up -d && docker exec -i -t shopify_api bash"
   unless system(cmd, err: File::NULL)
-    abort "Something went wrong, do you have Docker and Docker-Compose installed?"
+    abort("Something went wrong, do you have Docker and Docker-Compose installed?")
   end
 end