feat(installer): 初始化了脚本

This commit is contained in:
李东云
2023-03-22 11:06:10 +08:00
parent 0dcb2ba1bf
commit b092562e9a
2 changed files with 3 additions and 11 deletions

10
scripts/docker-env.sh Normal file → Executable file
View File

@@ -1,11 +1,3 @@
#!/usr/bin/env sh
docker run \
--pull always \
-ti --rm --name "{{project_name}}" \
--privileged -u root \
-w "/srv/www" \
-v "$(pwd)":/srv/www \
-v ~/.ssh:/root/.ssh \
-p {{port}}:9501 \
harbor.luxcreo.cn/library/hyperf:8.1-swoole /bin/ash
sh -c "$(pwd)"/installer/resources/scripts/docker-env.sh

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env sh
docker run --rm -it \
-v $(pwd):/app -e "GIT_AUTHOR_NAME=ch4o5" -e "EMAIL=dongyun.li@luxcreo.ai" \
detouched/standard-version:latest $1
-v "$(pwd)":/app -e "GIT_AUTHOR_NAME=$(git config user.name)" -e "EMAIL=$(git config user.email)" \
detouched/standard-version:latest "$1"