Skip to content

Instantly share code, notes, and snippets.

---
#
# The network connection profile provides client applications the information about the target
# blockchain network that are necessary for the applications to interact with it. These are all
# knowledge that must be acquired from out-of-band sources. This file provides such a source.
#
name: "iot-logistic"
#
# Any properties with an "x-" prefix will be treated as application-specific, exactly like how naming
@Role911
Role911 / network-config.yaml
Created September 24, 2019 06:22
HP Node SDK network-config.yaml
---
#
# The network connection profile provides client applications the information about the target
# blockchain network that are necessary for the applications to interact with it. These are all
# knowledge that must be acquired from out-of-band sources. This file provides such a source.
#
name: "iot-logistic"
#
# Any properties with an "x-" prefix will be treated as application-specific, exactly like how naming
@Role911
Role911 / start-network.sh
Created September 4, 2019 15:39
start network
#!/bin/bash
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
# Remove unwanted docker containers
function dkcl(){
@Role911
Role911 / docker-compose.yaml
Created September 4, 2019 15:38
Configuration of network components
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
# error issues : if peer dont go up, it problem with dns and host "reinstall docker"
# NOTE FOR PRIVATE DATA : each peer must have own defined couch that depend on him
# NOTE FOR PRIVATE DATA : define env. var CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=nameofcouch and CORE_LEDGER_STATE_STATEDATABASE=CouchDB
# if you don't have upside setup, all peers have the same ledger state
version: '2'
@Role911
Role911 / base.yaml
Created September 4, 2019 15:05
Configuration for peers
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
services:
peer-base:
image: hyperledger/fabric-peer
environment: