mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-09 17:34:13 +00:00
doc: docker deploy
feat: support docker debug
This commit is contained in:
parent
a553a13a31
commit
de30170d65
@ -375,7 +375,6 @@ public class FileActions {
|
||||
fr.read(content, 0, fr.available());
|
||||
String manifestJson = new String(content);
|
||||
JsonObject jo = JsonParser.parseString(manifestJson).getAsJsonObject();
|
||||
|
||||
if (jo.get("doi") == null) {
|
||||
String doi = "86.5000.470/do." + geneRandomID();
|
||||
jo.addProperty("doi", doi);
|
||||
|
@ -7,7 +7,6 @@ import org.bdware.sc.*;
|
||||
import org.bdware.sc.bean.Contract;
|
||||
import org.bdware.sc.bean.ContractExecType;
|
||||
import org.bdware.sc.conn.ResultCallback;
|
||||
import org.bdware.sc.units.MultiContractMeta;
|
||||
import org.bdware.sc.util.JsonUtil;
|
||||
import org.bdware.server.GlobalConf;
|
||||
import org.bdware.server.action.p2p.MasterServerRecoverMechAction;
|
||||
@ -177,11 +176,16 @@ public class TemporyTestAction {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Action(async = true)
|
||||
public void reconnectPort(JsonObject args, ResultCallback resultCallback) {
|
||||
ContractPort.PortVisitor reconnectVisitor = CMActions.manager.statusRecorder.getVisitor();
|
||||
reconnectVisitor.visit(args.get("port").getAsInt());
|
||||
String host = null;
|
||||
if (args.has("host"))
|
||||
host = args.get("host").getAsString();
|
||||
if (host != null)
|
||||
reconnectVisitor.visit(host, args.get("port").getAsInt());
|
||||
else
|
||||
reconnectVisitor.visit(args.get("port").getAsInt());
|
||||
String data = ContractManager.instance.listContractsWithOwner(
|
||||
args.get("owner").getAsString(), null, 0);
|
||||
JsonObject ret = new JsonObject();
|
||||
|
Loading…
Reference in New Issue
Block a user