build(scripts): 添加了脚本文件

This commit is contained in:
2022-04-24 18:02:04 +08:00
parent 34a1958619
commit dc349d7f16
2 changed files with 17 additions and 0 deletions

8
scripts/build-image.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env sh
docker login harbor.luxcreo.cn -u php -p fTr6oVvqqdzVlYgnZhRPPAP54u7SmqGA
image_name=harbor.luxcreo.cn/php/composer-template
docker build --tag $image_name .
#docker push $image_name
#docker push ${image_name}-dev

9
scripts/docker-env.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env sh
docker run \
--pull always \
-ti --rm --name "hyperf-saml" \
-w "/srv/www" \
-v "$(pwd)":/srv/www \
-v ~/.ssh:/root/.ssh \
harbor.luxcreo.cn/library/hyperf:8.0-swoole /bin/ash