SQLæ¸ãæ¹ããªã«ã®ãµã³ãã«DBãre:dashã§éã¹ãããã«ããVagrantfile
æè¿ã¯ç¤¾å ã§SQLã®åèæ´»åããã¦ãã¾ãã
幸ãã«ãä½äººãèå³ãæã£ã¦ããã£ãã®ã§ãä¸éãSQLãå¦ã¹ãããªãSQLæ¸ãæ¹ããªã«ããä¼ç¤¾ã§è²·ã£ã¦ããã£ãã®ã§ã SQLã¨ãããã¦åèä¸ã®re:dashãããæ¸ç±ä»å±ã®ãµã³ãã«DBã使ã£ã¦ãæãåãããªããåå¼·ã§ãããããªç°å¢ãä½ã£ã¦ã¿ã¾ããã
æ¹è¨ç¬¬3ç ããããã¨æãåãããã«ãªã SQLæ¸ãæ¹ããªã« (WEB+DB PRESS plus)
- ä½è : ç¾½çç« æ´,åç°çäº,è äºå¤§è¼
- åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾
- çºå£²æ¥: 2016/04/12
- ã¡ãã£ã¢: 大åæ¬
- ãã®ååãå«ãããã°ãè¦ã
åæ
ã使ãã®ç°å¢ã§Vagrantã使ããããã«ãªã£ã¦ããç°å¢ãåæã¨ãã¾ãã
Macã§åä½ç¢ºèªãã¦ãã¾ãããWindows, Linuxã§ãåãã¨æãã¾ãã
æºå
re:dashãGitHubããcloneãã¾ãã
$ git clone https://github.com/getredash/redash.git $ cd redash
次ã«ãVagrantfileã以ä¸ã®ããã«æ¸ãæãã¾ã
MySQLã®root
ã¦ã¼ã¶ã¼ããã¹ã¯ã¼ããªãã§ãã£ãããredash
ã¦ã¼ã¶ã¼ã®ãã¹ã¯ã¼ããéã ã£ãããã¾ããããã¼ã«ã«ç°å¢ã§ã®å©ç¨ãæ³å®ãã¦ãããããäºæ¿ãã ããã
æå¾ã«ãSQLæ¸ãæ¹ããªã«ã®CD-ROMã®ãã¼ã¿ãVagrantfile
ã¨åãé層ã«SQL_DRILL
ã¨ããååã®ãã£ã¬ã¯ããªãä½æãããã®ä¸ã«å
¥ãã¦ããã¾ãã
èµ·å
æºåãçµããã°VMãèµ·åããã ãã§ãåæã«ãããã¸ã§ãã³ã°ããã¾ããre:dashã®Vagrant Boxãäºåã«ãã¦ã³ãã¼ãããã¦ããªãç°å¢ã§ã¯ãå°ãæéããããã¨æãã¾ãã
$ ./bin/vagrant_ctl.sh start
åä½ç¢ºèª
ä¸è¨ã®ã³ãã³ãã§VMèµ·åããã¨ã http://localhost:9001 ã§re:dashã«ã¢ã¯ã»ã¹ãããã¨ãã§ãã¾ãã
re:dashã®ä½¿ãæ¹ã«ã¤ãã¦ã¯å²æãã¾ãããã¯ã¨ãªãå®è¡ãã¦ããµã³ãã«DBã®ãã¼ã¿ãåç §ã§ãã¦ãããã¨ã確èªãã¾ãã
ç¾æç¹ã§ã¯ãre:dashã®ãã¼ã¿ã½ã¼ã¹ã«ã¤ãã¦ã¯æä½æ¥ã§è¨å®ãããã¨ã«ãªãã¾ãã
(念ã®ããä¸è¨ã®ç»åã§ã¯ãã¼ã¿ããã¹ãã³ã°ãã¦ãã¾ã)
ã¾ã¨ã
SQLã®å ¥éæ¸ã¨ãã¦è©å¤ã®ããæ¸ç±ã®å 容ãre:dashã§åå¼·ã§ããããã«ããã®ã§ã社å ã§ãã£ã¨SQLã«èå³ãæã¤äººãå¢ãã¦ãããã¨ãããªã¨æã£ã¦ãã¾ãã
(追è¨)worldãã¼ã¿ãã¼ã¹
ãã¡ãã®è¨äºã§ã¡ãã£ã¨è¨åãã¦ããã ããã®ã§ãå½±é¿ãåãã¦è¿½è¨ãã¦ã¿ã¾ããã
SQLæ¸ãæ¹ããªã«ããæã¡ã§ãªãã¦ããMySQLã®worldãã¼ã¿ãã¼ã¹ã使ç¨ã§ããããã«ãã¾ãããGistã® Vagrantfile
ãå¤æ´æ¸ã¿ã§ãã
worldãã¼ã¿ãã¼ã¹ã使ç¨ããå ´åã¯ãVagrantfile
ã¨åãé層ã«world.sql.gz
ãé
ç½®ãã¦ãã ããã