Go to file
2024-06-20 11:19:22 +08:00
docker add simple-ypk-packer 2022-05-26 15:33:04 +08:00
src fix http tool bugs 2024-06-20 11:19:22 +08:00
.gitignore support publish to coderepo 2023-04-20 11:48:22 +08:00
build.gradle fix http tool bugs 2024-06-20 11:19:22 +08:00
publishconf.json support publish to coderepo 2023-04-20 11:48:22 +08:00
README.md add simple-ypk-packer 2022-05-26 15:33:04 +08:00

使用说明

1build.gradle中进行配置。

buildscript {
   repositories {
       mavenLocal()
       mavenCentral()
   }
   dependencies {
       classpath "org.bdware.bdcontract:ypk-deploy-tool:0.5.0"
   }
}
//....
task deploy(dependsOn: ["xxx"]) {
   doLast {
       org.bdware.ypkdeploy.HTTPTool.batchRun("./xxx/deployconfig.json", true)
   }
}

2 配置./xxx/deployconfig.json文件。 参数说明:

agentAddress为运行了bdagent的服务端的ip:port

privateKey/publicKey为有部署权限的一组SM2KeyPair

ypkPath是待部署的ypk路径。

deployconfig.json配置示例:

{
  "agentAddress": "192.168.x.x:18000",
  "privateKey": "5895c18430dd...",
  "publicKey": "04d1924329f72ced14...",
  "ypkPath":  "/path/to/todeploy.ypk",
  "killBeforeStart": "ContractName",
  "createParam": {
  }
}