OHDSI Home | Forums | Wiki | Github

Have you ever built Atlas offline without internet?

Have you ever built Atlas offline without internet?
All data exists in a database on the local computer.

as far as i know, Atlas is a โ€˜frontendโ€™ website that is written in javascript, so of course you can open a web app offline

atlas and achilles can be opened, but for example
Itโ€™s a question in the whole part, like fetching data from an online repository in the maven build part.

if atlas is offline then of course you cannot fetch data over the internet.

however, if the database is in the same LAN, it is very doable. you might have to open ports.

I get an error in WebAPI buildโ€ฆ
When using the โ€˜mvn clean package -DSkipโ€ฆโ€™ command.

๊ฒฝํ—˜์ƒ Offline ํ™˜๊ฒฝ์—์„œ ATLAS๋ฅผ ์„ค์น˜ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ธํ„ฐ๋„ท์ด ๋˜๋Š” PC๊ฐ€ ํ•œ ๋Œ€ ์žˆ์–ด์•ผ ๊ฐ€๋Šฅ ํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋ง์”€ํ•˜์‹  maven ๋ช…๋ น์–ด๋‚˜ git์—์„œ atlas, webapi ๋“ฑ์„ clone ํ•˜๋Š” ๊ณผ์ • ๋“ฑ์˜ ์ž‘์—…์€ ์ธํ„ฐ๋„ท์ด ๋˜๋Š” ํ™˜๊ฒฝ์—์„œ ์ง„ํ–‰ํ•˜์‹œ๊ณ , Offline PC์— ์˜ฎ๊ฒจ์„œ ์ง„ํ–‰ํ•˜์‹ ๋‹ค๋ฉด Offline ํ™˜๊ฒฝ์—์„œ๋„ ATLAS๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

1 Like

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
๋ง์”€ํ•ด์ฃผ์‹ ๋Œ€๋กœ webapi.warํŒŒ์ผ์„ ์ธํ„ฐ๋„ท ๋˜๋Š” ํ™˜๊ฒฝ์—์„œ ๋งŒ๋“ค๊ณ  ๋งŒ๋“  ํŒŒ์ผ์„ ์ธํ„ฐ๋„ท ์•ˆ๋˜๋Š” ํ™˜๊ฒฝ์œผ๋กœ
์˜ฎ๊ฒจ์„œ was ์•ˆ์— ๋„ฃ๊ณ  run server๋ฅผ ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค.
๊ทผ๋ฐ ์—ฌ๊ธฐ์„œ ๊ถ๊ธˆํ•œ์ ์€ ์ธํ„ฐ๋„ท์ด ๋˜๋Š” ์„œ๋ฒ„์™€ ์ธํ„ฐ๋„ท์ด ์•ˆ๋˜๋Š” ์„œ๋ฒ„๋Š” ๋‹ค๋ฅธ lan ๋ง ์— ๊ฐ๊ฐ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค.
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋Š” ์ธํ„ฐ๋„ท ์•ˆ๋˜๋Š” ๋ง์— ํ•จ๊ป˜ ์žˆ๊ณ ์š”.

๊ทผ๋ฐ ์ธํ„ฐ๋„ท์ด ๋˜๋Š” ํ”ผ์‹œ์—์„œ mvn ๋ช…๋ น์–ด๋ฅผ ๋Œ๋ฆฌ๊ธฐ ์œ„ํ•ด์„œ settings.xml์„ ์„ค์ •ํ• ๋•Œ
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ๊ฒฝ๋กœ๋ฅผ ์ œ๋Œ€๋กœ ๋ชป์ฐพ๋Š” ์—๋Ÿฌ๊ฐ€ ๋‚˜๋Š”๋ฐ ์ด๊ฒƒ์€ ์„ค์น˜์™€ ๋ฌด๊ด€ํ• ๊นŒ์š”?
build success๋Š” ๋‚˜์˜ต๋‹ˆ๋‹ค๋งŒ.

๊ทธ๋ž˜์„œ ๊ทธ๋Ÿฐ์ง€ webapi.war ํŒŒ์ผ์„ was์— ๋„ฃ๊ณ  ๋Œ๋ฆฌ๊ณ  ๋‚˜์„œ ip/WebAPI/source/sources๊ฐ€ ๋‚˜์™€์•ผํ•˜๋Š”๋ฐ
์ด๋ถ€๋ถ„์—์„œ 404 error๊ฐ€ ๋‚˜๋”๋ผ๊ตฌ์š”.
ํ˜น์‹œ ์ด ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๊ฒฝ๋กœ๋ฅผ ์ž˜๋ชป ์งš์–ด๋„ฃ์–ด์„œ ์ธ์ง€ ์‹ถ์–ด์„œ ๊ทธ๋ ‡์Šต๋‹ˆ๋‹ค.

