Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用依赖库镜像地址 #100

Open
jingjingxyk opened this issue Mar 29, 2023 · 0 comments
Open

使用依赖库镜像地址 #100

jingjingxyk opened this issue Mar 29, 2023 · 0 comments

Comments

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Mar 29, 2023

使用依赖库镜像地址

方式一:

php prepare.php   +ds +inotify +apcu +protobuf --with-download-mirror-url=https://swoole-cli.jingjingxyk.com

方式二:

执行这个脚本, 原理: 自动下载 https://swoole-cli.jingjingxyk.com/all-archive.zip

sh sapi/download-box/download-box-get-archive-from-server.sh

方式三:

借助容器分发

sh sapi/download-box/download-box-get-archive-from-container.sh
# 容器分发原理介绍
container_id=$(docker create $IMAGE) # returns container ID
docker cp $container_id:/usr/share/nginx/html/extensions extensions
docker cp $container_id:/usr/share/nginx/html/libraries libraries
docker rm $container_id

构建依赖库镜像参考: https://github.com/swoole/swoole-cli/tree/main/sapi/download-box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant