doc: docker deploy

feat: support docker debug
This commit is contained in:
CaiHQ 2022-05-23 17:06:54 +08:00
parent a553a13a31
commit de30170d65
2 changed files with 7 additions and 4 deletions

View File

@ -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);

View File

@ -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();