2013年9月28日 星期六

GitServer GitWeb GitLab on Bitnami

1. download GitLab 7.2.1-1
https://bitnami.com/stack/gitlab/installer

2. install open ssh
apt-get install openssh-server
http://bojack.pixnet.net/blog/post/29040829-%E3%80%90linux%E3%80%91%E5%9C%A8-ubuntu-%E4%B8%8A%E5%AE%89%E8%A3%9D-ssh-server

3. chmod 777 bitnami-gitlab-7.2.1-1-linux-installer.run
   ./bitnami-gitlab-7.2.1-1-linux-installer.run

4. make dir
mkdir /extdriver/repositories
chmod 777 /extdriver/repositories

5. change repositories path
gedit /opt/gitlab-7.2.1-1//apps/gitlab/gitlab-shell/config.yml
repos_path: "/opt/gitlab-7.2.1-1/apps/gitlab/repositories"
modify to
repos_path: "/extdriver/repositories"

gitlab_url: "http://localhost:8080/"
to
gitlab_url: "http://192.168.0.110/"

gedit /opt/gitlab-7.2.1-1/apps/gitlab/htdocs/config/gitlab.yml
repos_path: /opt/gitlab-7.2.1-1/apps/gitlab/repositories/
modify to
repos_path: /extdriver/repositories

6. edit system restart
gedit /etc/init.d/rc.local
//add at last line
/opt/gitlab-7.2.1-1/ctlscript.sh start mysql
/opt/gitlab-7.2.1-1/ctlscript.sh start apache
/opt/gitlab-7.2.1-1/ctlscript.sh start redis
/opt/gitlab-7.2.1-1/ctlscript.sh start gitlab_sidekiq
/opt/gitlab-7.2.1-1/ctlscript.sh start gitlabci_sidekiq
/opt/gitlab-7.2.1-1/ctlscript.sh start gitlabci_runner

7. create new ssh key
ssh-keygen -t rsa -C "jesse.stone@xxxxxx.com.tw"
cat ~/.ssh/id_rsa.pub
copy key

8. create new project on localhot
create project
paste key to [Deploy keys]


沒有留言:

張貼留言