git lfs部署及报错处理
先贴上 push large file 时的报错信息吧:
batch response: Authentication required: Authorization error: http://gerrit_site/lfstest/info/lfs/objects/batch
Check that you have proper access to the repository
下面内容是部署服务解决该问题的方法步骤:
一. 服务配置部署
编写docker-compose.yaml
version: "3.7"networks:default:external:name: gerritservices:nginx:image: nginxhostname: nginxcontainer_name: nds-nginxrestart: alwaysprivileged: truecap_drop:- ALLcap_add:- CHOWN- SETGID- SETUID- NET_BIND_SERVICEports:- "80:80"volumes:- "/etc/localtime:/etc/localtime:ro"- "./conf.d:/etc/nginx/conf.d"gerrit:image: gerritcodereview/gerrit:3.10.1hostname: gerritcontainer_name: nds-gerritrestart: alwaysprivileged: trueuser: rootvolumes:- /etc/localtime:/etc/localtime:roenvironment:- CANONICAL_WEB_URL=http://{your_site}ports:- "29418:29418"- "8080:8080"
./
├── conf.d