In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to build composer quickly". In daily operation, I believe many people have doubts about how to build composer quickly. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the questions of "how to build composer quickly". Next, please follow the editor to study!
Docker builds an intranet composer satis code repository
Build the code warehouse of composer intranet
Pull composer/satis image
Docker pull composer/satis
Configure composer
This step skips the directory structure ├── auth.json ├── cache │ ├── files │ ├── repo └── vcs ├── └── config.jsoncomposer.json {} config.json {"config": {"secure-http": false, "optimize-autoloader": false, "preferred-install": "dist", "sort-packages": true "platform": {}}, "repositories": {"packagist": {"type": "composer", "url": "https://mirrors.aliyun.com/composer/"}
Build module extension
Directory structure ├── config.json ├── public │ ├── dist │ │ ├── bpc │ │ └── zhanghuizong │ ├── include │ │ └── all$f3811758e4611a4dfc1a96f4d1c06da09cdbe199.json │ ├── index.html │ └── packages.json satis.shconfig.json {"name": "composer_satis_test", "homepage": " "repositories": [{"type": "git", "name": "zhanghuizong/composer_satis_test", "url": "https://gitee.com/zhanghuizong/composer_satis_test.git"}]," require ": {" zhanghuizong/composer_satis_test ":" * "} "archive": {"directory": "dist", "format": "tar", "skip-dev": true, "prefix-url": "http://local.satis.com"}} keyword description repositories specifies where to get packages require specifies which packages to get If you want to get all the packages, use require-all: truearchive.directoryoutput-dir even though build's output directory archive.format is optional, default: zip, and supports two compressed formats: zip,tar. Archive.skip-dev is optional when build is used. Default is false. When enabled, (true) satis does not create an optional download location for the branch to download archive.prefix-url. The home page (from satis.json) is the directory official website description by default: https://docs.phpcomposer.com/articles/handling-private-packages-with-satis.html
GitHub code: https://github.com/composer/satis
Shell script
Satisfication.shrunchaugh mnt/d/workspaces/docker-config/composer/:/composer composer/satis build / satis.json / build "$@" / config.json:/satis.json:ro\-v "$(pwd)" / config.json:/satis.json:ro\-v "$(pwd)" / public/:/build\-v / mnt/d/workspaces/docker-config/composer/:/composer\ composer/satis build / satis.json / build "$@"
Increase shortcut acc
Edit the file: vi ~ / .bashrc
Alias satis='docker run-rm-init-it-v "$(pwd)" / config.json:/satis.json:ro-v "$(pwd)" / public/:/build-v / mnt/d/workspaces/docker-config/composer/:/composer composer/satis build / satis.json / build'
Usage
# build all code repository modules sh satis.sh# install specified module sh satis.sh zhanghuizong/composer_satis_test
Be careful
To specify the module installation, the name field must be configured in the repositories node, which corresponds to the require node configuration.
Nginx configuration
Server {listen 80; server_name local.satis.com; root "/ data/httpd/docker-config/composer_satis/test/public/"; location / {index index.php index.html;} location ~\ .php (. *) ${fastcgi_pass php:9000; fastcgi_index index.php Fastcgi_split_path_info ^ ((? U). +\ .php) (/?. +) $; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params }} at this point, the study on "how to build composer quickly" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.