I wrote down install log of gitlab on the Mac.

1. Install docker : 
2. make "/srv" folder on root.
3. update permission it and add shared folder on docker's reference.
사용자 삽입 이미지
사용자 삽입 이미지


4. pull gitlab image from docker hub : docker pull gitlab/gitlab-ce
5. start gitlab
sudo docker run --detach \
--hostname vrainiac.ddns.net \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab \
--volume /srv/gitlab/logs:/var/log/gitlab \
--volume /srv/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest

* perhaps you could saw this message on the log : ruby_block("directory resource: /var/opt/gitlab/git-data/repositories")

6. stop gitlab : docker stop gitlab
7. update permission
sudo chmod 0777 /srv/gitlab/data
sudo chmod 2770 /srv/gitlab/data/git-data/repositories
8. start gitlab : docker start gitlab

Fin!
2017/09/12 12:27 2017/09/12 12:27

트랙백 주소 :: 이 글에는 트랙백을 보낼 수 없습니다