Code Monkey home page Code Monkey logo

dockerized-tcf's Introduction

dockerized-tcf

本仓库着眼于为hyperledger-labs/trusted-compute-framework项目添加基于kubernetes的开发环境搭建方式。

前期软件准备

  • kubectl-v1.15.2
  • 配置kubernetes集群

搭建环境

  1. 启动LMDB服务器
    kubectl create -f lmdb-pod.yaml
    
    # 创建管理 LMDB Pod的服务用于接收 CRUD 请求
    kubectl create -f lmdb-service.yaml
  2. 启动EnclaveManager(用于管理SGX enclave)和TCSServer(负责监听并处理客户端请求)
    # 下面的操作需要等待Pod和服务的状态都变成 Ready
    kubectl create -f enclave-manager-pod.yaml
    
    kubectl create -f tcs-server-pod.yaml
    kubectl create -f tcs-service.yaml

使用示例

  1. 发送工单请求

    kubectl create -f propose-requests-job.yaml
  2. 查看请求处理过程的日志

    # 假设 propose-request-abcde 是上一步创建的 job
    kubectl logs propose-request-abcde
    
    # 即可得到部分输出如下
    [23:20:36 INFO    __main__] Signature Verified
    [23:20:36 INFO    utility.utility] Decryption Result at Client - You have a risk of 71% to have heart disease. 

dockerized-tcf's People

Watchers

James Cloos avatar  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.