How to install vagrant on centos 6

Vagrant is Configuration Management (CM). Development environment made easy use vagrant. To knowledge, vagrant to help for building and deployment. It’s open-source. let’s go! “How to install vagrant on centos 6”. Vagrant the essential for DevOps Roles.

Requirements

  • Install VirtualBox
  • Install Vagrant
  • A sudo user

To update and install the dependency packages

 # yum update
 # yum install wget binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Step 1: To install VirtualBox on centos 6

Downloading and installing Virtualbox on centos 6

 # cd /etc/yum.repos.d/
 # wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
 # yum install VirtualBox-5.1

To add sudo user huupv to vboxusers

 # usermod -a -G vboxusers huupv

Step 2: To install vagrant on centos 6

Link download for the latest version of vagrant: https://www.vagrantup.com/downloads.html
For my lab, To download vagrant_2.0.0 for centos 64 bit

 # wget -qO- https://releases.hashicorp.com/vagrant/2.0.0/vagrant_2.0.0_x86_64.rpm?_ga=2.14788275.482799349.1505026202-1074579003.1504020307 -O vagrant_2.0.0_x86_64.rpm

To install vagrant

 # rpm -ivh vagrant_2.0.0_x86_64.rpm

Conclusion

Through the article, you can use How to install vagrant on centos 6 as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!

How to install GitLab on Linux

In this tutorial, How to install Gitlab on Linux such as centos server and ubuntu server. To use Gitlab CE or Community Edition is open source. It’s a Git repository, a Gitlab server like a GitHub server. The commands as below running root account.

The steps for installing the Gitlab server are as below:

  • SSH client connects to Gitlab server
  • To install the package dependencies and install Gitlab CE
  • The firewall has to open a port for the GitLab server

The hardware requirements for the Gitlab server:

  • 2 cores4GB
  • of RAM

Gitlab on Centos server

Update System Packages and Install Dependencies for the Centos server.

Open a terminal

Install them by running the following command:

# yum update -y
# yum install curl openssh-server postfix -y

Note: During Postfix installation, select Internet Site when prompted.

To install GitLab CE on the Centos server

# cd /opt/
# curl -O https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh
# sh script.rpm.sh
# yum -y install gitlab-ce
# gitlab-ctl reconfigure

Gitlab on the Ubuntu server

Update and install package dependencies for the Ubuntu server

# apt-get update -y
# apt-get install curl openssh-server postfix -y

Note: During Postfix installation, select Internet Site when prompted.

To install GitLab CE server on the Ubuntu server

# cd /opt/
# curl -O https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
# bash script.deb.sh
# apt-get install gitlab-ce
# gitlab-ctl reconfigure

How to change password root default for Gitlab server. The problem is when you first login “Invalid login or password” on the Gitlab server. This problem is solved!

# gitlab-rake gitlab:setup RAILS_ENV=production GITLAB_ROOT_PASSWORD=123456789

The finish, To install GitLab CE Server, the first login
From the browser you access to links:  “http://gitlab_domain_or_IP” and then login with a “root” user and with the initial password “5iveL!fe. (in this tutorial, the changed password for root is 123456789)

To restart the service for the Gitlab server

# gitlab-ctl restart

The output below:

 ok: run: gitaly: (pid 18182) 1s
 ok: run: gitlab-monitor: (pid 18190) 0s
 ok: run: gitlab-workhorse: (pid 18193) 1s
 ok: run: logrotate: (pid 18201) 0s
 ok: run: nginx: (pid 18210) 0s
 ok: run: node-exporter: (pid 18212) 0s
 ok: run: postgres-exporter: (pid 18232) 0s
 ok: run: postgresql: (pid 18241) 0s
 ok: run: prometheus: (pid 18251) 0s
 ok: run: redis: (pid 18256) 1s
 ok: run: redis-exporter: (pid 18261) 0s
 ok: run: sidekiq: (pid 18273) 0s
 ok: run: unicorn: (pid 18278) 1s

To check the status of Nginx

# gitlab-ctl status nginx

The output below:

 run: nginx: (pid 18210) 55s; run: log: (pid 12818) 2487s

Conclusion

Through this article, you have installed GitLab server on Linux with distros centos or ubuntu server.

You have successfully installed GitLab on Linux. You can now create users, and repositories, and start using GitLab for your version control needs.

I hope this will be helpful for you! Thank you for reading the DevopsRoles page!

Install docker and learn containers on Centos

Introduction

How to install and configure Docker on centos. Learning to download a Docker image, running a Docker container, and so forth.

Introduce the concept of Docker and containers. Explain their benefits, such as portability, scalability, and isolation. Briefly mention that the blog post will guide readers through the process of installing Docker on CentOS and getting acquainted with containers.

To install Docker and learn about containers on CentOS, Step by step install Docker on Centos 6 and Centos 7. You can follow the steps below

Install docker

Docker is incorporated into Centos 7 extras repositories, due to installation being simple. For Centos 6, you install epel-release” repositories

To install docker on Centos 7

# yum update -y && yum install epel-release -y && yum install docker -y

To install docker on Centos 6

# yum update -y && yum install epel-release -y && yum install docker-io -y

The finish installed docker, To check the status, start, and enable services docker the below commands:

For Centos 7

# systemctl start docker
# systemctl status docker
# systemctl enable docker

For Centos 6

# service docker start
# service docker status
# chkconfig docker on

To Learn basic containers, Docker

To search for a Docker image, for example, a Centos image

# docker search centos

You choose the image and download it locally, Use the docker pull command

# docker pull centos

List all the available Docker images on your host

# docker images

To delete images

# docker rmi centos

Creating and rune a container

# docker run --name My_OS centos cat /etc/hosts

Starting, stats, and stopping a container

# docker start My_OS
# docker stats My_OS
# docker stop My_OS

To Run an Interactive Session in a container

# docker run --name My_OS -it centos bash

To reconnect to the running container you need the container ID or name

# docker attach My_OS

Stopping a running container from the host

# docker kill My_OS

Conclusion

You’ve successfully installed Docker and started learning about containers on CentOS. Additionally, you may find it helpful to explore container orchestration tools like Docker Compose and Kubernetes to manage and deploy multi-container applications. I hope this helps you. Thank you for reading the DevopsRoles page!

Devops Tutorial

Exit mobile version