add(any/aliases-dc): Init

This commit is contained in:
Markus Pesch 2020-03-08 16:30:59 +01:00
parent 8373c1d544
commit 6542bb310d
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
4 changed files with 34 additions and 0 deletions

5
any/aliases-dc/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*
!*.sh
!.gitignore
!Makefile
!PKGBUILD

5
any/aliases-dc/Makefile Normal file
View File

@ -0,0 +1,5 @@
build:
makepkg --sign --force
install:
makepkg --sign --force --install

15
any/aliases-dc/PKGBUILD Normal file
View 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
}

View 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