GitHub ãã·ã´ãã§ä½¿ããããã©ãGitHubEnterprise 㯠$5000 / 20 User / year ãããã®ã§ããæ軽ã«ä½¿ãã GitHub ã¯ãã¼ã³ãæ¢ãã¦ã¿ãã
ãã¹ãã£ã³ã°ç°å¢ã¯ã³ã¹ãéè¦ã§ DigitalOcean ãé¸æã
GitBucket ã稼åããã¾ã§ãã¾ã¨ãã¦ããã
DigitalOcean ã¨ã¯ï¼
å¹³ããããã°ãã¬ã³ã¿ã«ãµã¼ãã¼ã®ã¯ã©ã¦ãçã
ä»ã«ã¯ AmazonEC2 ã ãããã®VPS ãªãããããã
DigitalOcean ã®ç¹å¾´ã¯ SSD ã§æä¾ããã¦ããã¨ããã
ãã¨å¾çºã®ãµã¼ãã¹ã¨ãããã¨ããã£ã¦ãå¤æ®µãå®ãã
æµ·å¤ã®ãµã¼ãã¹ã ãã©ãä¸ï¼ã¬ãã«ã®è±èªããããã°åé¡ãªã使ããã
ä»ååãã¦ä½¿ã£ãã®ã§ã¢ã«ã¦ã³ããä½ã£ãã
âã¡ãªã¿ã«ããã§ã¢ã«ã¦ã³ããä½æãã¦ããããã¨ãã¢ãã£ãªã¨ã¤ãããããã¦å¬ããã§ããã
https://www.digitalocean.com/?refcode=348c173d9100
åèï¼徳丸浩の雑記帳: 試験環境用VPSとして1時間1円から使えるDigitalOceanが安くて便利
ãã·ã³ã調é
ç¡äºã¢ã«ã¦ã³ããä½æã§ããããæ©éãã·ã³ã調éããã
ã¾ãã¯é©å½ãª HostName ãå
¥åã
æ§æã¯ä¸çªå®ã 1CPU 512MB $5.00/month ãé¸æã
ã»ã¼ã¯ã³ã³ã¤ã³ã¨ããç´ æ´ãããã³ã¹ãããã©ã¼ãã³ã¹ï¼ï¼
ãªã¼ã¸ã§ã³ã¯ã©ãã§ãããã®ã§åæé¸æã®ã¾ã¾ã
ãµã³ãã©ã³ã·ã¹ã³ã®ã»ããè¿ãã£ã¦æ
å ±ãã©ã£ãã§è¦ãæ°ãããã
OS 㯠Ubuntu 14.04 x64 ãé¸æã
Ubuntu åãã¦ä½¿ããã©ãæ°ã«ããªãã
CreateDropret ãã¯ãªãã¯ããã°ã60ç§ã»ã©ã§ç«ã¡ä¸ããã
ç«ã¡ä¸ããã¨ãDigitalOcean ã§ç»é²ããã¡ã«ã¢ãã«root ã®ãã¹ã¯ã¼ããå±ãã
GitBucket ã¤ã³ã¹ãã¼ã«
ãã°ã¤ã³
ã¾ã㯠SSH ã§ãã°ã¤ã³ã
ãã¹ã¯ã¼ãã¯ãã£ãæ¸ããã¨ãããã¡ã¼ã«ããã³ããã
ssh [email protected]
Java ã®ã¤ã³ã¹ãã¼ã«
GitBucket 㯠Java ã§åãã
ç´ ã® Ubuntu ç°å¢ã« Java ãå
¥ã£ã¦ããªãã®ã§ãJava ãã¤ã³ã¹ãã¼ã«ã
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
åèï¼http://ubuntuhandbook.org/index.php/2014/02/install-oracle-java-6-7-or-8-ubuntu-14-04/
GitBucket ã®ã¤ã³ã¹ãã¼ã«
https://github.com/takezoe/gitbucket/releases
âããææ°ã® gitbucket.war ã®URLãã³ãã¼ã
wget ã§ãã¡ã¤ã«ãæã£ã¦ããã
wget https://github.com/takezoe/gitbucket/releases/download/2.2.1/gitbucket.war
æ¬æ¥ã¯ãµã¼ãã¹ã§åããããããã¾ãã¯åä½ãè¦ããã°ããã®ã§ç´æ¥å®è¡ã
java -jar gitbucket.war &
åã®å ´åã¯ãã¡ã¤ã³ãåã£ã¦ãªãã®ã§ãIP ç´æ¥å
¥åã§ç¨¼åã確èªããã
ããã©ã«ãã§ã¯ãã¼ãã 8080 ã¨ãªã£ã¦ããã
Tomcat ã使ã£ã¦ãµã¼ãã¹ã§åãã
ãµã¼ãã¹ã§åããã¾ã§
sudo apt-get install openjdk-7-jre wget http://ftp.tsukuba.wide.ad.jp/software/apache/tomcat/tomcat-7/v7.0.55/bin/apache-tomcat-7.0.55.tar.gz tar xzf apache-tomcat-7.0.55.tar.gz # GitBucket ã Tomcat ã®å ¬éãã£ã¬ã¯ããªã«ç§»å mv gitbucket.war apache-tomcat-7.0.55/webapps/gitbucket.war cd apache-tomcat-7.0.55/ # èµ·å bin/startup.sh # çµäº bin/shutdown.sh
åèï¼Scala - Githubクローン界の新星 GitBucket を Ubuntu 12.04 で動かす - Qiita
Tomcat ã¯ããã©ã«ãè¨å®ã 㨠http://(hostname):8080/(appname) ã«é
ç½®ããã
http://(hostname):8080 ã®ã»ããã¹ãã¼ããªã®ã§ãè¨å®ããããã
vi conf/server.xml
root 㧠war ãã¡ã¤ã«ããã¦ã³ãã¼ãããåæã®è¨å®ã¯ä»¥ä¸ã
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="/root/gitbucket.war" reloadable="true"> #ãã®ã»ã¯ã·ã§ã³ã追å ã </Context> </Host>
åèï¼java - Tomcat 6: How to change the ROOT application - Stack Overflow
æ¬å½ã¯ããå°ãã¹ãã¼ããªè¨å®ãããã¯ãã
ããã«ãã¦ããWindows ã主æ¦å ´ãªããããã¤ããµã¼ãã¹ã£ã¦è¨èã使ã£ã¦ãã¾ãã
ãã¼ã¢ã³ã£ã¦å¼ã¶ã®ãé©åãªã®ããªã
è¨å®å¤æ´å¾ã¯å度 Tomcat ãèµ·åãç´ãã°OKã
# çµäº bin/shutdown.sh # èµ·å bin/startup.sh
http://(hostname):8080 ã§ã¢ã¯ã»ã¹ã§ããã°OKã
ãã¤ãããã¾ã§ããï¼ï¼
ãã¾ã
å®ã¯ GitLab ã試ãã¦ããã
ãã è¦æ±ããããã¼ãã¹ããã¯ã®åé¡ãããã¾ãã¤ã³ã¹ãã¼ã«ãã§ããªãã£ãããããã«è½ã¡ãããã¦ãã
ãã©ãã«ã·ã¥ã¼ãã£ã³ã°ã®ã¹ãã«ãããã¾ã§é«ããªãã®ã§ã3, 4åã¤ã³ã¹ãã¼ã«ããã¨ããã§æããã
ãã®ç¹ãGitBucket ã¯ç¹ã«åé¡ãªãåä½ãã¦ããã
ãããããã
æå¾ã«
ãã®ã¨ã³ããªã§ç´°ãããã¨ã¯æ¸ããªããã©ãã»ãã¥ãªãã£ãé«ãã対å¿ã¯å¿
è¦ã
ãã¨ãã°ãLinux ãã·ã³ã® root ã¦ã¼ã¶ã® ssh ãå¶éããããDigitalOcean ã®ã¢ã«ã¦ã³ãã«2段éèªè¨¼ã¤ãããã
ãã®ã¸ãã¯è©³ãããªãã®ã§èªå·±è²¬ä»»ã§ãé¡ããã¾ãã
GitHubå®è·µå ¥é ~Pull Requestã«ããéçºã®å¤é© (WEB+DB PRESS plus)
- ä½è : 大å¡å¼è¨
- åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾
- çºå£²æ¥: 2014/03/20
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- ãã®ååãå«ãããã° (11件) ãè¦ã
- ä½è : æ± ç°å°å²,è¤ååæ,äºä¸å²å½°
- åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾
- çºå£²æ¥: 2014/04/16
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- ãã®ååãå«ãããã° (6件) ãè¦ã