Skip to content

Commit

Permalink
添加fabric-ca-server的docker-compose文件。
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadigan committed Jul 12, 2018
1 parent 2150cf2 commit 0cbad5b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
15 changes: 15 additions & 0 deletions config/docker-compose-caserver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
fabric-ca-server:
image: hyperledger/fabric-ca
container_name: fabric-ca-server
ports:
- "7054:7054"
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
volumes:
- "./fabric-ca-server:/etc/hyperledger/fabric-ca-server"
command: sh -c 'fabric-ca-server start -b admin:caserver'
28 changes: 27 additions & 1 deletion deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,30 @@ curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compos
chmod +x /usr/local/bin/docker-compose
```

##
## 拉取docker镜像

下载配置文件

```
git clone https://github.com/Hadigan/fangtu.git
```

获取fabric二进制文件以及docker镜像

```
./fangtu/pull-images.sh
```

可以看见在当前文件夹下多了一个bin文件夹
把bin文件夹内容移到$GOPATH/bin/下,这样子就不用在修改环境变量了
如果$GOPATH/bin文件夹不存在就手动创建

```
mv ./bin/* /root/go/bin/
```






0 comments on commit 0cbad5b

Please sign in to comment.