This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
forked from DevinciHQ/universal-docker-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ahoy.yml
113 lines (99 loc) · 2.46 KB
/
.ahoy.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
ahoyapi: v1
version: 0.0.0
commands:
help:
usage: Development environment setup help
cmd: |
echo 'For a full docker development environment setup use the following command:
ahoy setup
For a step by step setup use the following commands in order:
ahoy deps
ahoy virtualbox
ahoy docker
ahoy nfs
ahoy machine'
mac:
usage: Mac setup commands
import: .ahoy/mac.ahoy.yml
debian:
usage: Debian setup commands
import: .ahoy/debian.ahoy.yml
arch:
usage: Arch Linux setup commands
import: .ahoy/arch.ahoy.yml
os:
usage: Checks the Operating System
cmd: |
os=""
if [ "$(uname)" == "Darwin" ]; then
os="mac"
elif [ "$(uname)" == "Linux" ]; then
if [ $(cat /etc/*release|grep -iE '(debian|ubuntu)'|wc -l) -gt 0 ]; then
os="debian"
elif [ $(cat /etc/*release|grep -iE '(arch)'|wc -l) -gt 0 ]; then
os="arch"
fi
fi
echo $os
shell:
usage: Prints the default shell
cmd: |
echo "$(echo $SHELL|rev|cut -d/ -f1|rev)"
rcfile:
usage: Prints the rcfile path of the default shell
cmd: |
echo "$HOME/.$(ahoy shell)rc"
setup:
usage: Setup the development environment
cmd: |
if [ "$(ahoy os)" != "" ]; then
ahoy $(ahoy os) setup {{args}}
else
echo "[Error] This OS is not supported."
exit 1
fi
deps:
usage: Install dependencies
cmd: |
if [ "$(ahoy os)" != "" ]; then
ahoy $(ahoy os) deps {{args}}
else
echo "[Error] This OS is not supported."
exit 1
fi
virtualbox:
usage: Install Virtualbox
cmd: |
if [ "$(ahoy os)" != "" ]; then
ahoy $(ahoy os) virtualbox {{args}}
else
echo "[Error] This OS is not supported."
exit 1
fi
docker:
usage: Install Docker
cmd: |
if [ "$(ahoy os)" != "" ]; then
ahoy $(ahoy os) docker {{args}}
else
echo "[Error] This OS is not supported."
exit 1
fi
nfs:
usage: Install NFS
cmd: |
if [ "$(ahoy os)" != "" ]; then
ahoy $(ahoy os) nfs {{args}}
else
echo "[Error] This OS is not supported."
exit 1
fi
machine:
usage: Create the "default" Docker machine
cmd: |
if [ "$(ahoy os)" != "" ]; then
ahoy $(ahoy os) machine {{args}}
else
echo "[Error] This OS is not supported."
exit 1
fi