我正在尝试调试我的node.js应用。我尝试使用Webstorm和Chrome Node.js V8 --inspector Manager(NiM)连接到我的容器应用程序。在这两种情况下,我都无法连接到我的容器应用程序:(
我在Docker网络“ DockerNetwork”中运行2个容器 恩格罗克:
select t1a.call, t1a.c1, t1a.c2, t1b.c2,
t1a.c2 - t1b.c2 as diff, t2.symbol, t2.limit,
case t2.symbol
when '>' then
case when t1a.c2-t1b.c2 > t2.limit then 'PASS' else 'FAIL' end
when '<' then
case when t1a.c2-t1b.c2 < t2.limit then 'PASS' else 'FAIL' end
when '=' then
case when t1a.c2-t1b.c2 = t2.limit then 'PASS' else 'FAIL' end
end as status
from table1 t1a
join table1 t1b on t1b.call = t1a.call and t1b.c1 = t1a.c1 and t1b.c2 < t1a.c2
join table2 t2 on t2.call = t1a.call
order by t1a.call, t1b.c1;
CALL C1 C2 C2 DIFF S LIMIT STATUS
---- -- -- -- ---------- - ---------- ------
c001 a 11 10 1 > 10 FAIL
c001 b 25 13 12 > 10 PASS
docker run -v //:/ action -it --rm --network DockerNetwork --name myAction myImage
我的dockerFile:
select t1a.call, t1a.c1, t1a.c2, t1b.c2,
t1a.c2 - t1b.c2 as diff, t2.symbol, t2.limit,
xmlquery('/ROWSET/ROW/*/text()'
passing xmltype(
dbms_xmlgen.getxml('select case when ' || (t1a.c2-t1b.c2) || t2.symbol || t2.limit
|| ' then ''PASS'' else ''FAIL'' end from dual')
)
returning content) as status
from table1 t1a
join table1 t1b on t1b.call = t1a.call and t1b.c1 = t1a.c1 and t1b.c2 < t1a.c2
join table2 t2 on t2.call = t1a.call
order by t1a.call, t1b.c1;
CALL C1 C2 C2 DIFF S LIMIT STATUS
---- -- -- -- ---------- - ---------- ------
c001 a 11 10 1 > 10 FAIL
c001 b 25 13 12 > 10 PASS
entrpoint.sh:
docker run --rm -it --network DockerNetwork wernight/ngrok ngrok http myAction:5000