Git Product home page Git Product logo

Comments (11)

nunojusto avatar nunojusto commented on July 1, 2024 1

You are correct, SimplePolicy is mandatory. I've incorporated it on neo-local long ago.

from neo.

nunojusto avatar nunojusto commented on July 1, 2024

Sure, I can make this.
What you want is a relay node, not a consensus node, right?
I can make the Dockerfile that you can use to build it. Or we can manage to have a docker hub for NEO also, but for that i need official help.

from neo.

lock9 avatar lock9 commented on July 1, 2024

I think that if you can provide us with a working Dockerfile, one that copies that configuration from the current project and compiles it, it would be great.
Not sure how to handle the "--rpc" flag, but I'm sure this is easy for you :)
Do you think we need to use an intermediary image to build and another to host it? Maybe it makes more sense from a security perspective.

So basically, we need:

  • Compile it from source
  • Copy configuration files (config / protocol.json) - probably done when you copy the source files
  • Start it with or without the RPC flag

from neo.

nunojusto avatar nunojusto commented on July 1, 2024

Yes, I can provide a dockerfile that does that. Including getting the newest code from github, compile it and produce a docker image that we can use to start the node.
That image, because it's not consensus, can be then put inside a swarm or kubernetes cluster to be an highly available service.

from neo.

lock9 avatar lock9 commented on July 1, 2024

Like you mentioned in slack, there is already a Dockerfile:
https://github.com/neo-project/neo-cli/tree/master/ci

It does 50% of the work, however:

  • it always starts with RPC
  • it compiles and runs in the same image

from neo.

nunojusto avatar nunojusto commented on July 1, 2024

I think we can start with the Dockerfile we have in the repo and correct/extend it.
Let me work on it...

from neo.

lock9 avatar lock9 commented on July 1, 2024

@nunojusto if possible, please check if it is importing plugins, this is quite important too.
https://github.com/neo-project/neo-plugins

from neo.

nunojusto avatar nunojusto commented on July 1, 2024

@nunojusto if possible, please check if it is importing plugins, this is quite important too.
https://github.com/neo-project/neo-plugins

No plugins are used in the actual Dockerfile

from neo.

lock9 avatar lock9 commented on July 1, 2024

I'm not sure (I'll leave that to the specialists), but I think that "SimplePolicy" is a mandatory plugin, "RpcSecurity" and "ApplicationLogs" are highly recommended.

from neo.

lock9 avatar lock9 commented on July 1, 2024

@neo-project/ngd any chances you guys can help move this forward? I think this will help a lot of people, just look how many "ubuntu" or other "compilation issues" we have in our closed issues. This would "solve" them all.
Thanks.

from neo.

longfeiWan9 avatar longfeiWan9 commented on July 1, 2024

@neo-project/ngd any chances you guys can help move this forward?

I think this is a great idea. We definitely can help to provide it.

from neo.

Related Issues (20)

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.