Giter Site home page Giter Site logo

sonar's Introduction

Sonar

Chat on Slack Build Status

Decentralized Machine Learning Server (via Blockchain)

Docker

https://hub.docker.com/r/openmined/sonar/

We prepared a dockerized version of the Sonar smart contract already running on testrpc. To start it just run

docker run -d -p 8545:8545 openmined/sonar-testrpc:edge
# :edge for the latest dev build
# :latest (default) for stable builds

The current contract address in this image is 0xdde11dad6a87e03818aea3fde7b790b644353ccc In addition there are 42 bootstrapped accounts with 100 ETH each.

Everytime you restart the docker container all interactions to the chain will be reset and you will have a clean image (with nothing but the contract).

Docker creation

There are two docker files in this repository. Dockerfile creates a plain Sonar container (openmined/sonar) with just the compiled contract in it. Dockerfile.testrpc creates the openmined/sonar-testrpc image with the contract pre-deployed on testrpc.

Manual setup

Install dependencies

npm install

compile and deploy local libraries

First you need to start the testrpc

# run local ethereum mock
testrpc -a 1000

Then, compile the contracts and load them onto the blockchain.

npm run deploy

You should see output like:

Using network 'development'.
Running migration: 1_initial_migration.js
  Deploying Migrations...
  Migrations: 0xf06039885460a42dcc8db5b285bb925c55fbaeae
Saving successful migration to network...
Saving artifacts...
Running migration: 2_deploy_contracts.js
  Deploying ConvertLib...
  ConvertLib: 0x6cc86f0a80180a491f66687243376fde45459436
  Deploying ModelRepository...
  ModelRepository: 0xe26d32efe1c573c9f81d68aa823dcf5ff3356946
  Linking ConvertLib to MetaCoin
  Deploying MetaCoin...
  MetaCoin: 0x6d3692bb28afa0eb37d364c4a5278807801a95c5
Saving successful migration to network...
Saving artifacts...

sonar's People

Contributors

axelhodler avatar anoff avatar iamtrask avatar kevinahuber avatar alex-kattathra-johnson avatar carrollgt91 avatar jsn5 avatar tombarratt46 avatar

Watchers

James Cloos avatar Amitesh Pathak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.