-
Notifications
You must be signed in to change notification settings - Fork 8
/
aliases.sh
executable file
·43 lines (39 loc) · 1.64 KB
/
aliases.sh
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
#!/bin/sh
# Shortcut to create a new stack
alias nxcreate='bash -c "$(curl -fsSL https://raw.githubusercontent.com/nuxeo-sandbox/nuxeo-presales-docker/master/bootstrap.sh)"'
# Example aliases for working with docker compose and Nuxeo
alias dcb='docker compose build'
alias dcdn='docker compose down'
alias dce='docker compose exec'
alias dck='docker compose kill'
alias dcl='docker compose logs'
alias dclf='docker compose logs -f'
alias dco='docker compose'
alias dcps='docker compose ps'
alias dcpull='docker compose build --pull'
alias dcr='docker compose run'
alias dcrestart='docker compose restart'
alias dcrm='docker compose rm'
alias dcstart='docker compose start'
alias dcstop='docker compose stop'
alias dcup='docker compose up'
alias dcupd='docker compose up -d'
# QOL aliases to make managing the stack easier
alias stack='make -e'
alias nx='stack SERVICE=nuxeo'
# See https://github.com/nuxeo-sandbox/nuxeo-presales-docker/issues/10
alias nxlogs='nx logs'
alias nxl='nx exec COMMAND="tail -f /var/log/nuxeo/server.log"'
alias nxbash='nx exec COMMAND=bash'
alias opensearch='stack SERVICE=opensearch'
alias mongodb='stack SERVICE=mongo'
alias mongo='stack exec SERVICE=mongo COMMAND=mongosh'
alias nxpull='docker compose build --pull'
# Quick access to nuxeoctl
alias nxctl-status='nx exec COMMAND="nuxeoctl status"'
alias nxctl-stop='nx exec COMMAND="nuxeoctl stop"'
alias nxctl-start='nx exec COMMAND="nuxeoctl start"'
alias nxctl-restart='nx exec COMMAND="nuxeoctl restart"'
alias nxctl-mp-list='nx exec COMMAND="nuxeoctl mp-list"'
alias nxctl-showconf='nx exec COMMAND="nuxeoctl showconf"'
alias nxctl-tail='nx exec COMMAND="tail -f /var/log/nuxeo/server.log"'