github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/unit-test/docker-compose.yml (about) 1 # Copyright IBM Corp. All Rights Reserved. 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 # 5 6 vp: 7 image: hyperledger/fabric-peer 8 log_driver: none 9 expose: 10 - 7051 11 - 7052 12 environment: 13 - CORE_PEER_ADDRESSAUTODETECT=true 14 volumes: 15 - /var/run/docker.sock:/var/run/docker.sock 16 17 unit-tests: 18 image: hyperledger/fabric-testenv 19 links: 20 - vp 21 - couchdb 22 environment: 23 - UNIT_TEST_PEER_IP=vp 24 - GO_LDFLAGS 25 - OUTPUT 26 - TEST_PKGS=${TEST_PKGS} 27 - CORE_VM_DOCKER_ATTACHSTDOUT=true 28 - JOB_TYPE=${JOB_TYPE} 29 volumes: 30 - /var/run/docker.sock:/var/run/docker.sock 31 - ${GOPATH}/src/github.com/hyperledger/fabric:/opt/gopath/src/github.com/hyperledger/fabric 32 command: ./unit-test/run.sh 33 34 couchdb: 35 container_name: couchdb 36 image: hyperledger/fabric-couchdb 37 log_driver: none 38 ports: 39 - "5984:5984" 40