forked from ManageIQ/font-fabulous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (27 loc) · 882 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
require 'bundler/gem_tasks'
namespace :docker do
desc 'Initialize the docker container'
task :init do
system 'docker build . -t font-fabulous'
orphaned = `docker images --filter "dangling=true" -q`
system "docker rmi #{orphaned}" if orphaned != ""
end
desc 'Compile the SVG icons into the font'
task :compile => :init do
system 'docker run --name font-fabulous -t font-fabulous fontcustom compile'
system 'docker cp font-fabulous:/usr/src/font-fabulous ..'
system 'docker rm font-fabulous'
end
desc 'Enter into the docker container with an interactive shell'
task :debug => :init do
system 'docker run --rm -ti font-fabulous bash'
end
end
desc 'Compile the SVG icons into the font'
task :compile do
system 'fontcustom compile'
end
desc 'Clean up the manifest file'
task :cleanup do
system 'rm -f .fontcustom-manifest.json'
end