Skip to content

bobertrublik/Blockchain-based-Continuous-Integration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain-based Continuous Integration

Table of Contents

Warning

This implementation currently only works on Linux.

Installation

Open instructions.

Getting started

Usage

Install

cd $GOPATH/src/github.com/robertbublik
go install ./cmd/bci

Show available commands

bci help

Blockchain-based Continuous Integration CLI                                                                                                                                                                                                     Usage:                                     
	bci [flags]                                                                                                             
	bci [command]                                                                                                                                                                                                                                 Available Commands:                                                                                                       
	balances    Interact with balances (list...).                                                                           
	help        Help about any command                                                                                      
	run         Launches the BCI node and its HTTP API.                                                                     
	status      Displays status of BCI.                                                                                     
	tx          Interact with transactions (add, list...).                                                                                                                                                                                                                                                                              Flags:                                                                                                                    
	-h, --help   help for bci 

Start Docker registry

docker run -d -p 5000:5000 --restart=always --name registry registry:2

Start BCI nodes

bci run --datadir=$HOME/bci-nodes/bootstrap --ip=127.0.0.1 --port=8080
bci run --datadir=$HOME/bci-nodes/miner-1 --account=miner-1 --ip=127.0.0.1 --port=8081
bci run --datadir=$HOME/bci-nodes/miner-2 --account=miner-2 --ip=127.0.0.1 --port=8082
bci run --datadir=$HOME/bci-nodes/miner-3 --account=miner-3 --ip=127.0.0.1 --port=8083

Add a transaction

bci tx add --from=developer-1 --value=100 --language=docker --repository=https://github.com/robertbublik/BCI_docker
bci tx add --from=developer-2 --value=200 --language=docker --repository=https://github.com/robertbublik/BCI_docker
bci tx add --from=developer-3 --value=300 --language=docker --repository=https://github.com/robertbublik/BCI_docker

About

BCI proof of concept written in golang

Resources

License

Stars

Watchers

Forks

Languages

  • Go 100.0%