Commit 8d8fd6ec by Giang Tran

Merge branch 'master' of gitlab.zigexn.vn:ventura/dev-guide

parents 9ad98275 def368f4
## Setup Docker on CentOS
### 1. Install
Require Kernel version: >= 2.6.32-431.
Use `uname -a` to check current kernel version.
Download latest version at: https://get.docker.com/builds/Linux/x86_64/docker-latest
```bash
cd /usr/local/bin
wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker
chmod +x docker
```
### 2. Run docker daemon
Must run as `root`
```bash
sudo su -
docker -d &
```
### 3. Assign non-root access to docker daemon
For example, we need to give `docker` access to user `ventura`
Step 1: create group `docker`(if not exist)
```bash
groupadd docker
```
Step 2: add existing usere to `docker` group
```bash
usermod -a -G docker ventura
```
Step 3: Test command
```bash
docker version
```
\ No newline at end of file
## Jenkins Setup Guide
Target server: CenOS 6.6
Jenkins version: 1.607
### 1. Set up server
1.1. Install essensial build tools
```bash
sudo yum groupinstall "Development tools"
```
1.2. Install rbenv to Jenkins's home(/var/lib/jenkins)
```bash
git clone https://github.com/sstephenson/rbenv.git .rbenv
```
1.3. Install ruby-builds plugin
```bash
git clone https://github.com/sstephenson/ruby-build.git .rbenv/plugins/ruby-build
```
1.4. Config `.bashrc` file
```bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bashrc
echo 'eval "$(rbenv init -)"' >> .bashrc
```
### 2. Setup Jenkins
2.1. From the root page, click “Manage Jenkins” then “Manage Plugins”. From the “Available” tab, check the following plugins:
- rbenv
2.2. Select “Download now and install after restart”
### 3. Setup Project
\ No newline at end of file
## Basic testing
### Simple techniques
- Black box
- White box
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment