+ heroku docker

This commit is contained in:
felegy
2022-06-10 15:06:45 +02:00
parent 039d95726c
commit e68f6ff23d
17 changed files with 5478 additions and 114 deletions

View File

@@ -1,11 +1,47 @@
Set-Alias -Name d-composer -Value "docker-compose run --rm --entrypoint -Value composer wordpress"
Set-Alias -Name d-wp -Value "docker-compose run --rm --entrypoint -Value wp wordpress"
Set-Alias -Name d-heroku -Value "docker-compose run --rm --entrypoint -Value heroku wordpress"
Set-Alias -Name d-bash -Value "docker-compose run --rm --entrypoint -Value bash wordpress -l"
Set-Alias -Name dc-build -Value "docker-compose build --pull --no-cache"
Set-Alias -Name dc-init -Value "docker-compose run --rm --entrypoint '.dev/init.sh' wordpress"
Set-Alias -Name dc-up -Value "docker-compose up -d"
Set-Alias -Name dc-down -Value "docker-compose down"
Set-Alias -Name dc-destroy -Value "docker-compose down -v"
Set-Alias -Name g-clean -Value "git clean -xd"
Set-Alias -Name g-mk-deploy -Value "git archive -o deploy.tar.gz HEAD"
Set-Alias d $(Get-Command docker).Source
Set-Alias dc $(Get-Command docker-compose).Source
Set-Alias g $(Get-Command git).Source
function d-composer {
dc run --rm wordpress composer $args
}
function d-wp {
dc run --rm wordpress wp $args
}
function d-heroku {
dc run --rm --entrypoint=heroku wordpress $args
}
function d-bash {
dc run --rm --entrypoint=bash wordpress -l $args
}
function dc-build {
dc build --pull --no-cache $args
}
function dc-init {
dc run --rm --entrypoint '.dev/init.sh' wordpress $args
}
function dc-up {
dc up -d $args
}
function dc-down {
dc down $args
}
function dc-destroy {
dc down -v $args
}
function g-clean {
g clean -xd $args
}
function g-mk-deploy {
g archive -o deploy.tar.gz HEAD
}