forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-toolbox.rb
56 lines (50 loc) · 1.99 KB
/
docker-toolbox.rb
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cask 'docker-toolbox' do
version '18.09.3'
sha256 '8b0832504330ef3273c53c9ce77e69928f6b4a1ad2cba9155d2a4dc92d127c02'
# github.com/docker/toolbox was verified as official when first introduced to the cask
url "https://github.com/docker/toolbox/releases/download/v#{version}/DockerToolbox-#{version}.pkg"
appcast 'https://github.com/docker/toolbox/releases.atom'
name 'Docker Toolbox'
homepage 'https://www.docker.com/products/docker-toolbox'
depends_on cask: 'virtualbox'
pkg "DockerToolbox-#{version}.pkg",
choices: [
{
'choiceIdentifier' => 'choiceDockerComposeCLI',
'choiceAttribute' => 'selected',
'attributeSetting' => 1,
},
{
'choiceIdentifier' => 'choiceDockerQuickstartTerminalAPP',
'choiceAttribute' => 'selected',
'attributeSetting' => 1,
},
{
'choiceIdentifier' => 'choiceKitematicAPP',
'choiceAttribute' => 'selected',
'attributeSetting' => 1,
},
{
'choiceIdentifier' => 'choiceVBox',
'choiceAttribute' => 'selected',
'attributeSetting' => 0,
},
{
'choiceIdentifier' => 'choiceBoot2DockerISO',
'choiceAttribute' => 'selected',
'attributeSetting' => 1,
},
]
postflight do
set_ownership '~/.docker'
end
uninstall pkgutil: [
'io.boot2dockeriso.pkg.boot2dockeriso',
'io.docker.pkg.docker',
'io.docker.pkg.dockercompose',
'io.docker.pkg.dockermachine',
'io.docker.pkg.dockerquickstartterminalapp',
'io.docker.pkg.kitematicapp',
]
zap trash: '~/.docker'
end