{"id":18966897,"url":"https://github.com/tronprotocol/tron-deployment","last_synced_at":"2025-04-04T08:10:21.965Z","repository":{"id":37444624,"uuid":"138540030","full_name":"tronprotocol/tron-deployment","owner":"tronprotocol","description":"tron main net conf","archived":false,"fork":false,"pushed_at":"2024-06-18T10:55:35.000Z","size":52746,"stargazers_count":188,"open_issues_count":9,"forks_count":380,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-28T07:07:46.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tronprotocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-25T03:38:48.000Z","updated_at":"2025-03-25T05:06:37.000Z","dependencies_parsed_at":"2024-11-08T14:41:05.151Z","dependency_job_id":"f7aecf42-e074-4795-ad38-56d4bb52861c","html_url":"https://github.com/tronprotocol/tron-deployment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tronprotocol%2Ftron-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tronprotocol%2Ftron-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tronprotocol%2Ftron-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tronprotocol%2Ftron-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tronprotocol","download_url":"https://codeload.github.com/tronprotocol/tron-deployment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142074,"owners_count":20890653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T14:39:00.407Z","updated_at":"2025-04-04T08:10:21.932Z","avatar_url":"https://github.com/tronprotocol.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Scope of use\nThis script could be used on Linux/MacOS, but not on Windows.\nJust Support FullNode and SolidityNode.\n\n## Download and run script\n\n```shell\nwget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh\n```\n\n## Parameter Illustration\n\n```shell\nbash deploy_tron.sh --app [FullNode|SolidityNode] --net [mainnet|testnet|privatenet] --db [keep|remove|backup] --heap-size \u003cheapsize\u003e\n\n--app\tOptional, Running application. The default node is Fullnode and it could be FullNode or SolidityNode.\n--net\tOptional, Connecting network. The default network is mainnet and it could be mainnet, testnet.\n--db\tOptional, The way of data processing could be keep, remove and backup. Default is keep. If you launch two different networks, like from mainnet to testnet or from testnet to mainnet, you need to delete database.\n--trust-node\tOptional, It only works when deploying SolidityNode. Default is 127.0.0.1:50051. The specified gRPC service of Fullnode, like 127.0.0.1:50051 or 13.125.249.129:50051.\n--rpc-port\tOptional, Port of grpc. Default is 50051. If you deploy SolidityNode and FullNode on the same host，you need to configure different ports.\n--commit\tOptional, commitid of project.\n--branch\tOptional, branch of project.  Mainnet default is latest release and Testnet default is master.\n--heap-size  Optional, jvm option: Xmx. The default heap-size is 0.8 * memory size.\n--work_space  Optional, default is current directory.\n```\n\n## Examples\n\n### Deployment of FullNode on the one host.\n\n```shell\nwget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh\nbash deploy_tron.sh\n```\n\n### Deployment of SolidityNode on the one host.\n\n```shell\nwget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh\n# User can self-configure the IP and Port of GRPC service in the turst-node field of SolidityNode. trust-node is the fullnode you just deploy.\nbash deploy_tron.sh --app SolidityNode --trust-node \u003cgrpc-ip:grpc-port\u003e\n```\n\n### Deployment of FullNode and SolidityNode on the same host.\n\n```shell\n# You need to configure different gRPC ports on the same host because gRPC port is available on SolidityNode and FullNodeConfigure and it cannot be set as default value 50051. In this case the default value of rpc port is set as 50041.\nwget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh\nbash deploy_tron.sh --app FullNode\nbash deploy_tron.sh --app SolidityNode --rpc-port 50041\n```\n\n## Deployment of grpc gateway\n\n### Summary\nThis script helps you download the code from https://github.com/tronprotocol/grpc-gateway and deploy the code on your environment.\n### Pre-requests\nPlease follow the guide on https://github.com/tronprotocol/grpc-gateway \nInstall Golang, Protoc, and set $GOPATH environment variable according to your requirement.\n### Download and run script\n```shell\nwget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_grpc_gateway.sh -O deploy_grpc_gateway.sh\n```\n### Parameter Illustration\n```shell\nbash deploy_grpc_gateway.sh --rpchost [rpc host ip] --rpcport [rpc port number] --httpport [http port number] \n\n--rpchost The fullnode or soliditynode IP where the grpc service is provided. Default value is \"localhost\".\n--rpcport The fullnode or soliditynode port number grpc service is consuming. Default value is 50051.\n--httpport The port intends to provide http service provided by grpc gateway. Default value is 18890.\n```\n### Example\nUse default configuration：\n```shell\nbash deploy_grpc_gateway.sh\n```\nUse customized configuration：\n```shell\nbash deploy_grpc_gateway.sh --rpchost 127.0.0.1 --rpcport 50052 --httpport 18891\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftronprotocol%2Ftron-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftronprotocol%2Ftron-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftronprotocol%2Ftron-deployment/lists"}