-
Notifications
You must be signed in to change notification settings - Fork 5
/
Rakefile
32 lines (27 loc) · 870 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'config/application'
Rails.application.load_tasks
desc "update code from the git repository"
task :update do
puts "updating logjam from remote repository"
system "git pull && (cd vendor/logjam; git pull origin master)"
end
namespace :docker do
desc "build docker image"
task :build do
system "docker build -t=stkaes/logjamdemo ."
end
desc "run the docker container"
task :run do
system "docker run --rm -i -t -p 3000:3000 -p 8080:8080 --name logjam stkaes/logjamdemo"
end
end
namespace :test do
namespace :db do
desc "start test database"
task :start do
system "docker run --rm -p 27018:27017 percona/percona-server-mongodb mongod"
end
end
end