使用Che7来启动NEM (NIS1) 节点所需的 devfile.yaml

简而言之,这对大多数人都没有用处。

使用NEM进行区块链应用开发时,通常会使用公开的API服务器。在云端IDE的工作空间中启动NIS的动机,我认为只适用于非常有限的情况。

另外,目前可用的Eclipse/Che托管服务1在用户操作一段时间无效时会导致与工作区相关的容器全部关闭,因此很难在主网同步之前启动NIS节点。

如果您自行部署了Che实例,它可能会有用。

如果您在将Che7部署后无法运行,可以参考存放该文件的GitHub存储库。考虑到之前曾经引起过破坏性变更,并且规范尚未被确认,因此对于devfile.yaml文件并不完全放心。

metadata:
  name: nem-nis1-sample
components:
  - id: che-incubator/typescript/latest
    memoryLimit: 512Mi
    type: chePlugin
  - mountSources: true
    endpoints:
      - name: nodejs
        port: 4100
    memoryLimit: 512Mi
    type: dockerimage
    alias: nodejs
    image: 'quay.io/eclipse/che-nodejs8-centos:nightly'
  - mountSources: false
    endpoints:
      - name: wallet
        port: 7777
      - name: NIS
        port: 7890
      - name: servant
        port: 7880
      - name: NCC
        port: 8989
    memoryLimit: 2048Mi
    type: dockerimage
    volumes:
      - name: nem
        containerPath: /home/nem
    alias: nem-nis1
    image: pizzafactory0contorno/nem-nis1
apiVersion: 1.0.0
che.openshift.io 和 camino.pizzafactory.jp ↩