소스 검색

Creating rake task to abstract docker development

Alax Alves 6 년 전
부모
커밋
4b64568b43
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      Rakefile

+ 7 - 0
Rakefile

@@ -37,3 +37,10 @@ Rake::RDocTask.new do |rdoc|
   rdoc.rdoc_files.include('README*')
   rdoc.rdoc_files.include('lib/**/*.rb')
 end
+
+task :docker do
+  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?"
+  end
+end