Oracle Linux works like RedHat Enterprise Linux or CentOS :

[root@gitlab ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)

“curl” ; “policycoreutils” ; “openssh-server” ; “openssh-clients” and “postfix” already installed :

[root@gitlab ~]# rpm -qa | grep -E "curl|policycoreutils|openssh-server|openssh-clients|postfix"
postfix-2.10.1-6.0.1.el7.x86_64
openssh-server-6.6.1p1-25.el7_2.x86_64
policycoreutils-2.2.5-20.0.1.el7.x86_64
openssh-clients-6.6.1p1-25.el7_2.x86_64
libcurl-7.29.0-25.0.1.el7.x86_64
python-pycurl-7.19.0-17.el7.x86_64
curl-7.29.0-25.0.1.el7.x86_64

“postfix” already up & running :

[root@gitlab ~]# systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2016-07-16 13:24:34 CEST; 7min ago
  Process: 1628 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 1609 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 1226 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 2460 (master)
   CGroup: /system.slice/postfix.service
           ├─2460 /usr/libexec/postfix/master -w
           ├─2497 pickup -l -t unix -u
           └─2498 qmgr -l -t unix -u

Jul 16 13:24:33 gitlab.argonay.wou systemd[1]: Starting Postfix Mail Transport Agent...
Jul 16 13:24:34 gitlab.argonay.wou postfix/postfix-script[2455]: starting the Postfix mail system
Jul 16 13:24:34 gitlab.argonay.wou postfix/master[2460]: daemon started -- version 2.10.1, configuration /etc/postfix
Jul 16 13:24:34 gitlab.argonay.wou systemd[1]: Started Postfix Mail Transport Agent.
[root@gitlab ~]# systemctl is-enabled postfix
enabled

Enable http :

[root@gitlab ~]# firewall-cmd --permanent --add-service=http
success
[root@gitlab ~]# systemctl reload firewalld

Install GitLab 8.9.6 (Cummunity Edition)

Download gitLab-CE repository :

[root@gitlab ~]# cd /tmp
[root@gitlab tmp]# curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash
---
---
---
Installed:
  yum-utils.noarch 0:1.1.31-34.0.1.el7

Dependency Installed:
  python-chardet.noarch 0:2.2.1-1.el7_1                                 python-kitchen.noarch 0:1.1.1-5.el7

Complete!
Generating yum cache for gitlab_gitlab-ce...
Importing GPG key 0xE15E78F4:
 Userid     : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
 Fingerprint: 1a4c 919d b987 d435 9396 38b9 1421 9a96 e15e 78f4
 From       : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey

The repository is setup! You can now install packages.

Fix some mistakes in “/etc/yum.repos.d/gitlab_gitlab-ce.repo” (“el” instead of “ol”) :

[root@gitlab tmp]# cat /etc/yum.repos.d/gitlab_gitlab-ce.repo
[gitlab_gitlab-ce]
name=gitlab_gitlab-ce
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/7/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

[gitlab_gitlab-ce-source]
name=gitlab_gitlab-ce-source
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

It’s time to install GitLab-CE :

[root@gitlab tmp]# yum -y install gitlab-ce
---
---
---
Installed:
  gitlab-ce.x86_64 0:8.9.6-ce.0.el7

Complete!

And to configure it :

[root@gitlab tmp]# gitlab-ctl reconfigure

Use your GitLab Community Edition repository

Open a browser, and configure :

gitlab

 

 

 

 

 

 

 

 

 

 

 

 

Set your password and logon (“root”) :

gitlab1

 

 

 

 

 

 

 

 

 

 

 

 

 

Create your first project :

gitlab2

 

 

 

 

 

 

 

 

 

 

 

 

Your project exists now :

gitlab3

 

 

 

 

 

 

 

 

 

 

 

 

 

For example, on any Linux machine, download a project :

[wou@any_linux~]$ git clone https://github.com/unixmind/puppet-timesyncd.git
Cloning into 'puppet-timesyncd'...
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 21 (delta 2), reused 21 (delta 2), pack-reused 0
Unpacking objects: 100% (21/21), done.

Go to the new created directory :

[wou@any_linux~]$ cd puppet-timesyncd

And push the project to this new git remote repository :

  • Reinitialize the project :
[wou@any_linux puppet-timesyncd]$ git init
Reinitialized existing Git repository in /home/wou/puppet-timesyncd/.git/
  • Here is the current origin :
[wou@any_linux puppet-timesyncd]$ git remote -v
origin https://github.com/unixmind/puppet-timesyncd.git (fetch)
origin https://github.com/unixmind/puppet-timesyncd.git (push)
  • Set the new origin :
[wou@any_linux puppet-timesyncd]$ git remote set-url origin http://192.168.1.160/root/puppet-timesyncd.git
  • Add all files :
[wou@any_linux puppet-timesyncd]$ git add .
  • Commit those change :
[wou@any_linux puppet-timesyncd]$ git commit -m "from \"https://github.com/unixmind/puppet-timesyncd.git\""
# On branch master
nothing to commit, working directory clean
  • Push this project :
[wou@any_linux puppet-timesyncd]$ git push -u origin master
Username for 'http://192.168.1.160': root
Password for 'http://root@192.168.1.160':
Counting objects: 21, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (21/21), 9.46 KiB | 0 bytes/s, done.
Total 21 (delta 2), reused 0 (delta 0)
To http://192.168.1.160/root/puppet-timesyncd.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

Your project is here :

gitlab4

 

 

 

 

 

 

 

 

 

 

 

 

You can overwrite “README.md” (MarkDown style) file :

[wou@any_linux puppet-timesyncd]$ cat README.md
# Puppet module for Debian jessie timesyncd service
---

## Usage :
``
include ::timesyncd
``

Add this update :

[wou@any_linux puppet-timesyncd]$ git add README.md

Commit :

[wou@any_linux puppet-timesyncd]$ git commit -m "\"README.md\" is now more usable"
[master 4155ce1] "README.md" is now more usable
 Committer: wou <wou@gitlab.argonay.wou>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 2 insertions(+), 2 deletions(-)

And push :

[wou@any_linux puppet-timesyncd]$ git commit -m "\"README.md\" is now more usable"
[master 4155ce1] "README.md" is now more usable
 Committer: wou <wou@gitlab.argonay.wou>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 2 insertions(+), 2 deletions(-)

On your browser, after a refresh, you will see your text updated :

gitlab5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PDF24    Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *


*