Closed brenzi closed 4 years ago
Actually, our preferred solution would be that the host (where we execute gantree-cli) would build the node. We have a very powerful machine for this purpose and all the build dependencies are installed. This might actually be a very robust way for any node with special build requirements
@brenzi thanks for this - local compile & upload is on our roadmap. Will update this thread when we have a release for you.
Hey @brenzi - it's not in an official release yet but there's a preview of this feature on the branch feature/binary-local-compile
. You can test the branch by cloning the repo and executing it with the command:
node . sync -c my_config_file.json
There are some changes to the config spec in this release, so I would advise you to use this as your config file (some things taken from the other issue you created):
{
"project": "substraTEE testnet",
"binary": {
"url": "https://github.com/scs/substraTEE-node.git",
"version": "HEAD",
"name": "substratee-node",
"localCompile": true
},
"validators": {
"loggingFilter": "runtime=debug,txpool=debug",
"nodes": [
{
"provider": "do",
"machineType": "s-2vcpu-4gb",
"count": 3,
"zone": "fra1",
"sshUser": "root"
}
]
}
}
(Note that the "repository" top level key has been changed to "binary")
This assumes that you all the requirements for compilation already installed on the machine you're executing the CLI on. Let me know how you get on!
Also this isn't in our docker container yet, we'll be updating that when we have another stable release.
@brenzi we've rolled out stable builds of gantree-lib since with support for this feature, if you experience any issues with localCompile please don't hesitate to open another issue.
Please keep in mind however that you may experience issues using locally compiled binaries on instances if the cloud providers architecture differs significantly enough.
In order to build our node we need to install additional dependencies:
Here are the cecessary commands from our dockerfile
How would I configure gantree to add these setup steps?