/blt
Last active
June 24, 2024 17:11
Revisions
-
Flower7C3 revised this gist
Jun 24, 2024 . 4 changed files with 10 additions and 3 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/usr/bin/env bash ## save as /usr/local/bin/blt and run `chmod +x /usr/local/bin/blt` docker run --platform=linux/amd64 --rm --interactive --tty \ -v "$PWD":/app -w /app \ cbcms/blt $@ This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## save as /usr/local/bin/composer and run `chmod +x /usr/local/bin/composer` docker run --platform=linux/amd64 --rm --interactive --tty \ --volume $PWD:/app \ --volume ${COMPOSER_HOME:-$HOME/.composer}:/tmp \ composer $@ This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,6 @@ ## save as /usr/local/bin/drush and run `chmod +x /usr/local/bin/drush` docker run --platform=linux/amd64 --rm --interactive --tty \ -v "$PWD":/app -w /app \ drush/drush $@ This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,6 +18,6 @@ done set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters docker run --platform=linux/amd64 --rm --interactive --tty \ -v "$PWD":/usr/src/myapp -w /usr/src/myapp \ php:$version php $@ -
Flower7C3 created this gist
Jun 24, 2024 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/usr/bin/env bash ## save as /usr/local/bin/composer and run `chmod +x /usr/local/bin/composer` docker run --rm --interactive --tty \ --volume $PWD:/app \ --volume ${COMPOSER_HOME:-$HOME/.composer}:/tmp \ composer $@ This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/usr/bin/env bash ## save as /usr/local/bin/drush and run `chmod +x /usr/local/bin/drush` docker run --rm --interactive --tty \ -v "$PWD":/app -w /app \ drush/drush $@ This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ #!/usr/bin/env bash ## save as /usr/local/bin/php and run `chmod +x /usr/local/bin/php` POSITIONAL_ARGS=() version="8.2" while [ $# -gt 0 ]; do case "$1" in -V=*) version="${1#*=}" ;; *) POSITIONAL_ARGS+=("$1") # save positional arg ;; esac shift done set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters docker run --rm --interactive --tty \ -v "$PWD":/usr/src/myapp -w /usr/src/myapp \ php:$version php $@