settings.xml ํŒŒ์ผ๋กœ mvn ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ ํ–ˆ์„ ๋•Œ build success๋งŒ ๋‚˜์˜ค๋ฉด was์— ์˜ฌ๋ ธ์„ ๋•Œ war ํŒŒ์ผ์•ˆ์— ์žˆ๋Š” ์ •๋ณด๋กœ ๊ฑธ์—ˆ์„ ๋•Œ settings.xml ํŒŒ์ผ์— ์ž‘์„ฑํ•˜์‹  DB ์ •๋ณด๋ฅผ ํ†ตํ•ด DB ์„œ๋ฒ„๋ฅผ ๋ฌผ๊ธฐ ๋•Œ๋ฌธ์— ๊ดœ์ฐฎ์„ ๋“ฏ ํ•ฉ๋‹ˆ๋‹ค.

์•„๋ž˜ WebaPI Source ๊ด€๋ จํ•ด์„œ๋Š”
http://server_ip:port/WebAPI/source/sources ์ •๋ณด๋ฅผ ์ •ํ™•ํ•˜๊ฒŒ ์ž…๋ ฅํ–ˆ๋Š”์ง€ ๋‹ค์‹œ ํ•œ ๋ฒˆ ํ™•์ธํ•ด์ฃผ์‹œ๊ณ 
๋‹ค๋ฅธ ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ์ฒ˜์Œ์— ์ƒ์„ฑํ•œ WebAPI ์•ˆ์˜ ์„ค์ •ํ•œ ์Šคํ‚ค๋งˆ๋กœ ํ…Œ์ด๋ธ”๋“ค์ด ์ƒ์„ฑ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•ด๋ณด์‹œ๊ณ  ์ƒ์„ฑ๋˜์—ˆ๋‹ค๋ฉด source, source_daimon ํ…Œ์ด๋ธ”์— CDM ์ •๋ณด๋ฅผ INSERT ํ•˜์‹œ๊ณ , ์•„๋‹ˆ๋ผ๋ฉด settings.xml ํŒŒ์ผ์„ ๋‹ค์‹œ ํ•œ ๋ฒˆ ํ™•์ธํ•ด๋ณด์‹œ๋ฉด ๋  ๋“ฏ ํ•ฉ๋‹ˆ๋‹ค.

/WebAPI/source/sources๊ฐ€ ๋‚˜์˜ค๊ธฐ ์œ„ํ•ด์„œ๋Š” settings.xml์— ์ •ํ™•ํ•œ ๊ฐ’ ๊ธฐ์ž… ์ดํ›„์— maven ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•ด์„œ warํŒŒ์ผ์„ ์ƒ์„ฑํ›„์— warํŒŒ์ผ์„ was์˜ (์˜ˆ๋กœ tomcat์˜ webapps) ์•ˆ์— ๋„ฃ์–ด์ฃผ๊ณ  run server๋ฅผ ํ•˜๋ฉด ์ž๋™์œผ๋กœ war๊ฐ€ ํ’€๋ฆฌ๋ฉด์„œ ์„ค์ •ํ•ด๋‘” ๊ฒฝ๋กœ์— ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ˆ˜์‹ญ๊ฐœ์˜ ํ…Œ์ด๋ธ”์ƒ์„ฑ๊ณผ ํ•จ๊ป˜ url ์ฃผ์†Œ์ฐฝ์— /WebAPI/source/sources๋ฅผ ์ ์œผ๋ฉด ๋นˆ๊ฐ’์ด ๋‚˜์˜ค๊ฑฐ๋‚˜ source/source_daimon์— ๊ธฐ์ž…๋œ ๊ฐ’์ด ๋ณด์—ฌ์•ผํ•˜๋Š”๊ฒƒ์ด์ฃ ?
ํ˜„์žฌ๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ํ…Œ์ด๋ธ” ์ƒ์„ฑ ํ™•์ธ๋˜๊ณ  source/ daimon์—๋„ ๊ฐ’์„ ์•Œ๋งž๊ฒŒ ๋„ฃ์–ด์คฌ๋Š”๋ฐ, WebAPI ์—์„œ 404 ์—๋Ÿฌ๊ฐ€๋‚˜๋Š”๋ฐ ์˜์‹ฌ๊ฐ€๋Š” ๋ถ€๋ถ„์ด ์žˆ์œผ์‹ ๊ฐ€์š”?.. ์˜ค๋žœ๋งŒ์— ์…‹ํŒ…์„ํ•ด์„œ ๋ฒ„์ „๋„ ๋งŽ์ด ๋ฐ”๋€Œ์—ˆ๋Š”๋ฐ ์ƒˆ๋กญ๊ฒŒ ํ•ด์•ผํ•˜๋Š”๋ถ€๋ถ„์— ์ œ๊ฐ€ ๋น ๋œจ๋ฆฐ๊ฒŒ ์žˆ๋Š”์ง€๋ฅผ ๊ฐ์ด ์ž˜ ์˜ค์งˆ ์•Š๊ตฐ์š”

ATLAS์˜ config-local.js ํŒŒ์ผ๋„ ํ™•์ธํ•ด๋ณด์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์€๋ฐ, ๋ฉ”์ผ๋กœ ์ถ”๊ฐ€ ๋‹ต๋ณ€ ๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.

1 Like
t