mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 01:44:14 +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());
|
fr.read(content, 0, fr.available());
|
||||||
String manifestJson = new String(content);
|
String manifestJson = new String(content);
|
||||||
JsonObject jo = JsonParser.parseString(manifestJson).getAsJsonObject();
|
JsonObject jo = JsonParser.parseString(manifestJson).getAsJsonObject();
|
||||||
|
|
||||||
if (jo.get("doi") == null) {
|
if (jo.get("doi") == null) {
|
||||||
String doi = "86.5000.470/do." + geneRandomID();
|
String doi = "86.5000.470/do." + geneRandomID();
|
||||||
jo.addProperty("doi", doi);
|
jo.addProperty("doi", doi);
|
||||||
|
@ -7,7 +7,6 @@ import org.bdware.sc.*;
|
|||||||
import org.bdware.sc.bean.Contract;
|
import org.bdware.sc.bean.Contract;
|
||||||
import org.bdware.sc.bean.ContractExecType;
|
import org.bdware.sc.bean.ContractExecType;
|
||||||
import org.bdware.sc.conn.ResultCallback;
|
import org.bdware.sc.conn.ResultCallback;
|
||||||
import org.bdware.sc.units.MultiContractMeta;
|
|
||||||
import org.bdware.sc.util.JsonUtil;
|
import org.bdware.sc.util.JsonUtil;
|
||||||
import org.bdware.server.GlobalConf;
|
import org.bdware.server.GlobalConf;
|
||||||
import org.bdware.server.action.p2p.MasterServerRecoverMechAction;
|
import org.bdware.server.action.p2p.MasterServerRecoverMechAction;
|
||||||
@ -177,10 +176,15 @@ public class TemporyTestAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Action(async = true)
|
@Action(async = true)
|
||||||
public void reconnectPort(JsonObject args, ResultCallback resultCallback) {
|
public void reconnectPort(JsonObject args, ResultCallback resultCallback) {
|
||||||
ContractPort.PortVisitor reconnectVisitor = CMActions.manager.statusRecorder.getVisitor();
|
ContractPort.PortVisitor reconnectVisitor = CMActions.manager.statusRecorder.getVisitor();
|
||||||
|
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());
|
reconnectVisitor.visit(args.get("port").getAsInt());
|
||||||
String data = ContractManager.instance.listContractsWithOwner(
|
String data = ContractManager.instance.listContractsWithOwner(
|
||||||
args.get("owner").getAsString(), null, 0);
|
args.get("owner").getAsString(), null, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user