add(any/aliases-dc): Init
This commit is contained in:
parent
8373c1d544
commit
6542bb310d
5
any/aliases-dc/.gitignore
vendored
Normal file
5
any/aliases-dc/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
*
|
||||
!*.sh
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!PKGBUILD
|
5
any/aliases-dc/Makefile
Normal file
5
any/aliases-dc/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
build:
|
||||
makepkg --sign --force
|
||||
|
||||
install:
|
||||
makepkg --sign --force --install
|
15
any/aliases-dc/PKGBUILD
Normal file
15
any/aliases-dc/PKGBUILD
Normal file
@ -0,0 +1,15 @@
|
||||
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
|
||||
|
||||
pkgname=aliases-dc
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Markus Pesch's personal docker-compose aliases"
|
||||
license=('GPL')
|
||||
arch=('any')
|
||||
source=("docker-compose-aliases.sh")
|
||||
sha256sums=('999cb7bf30823487f23d2441507ee77ea3a7ff2a06e40b2087f2fe5dc4b134c9')
|
||||
depends=("docker-compose")
|
||||
|
||||
package() {
|
||||
install -D --mode=0755 --target-directory=${pkgdir}/etc/profile.d ${srcdir}/docker-compose-aliases.sh
|
||||
}
|
9
any/aliases-dc/docker-compose-aliases.sh
Normal file
9
any/aliases-dc/docker-compose-aliases.sh
Normal file
@ -0,0 +1,9 @@
|
||||
# Aliases for docker-compose
|
||||
alias dcd='docker-compose down' # Stop and Remove containers
|
||||
alias dcl='docker-compose logs' # Print all logs from the containers defined by the compose file on stdout
|
||||
alias dclf='docker-compose logs --follow' # Print all and new logs from the containers defined by the compose file on stdout
|
||||
alias dcp='docker-compose ps' # List all running containers
|
||||
alias dcr='docker-compose rm --force' # Remove all defined containers
|
||||
alias dcs='docker-compose stop' # Stop all defined containers
|
||||
alias dcud='docker-compose up -d' # Start all defined containers
|
||||
alias dcudb='docker-compose up -d --build' # Start all defomed containers and build them from source if possible
|
Loading…
Reference in New Issue
Block a user