dovetail-cli

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2019 License: BSD-3-Clause

README

Dovetail cli

Build Status

What is dovetail cli?

Dovetail cli is a command line tool that enables smart contract generation for different blockchain technologies from the same model.

This allows definition of your smart contracts on a model driven approach and abstraction of your smart contract logic from the low level code, improving visibility, auditability and reduce errors.

Installation

For step by step instructions on how to setup Project Dovetail™ cli environment, please go to the installation section on the documentation page

Build dovetail cli from source

Install Go version 1.11.x and set GOPATH environment variable. Then install and test it as follows:

export PATH=${GOPATH}/bin:${PATH}
go get -u -d github.com/TIBCOSoftware/dovetail-cli
cd ${GOPATH}/src/github.com/TIBCOSoftware/dovetail-cli
make

If you want to just install the cli and not run any tests use "make install" command instead of "make".

If you see test errors, please refer the Troubleshooting or Support section below.

Note on third party dependencies

Once you install the cli, these third party dependencies will be downloaded to your machine. Please note that these third party dependencies are subject to their own license terms.

Contributing

New contributions are welcome. If you would like to submit one, follow the instructions in the contributions section on the documentation page

License

dovetail-cli is licensed under a BSD-type license. See LICENSE for license text.

Support

For Q&A you can contact us at tibcolabs@tibco.com.

Troubleshooting

Fabric admin test fails on Ubuntu

The current version of Fabric SDK requires Go 1.11.0-1.11.4. Thus, if the installation failed to download Go dependencies for Fabric SDK, you will need to download Go 1.11.4 and change the $GOROOT and $PATH environment variables to point to this version. If you have installed a later version of Go, e.g., 1.11.6, you can edit the file /path/to/fabric-sdk-go/ci.properties and set GO_MAX_VER=1.11.6, and then use the following steps to install dependencies.

If the fabric admin tests failed with the following error:

hyperledger/fabric/core/operations/system.go:227:23: not enough arguments in call to s.statsd.SendLoop

You may resolve dependency issues for the Fabric SDK as follows.

cd ${GOPATH}/src/github.com/hyperledger/fabric-sdk-go
make depend

Edit the Makefile to turn off gometalinter for the target .PHONY: unit-test, i.e., in the command under this target, update the variable to use TEST_WITH_LINTER=false, and then execute the unit tests

make unit-test

You may also run the integration tests of the Fabric SDK to make sure that all dependencies are updated correctly, i.e.,

make integration-tests-stable-local

If the Fabric SDK tests complete successfully, you can clean up the docker containers from the tests as follows:

docker kill $(docker ps | egrep "fabsdkgo|hyperledger" | awk '{print $1}')
docker rm $(docker ps -a | egrep "fabsdkgo|hyperledger" | awk '{print $1}')
docker rmi $(docker images | grep fabsdkgo | awk '{print $3}')

You can then try to build and test the dovetail-cli again, i.e.,

cd ${GOPATH}/src/github.com/TIBCOSoftware/dovetail-cli
make

Directories

Path Synopsis
cmd
dovetail
* Copyright © 2018.
* Copyright © 2018.
Package commands is the one containing all the cli commands Package commands is the one containing all the cli commands
Package commands is the one containing all the cli commands Package commands is the one containing all the cli commands
corda
Package corda is the one containing all the cli commands for corda operations
Package corda is the one containing all the cli commands for corda operations
corda/client
Package dapp is the one containing all the cli commands for dapp operations Package contract is the one containing all the cli commands for contract operations
Package dapp is the one containing all the cli commands for dapp operations Package contract is the one containing all the cli commands for contract operations
corda/contract
Package contract is the one containing all the cli commands for contract operations
Package contract is the one containing all the cli commands for contract operations
corda/dapp
Package dapp is the one containing all the cli commands for dapp operations Package contract is the one containing all the cli commands for contract operations
Package dapp is the one containing all the cli commands for dapp operations Package contract is the one containing all the cli commands for contract operations
fabric
Package fabric is the one containing all the cli commands for hyperledger fabric target
Package fabric is the one containing all the cli commands for hyperledger fabric target
fabric/contract
Package contract is the one containing all the cli commands for contract operations
Package contract is the one containing all the cli commands for contract operations
* Copyright © 2018.
* Copyright © 2018.
corda
client
* Copyright © 2018.
* Copyright © 2018.
contract
* Copyright © 2018.
* Copyright © 2018.
cordapp
* Copyright © 2018.
* Copyright © 2018.
* Copyright © 2019.
* Copyright © 2019.
hyperledger-fabric
config
* Copyright © 2018.
* Copyright © 2018.
contract
Package contract implements generate and deploy chaincode for hyperledger fabric Package contract implements generate and deploy chaincode for hyperledger fabric
Package contract implements generate and deploy chaincode for hyperledger fabric Package contract implements generate and deploy chaincode for hyperledger fabric
fabadmin
Package fabadmin handles administration commands for hyperledger fabric Package fabadmin handles administration commands for hyperledger fabric Package fabadmin handles administration commands for hyperledger fabric
Package fabadmin handles administration commands for hyperledger fabric Package fabadmin handles administration commands for hyperledger fabric Package fabadmin handles administration commands for hyperledger fabric
* Copyright © 2019.
* Copyright © 2019.
pkg
contract
* Copyright © 2018.
* Copyright © 2018.
languages
* Copyright © 2019.
* Copyright © 2019.
sawtooth
contract
Package contract implements generate smart contract for hyperledger sawtooth * Copyright © 2018.
Package contract implements generate smart contract for hyperledger sawtooth * Copyright © 2018.
* Copyright © 2018.
* Copyright © 2018.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL