5 Star 26 Fork 6

xiaoyu / dnmp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
bashrc.sample 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
xiaoyu 提交于 2023-05-26 10:19 . update: 去除node
# 存放位置 ~/.bashrc
# ------------------------ start ------------------------
env=$HOME/".env"
if [ -d ${env} ]; then
for file in `ls ${env}`
do
if [ -f ${env}"/"${file} ]
; then
. ${env}"/"${file}
fi
done
fi
# ------------------------ end ------------------------
# 存放位置 ~/.env/php.sh
# ------------------------ start ------------------------
php72()
{
tty=
tty -s && tty=--tty
docker run \
$tty \
--interactive \
--rm \
--volume $PWD:/var/www/html:rw \
--workdir /var/www/html \
dnmp_php72 php "$@"
}
php73()
{
tty=
tty -s && tty=--tty
docker run \
$tty \
--interactive \
--rm \
--volume $PWD:/var/www/html:rw \
--workdir /var/www/html \
dnmp_php73 php "$@"
}
php74()
{
tty=
tty -s && tty=--tty
docker run \
$tty \
--interactive \
--rm \
--volume $PWD:/var/www/html:rw \
--workdir /var/www/html \
dnmp_php74 php "$@"
}
php80()
{
tty=
tty -s && tty=--tty
docker run \
$tty \
--interactive \
--rm \
--volume $PWD:/var/www/html:rw \
--workdir /var/www/html \
dnmp_php80 php "$@"
}
php81()
{
tty=
tty -s && tty=--tty
docker run \
$tty \
--interactive \
--rm \
--volume $PWD:/var/www/html:rw \
--workdir /var/www/html \
dnmp_php80 php "$@"
}
# ------------------------ end ------------------------
Docker
1
https://gitee.com/xiaoyucc521/dnmp.git
git@gitee.com:xiaoyucc521/dnmp.git
xiaoyucc521
dnmp
dnmp
main

搜索帮助