gitlab설치 메뉴얼을 검색해보면 그 방법이 쉽지 않아 보인다.
그런데 docker로 설치를 하는 방법이 있어서 시도해봤다.
https://gitlab.com/gitlab-org/gitlab-ce/tree/master/docker
테스트한 운영체제는 Ubuntu 14.04
계정으로 로그인을 하고 메뉴얼대로 명령어를 실행시킨다.
-docker는 우분투 포함 설치본이 아니라 최신 배포폰으로 설치를 했다.
sudo docker run --detach \
--publish 8443:443 --publish 8080:80 --publish 2222: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
설치 끝
정말이다. 이게 끝이다.
8080포트로 접속을 하면 접속 UI가 보인다.
그런데 이상태로는 운영을 할 수 없다.
sudo docker exec -it gitlab /bin/bash
You can also edit just /etc/gitlab/gitlab.rb:
sudo docker exec -it gitlab vi /etc/gitlab/gitlab.rb
You should set the external_url to point to a valid URL.
You may also be interesting in Enabling HTTPS.
To receive e-mails from GitLab you have to configure the SMTP settings, because Docker image doesn't have a SMTP server.
Note that GitLab will reconfigure itself at each container start. You will need to restart the container to reconfigure your GitLab:
설정을 수정하면 된다.
호스트에서
/srv/gitlab/config의 gitlab.rb 파일을 루트 계정에서 수정해도 된다.
'지식창고 > 리눅스' 카테고리의 다른 글
vsftpd 여러개의 설정으로 운영 (0) | 2015.09.30 |
---|---|
vsftpd 가상계정과 로컬 계정 사용하기 (virtual and local user) (0) | 2015.09.25 |
우분투에 아파치 설정 하기 (2) | 2015.06.02 |
docker에 대한 오해와 이해 (0) | 2014.07.28 |
CentOS 7.0 에서 Yobi 설치 (0) | 2014.07.25 |