Ubuntu 1604 + GitLab install / omnibus

Ubuntu 1604 + GitLab install

 

 

Site: https://about.gitlab.com/installation/#ubuntu

참고Site: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-gitlab-on-ubuntu-16-04

Test환경 : vmware /  ubuntu 16.04

cpu : 2core

memory : 4G

GitLab omnibus 설치내용을 테스트 합니다.

Source 설치의 경우 하단 링크를 통하여 확인 할수 있습니다. Source 설치 라고 하여도 Source compile 설치는 아닙니다. 🙂

https://docs.gitlab.com/ee/install/installation.html

 

 pkg update 및 의존성 pkg 설치

test@docker-test:~$ sudo apt-get update
test@docker-test:~$ sudo apt-get install -y curl openssh-server ca-certificates

 

postfix 설치

test@docker-test:~$ sudo apt-get install -y postfix

 

GitLab 설치

test@docker-test:~$ cd /tmp/
test@docker-test:/tmp$ curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
test@docker-test:/tmp$ sudo bash /tmp/script.deb.sh
test@docker-test:/tmp$ sudo apt-get install gitlab-ce
It looks like GitLab has not been configured yet; skipping the upgrade script.

       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.



     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/


Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
  sudo gitlab-ctl reconfigure

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

test@docker-test:/tmp$

 

GitLab 설정

test@docker-test:~$ sudo vi /etc/gitlab/gitlab.rb
## 도메인 설정을 합니다. 
external_url 'http://gitlab.example.com'

## 도메인 설정시 letsencrypt [ 'enable'] 을 설정합니다. 
# letsencrypt['enable'] = nil
# letsencrypt['contact_emails'] = [] # This should be an array of email addresses to add as contacts


## ==> 

letsencrypt['enable'] = true
letsencrypt['contact_emails'] = ['sammy@yourdomain.com']

 

GitLab 설정을 저장 합니다.

test@docker-test:~$ sudo gitlab-ctl reconfigure

 

Web 접속을 합니다.

 

Password 를 설정합니다.

 

설정한 password 로 로그인을 합니다.

Username : root

password : 설정한 password

 

 

사용법의 경우 추후 테스트 하도록 합니다. 🙂

FreeBSD 에서는 nginx + postgreSQL + Redis 를 별도로 설치 했지만 process 를 확인시 동작 하는걸로 확인 할수 있습니다.

test@docker-test:~$ sudo ps -aux |grep -i nginx
root      25277  0.0  0.0   4244   628 ?        Ss   21:30   0:00 runsv nginx
root      25279  0.0  0.1  42304  5036 ?        Ss   21:30   0:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
gitlab-+  25280  0.0  0.0  46916  3868 ?        S    21:30   0:00 nginx: worker process
gitlab-+  25281  0.0  0.1  46916  7352 ?        S    21:30   0:00 nginx: worker process
gitlab-+  25282  0.0  0.0  42512  2680 ?        S    21:30   0:00 nginx: cache manager process
root      25748  0.0  0.0   4388   716 ?        S    21:31   0:00 svlogd -tt /var/log/gitlab/nginx
test      27713  0.0  0.0  14224  1016 pts/0    R+   21:42   0:00 grep --color=auto -i nginx
test@docker-test:~$ sudo ps -aux |grep -i redis
root      24914  0.0  0.0   4244   584 ?        Ss   21:29   0:00 runsv redis
gitlab-+  24916  0.6  0.2  41648 10272 ?        Ssl  21:29   0:05 /opt/gitlab/embedded/bin/redis-server 127.0.0.1:0
root      25565  0.0  0.0   4244   668 ?        Ss   21:31   0:00 runsv redis-exporter
gitlab-+  25567  0.1  0.3 170548 13628 ?        Ssl  21:31   0:00 /opt/gitlab/embedded/bin/redis_exporter -web.listen-address=localhost:9121 -redis.addr=unix:///var/opt/gitlab/redis/redis.socket
root      25730  0.0  0.0   4388   668 ?        S    21:31   0:00 svlogd -tt /var/log/gitlab/redis
root      25791  0.0  0.0   4388   768 ?        S    21:31   0:00 svlogd -tt /var/log/gitlab/redis-exporter
test      27741  0.0  0.0  14224   940 pts/0    S+   21:43   0:00 grep --color=auto -i redis
test@docker-test:~$ sudo ps -aux |grep -i postgres
root      24977  0.0  0.0   4244   764 ?        Ss   21:29   0:00 runsv postgresql
gitlab-+  24979  0.0  1.1 1096720 45964 ?       Ss   21:29   0:00 /opt/gitlab/embedded/bin/postgres -D /var/opt/gitlab/postgresql/data
gitlab-+  24981  0.0  0.6 1096988 24680 ?       Ss   21:29   0:00 postgres: checkpointer process
gitlab-+  24982  0.0  0.2 1096720 10904 ?       Ss   21:29   0:00 postgres: writer process
gitlab-+  24983  0.0  0.4 1096720 18256 ?       Ss   21:29   0:00 postgres: wal writer process
gitlab-+  24984  0.0  0.1 1097264 7092 ?        Ss   21:29   0:00 postgres: autovacuum launcher process
gitlab-+  24985  0.0  0.1  33268  4772 ?        Ss   21:29   0:00 postgres: stats collector process
root      25664  0.0  0.0   4244   704 ?        Ss   21:31   0:00 runsv postgres-exporter
gitlab-+  25682  0.0  0.7 1110084 28912 ?       Ss   21:31   0:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  25729  0.0  0.7 1111600 30760 ?       Ss   21:31   0:00 postgres: gitlab gitlabhq_production [local] idle
root      25731  0.0  0.0   4388   656 ?        S    21:31   0:00 svlogd -tt /var/log/gitlab/postgresql
gitlab-+  25836  0.1  0.3 148416 15260 ?        Ssl  21:31   0:00 /opt/gitlab/embedded/bin/postgres_exporter --web.listen-address=localhost:9187 --extend.query-path=/var/opt/gitlab/postgres-exporter/queries.yaml
gitlab-+  25841  0.1  0.5 1108380 22272 ?       Ss   21:31   0:00 postgres: gitlab-psql postgres [local] idle
root      25918  0.0  0.0   4388   684 ?        S    21:31   0:00 svlogd -tt /var/log/gitlab/postgres-exporter
gitlab-+  25955  0.0  0.6 1108532 27868 ?       Ss   21:32   0:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  25956  0.0  0.5 1107520 22768 ?       Ss   21:32   0:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  25957  0.0  0.6 1107808 25468 ?       Ss   21:32   0:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  25981  0.0  0.7 1107964 28428 ?       Ss   21:32   0:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  27183  0.0  0.6 1107864 25600 ?       Ss   21:39   0:00 postgres: gitlab gitlabhq_production [local] idle
test      27765  0.0  0.0  14224   980 pts/0    S+   21:43   0:00 grep --color=auto -i postgres
test@docker-test:~$

 

 

 

 

댓글 남기기