Skip to content

Commit a36496e

Browse files
committed
feat: add docker installation command and setup function in install.sh
1 parent 702b41a commit a36496e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/COMMANDS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ bash install.sh pe 8.4 # Short version
2727
```bash
2828
bash install.sh lazydocker # Install lazydocker
2929
bash install.sh ld # Short version
30+
31+
bash install.sh docker # Install Docker & Docker Compose (with optional lazydocker)
3032
```
3133

3234
## 🌍 Global Development Environment
@@ -87,6 +89,7 @@ This fixes the issue when downgrading from MariaDB to MySQL.
8789
| `php` | - | Install PHP |
8890
| `php_extension` | `pe` | Install PHP extensions |
8991
| `lazydocker` | `ld` | Install lazydocker |
92+
| `docker` | - | Install Docker & Docker Compose (with optional lazydocker) |
9093
| `global_dev` | `gd` | Global dev environment |
9194
| `zabbix_server` | `zs` | Install Zabbix Server |
9295
| `zabbix_client` | `zc` | Install Zabbix Agent |

install.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ lazydocker() {
5151
bash lazydocker.sh
5252
}
5353

54+
docker_setup() {
55+
cd "$CURRENT_DIR/setup/develop" || exit
56+
bash docker.sh
57+
}
58+
5459
global_dev_setup() {
5560
cd "$CURRENT_DIR/setup/packages" || exit
5661
if [ "${2:-}" = "-f" ] || [ "${2:-}" = "--force" ]; then
@@ -111,6 +116,7 @@ usage() {
111116
echo ' php Install php'
112117
echo ' php_extension Install php extension'
113118
echo ' lazydocker Install lazydocker'
119+
echo ' docker Install Docker & Docker Compose (with optional lazydocker)'
114120
echo ' global_dev Setup NVM, NPM, Yarn, ZSH globally for all users'
115121
echo ' add_dev_user Add user(s) to developers group for NVM/NPM/Yarn access'
116122
echo ' zabbix_server Install Zabbix Server (auto-detect Nginx/Apache)'
@@ -161,6 +167,7 @@ usage() {
161167
echo " bash $0 hostname"
162168
echo " bash $0 hostname myserver"
163169
echo " bash $0 fix_mysql"
170+
echo " bash $0 docker"
164171
echo ''
165172
}
166173

@@ -189,6 +196,10 @@ case "${1:-}" in
189196
lazydocker
190197
;;
191198

199+
docker)
200+
docker_setup
201+
;;
202+
192203
global_dev | gd)
193204
global_dev_setup "$@"
194205
;;

0 commit comments

Comments
 (0)