Skip to content

Commit

Permalink
Add ash to alpine conatainers
Browse files Browse the repository at this point in the history
  • Loading branch information
taurthil committed Sep 9, 2019
1 parent 0d87a34 commit 482f7f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mage2docker.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ _mage2docker() {
compadd $(_docker_get_container_name)
;;
command)
compadd "$@" bash-www bash logs magento mage mage-cache mage-reindex mage-di mage-upgrade mage-report mage-log grunt watch rename rm restart stop inspect top mysqldump mysql ip vst varnish-purge redis-flushall
compadd "$@" ash ash-magento bash-www bash logs magento mage mage-cache mage-reindex mage-di mage-upgrade mage-report mage-log grunt watch rename rm restart stop inspect top mysqldump mysql ip vst varnish-purge redis-flushall
;;
options)
case $words[3] in
Expand All @@ -77,6 +77,12 @@ mage2docker () {
logs)
docker logs -f $1
;;
ash)
docker exec -it -e LINES=$(tput lines) -e COLUMNS=$(tput cols) -u root $1 ash -l
;;
ash-magento)
docker exec -it -e LINES=$(tput lines) -e COLUMNS=$(tput cols) -u magento $1 ash -l
;;
bash)
docker exec -it -e LINES=$(tput lines) -e COLUMNS=$(tput cols) -u root $1 bash
;;
Expand Down

0 comments on commit 482f7f8

Please sign in to comment.