-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.bash_aliases
46 lines (36 loc) · 1.63 KB
/
.bash_aliases
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
###
# Start - docker-lamp commands
###
# Wrapper.
alias docker-lamp='/srv/git/docker-lamp/docker-lamp'
# dl-start - Starts docker-lamp.
# Use it inside the project directory where the .env is.
alias dl-start='docker-lamp start'
# dl-stop - Stops docker-lamp.
# Removes all container and volumes except the database volume.
# Switching the database between MariaDB and MySQL should not be done here.
# Use it inside the project directory where the .env is.
alias dl-stop='docker-lamp stop'
# dl-down - Stops docker-lamp.
# Saves all databases to initDB and removes the database volume.
# Use it inside the project directory where the .env is.
# Is required if the database is to be switched between MariaDB and MySQL.
alias dl-down='docker-lamp shutdown'
# dl-cli - Command to call up the terminal of the respective container.
# Use it inside the project directory where the .env is.
alias dl-cli='docker-lamp cli'
# dl-restart - Stops and starts docker-lamp in one go.
# Use it inside the project directory where the .env is.
alias dl-restart='docker-lamp restart'
# dl-update - Updates the images of docker-lamp.
# Use it inside the project directory where the .env is.
alias dl-update='docker-lamp update-images'
# dl-clear - Deletes the obsolete docker-lamp images after the update.
# Use it inside the project directory where the .env is.
alias dl-clear='docker-lamp delete-obsolete-images'
# dl-init - Switches to the project directory before starting docker-lamp.
# If the project directory is different from '/srv/', this must be adjusted here.
alias dl-init='echo "- Change directory to /srv/"; cd /srv/; dl-start'
###
# End - docker-lamp commands
###