我正在尝试通过自己的计算机运行锯齿供应链,以更好地了解环境。但是,运行
后,我遇到了一个问题 docker-compose up
git clone https://github.com/hyperledger/sawtooth-supply-chain
cd sawtooth-supply-chain
git diff 50c404c >bionic.patch
patch --dry-run -R -p1 <bionic.patch
patch -R -p1 <bionic.patch
sudo docker-compose up
我现在在步骤9/11遇到错误,这是splice_JSON文件构建
Step 9/11 : RUN mkdir /node_deps && bin/splice_json asset_client/package.json fish_client/package.json server/package.json > /node_deps/package.json && cd /node_deps && npm install && cd - && ln -s /node_deps/node_modules asset_client/ && ln -s /node_deps/node_modules fish_client/ && ln -s /node_deps/node_modules server/
---> Running in ed3fb485568e
/bin/sh: 1: bin/splice_json: Permission denied
Service 'shell' failed to build: The command '/bin/sh -c mkdir /node_deps && bin/splice_json asset_client/package.json fish_client/package.json server/package.json > /node_deps/package.json && cd /node_deps && npm install && cd - && ln -s /node_deps/node_modules asset_client/ && ln -s /node_deps/node_modules fish_client/ && ln -s /node_deps/node_modules server/' returned a non-zero code: 126
我尝试执行chmod 777 / bin / splice_json并在提升的平台上运行git bash
感谢您的协助
答案 0 :(得分:0)
运行patch
可能已从./bin
下的一个或多个文件中删除了可执行权限。在运行docker-compose
之前,请恢复所有./bin/*
文件的执行权限:
chmod +x ./bin/*