/liho-cent

Liho devops for CentOS

Primary LanguageShellMIT LicenseMIT

Stories in Ready

CENTOS ENVIRONMENT for PROJECT DEVELOPMENT

  • CentOS (DOCKERCENTOS)

DEPENDENCIES

  • git, docker, docker-compose

INIT

  • Clone this repo inside any project that need docker centos as local development
# path: cd your-project
git clone git@github.com:lecaoquochung/liho-cent.git
  • Run this command for sync docker-centos to your project path
# rsync help (?)
rsync -avz --exclude-from 'liho-cent/exclude.txt' liho-cent/* ./
  • Init database: Put your project database as sql in path below (it will be automatically bootstrapped) TODO testcase for init *.sql file
Path: your-project/docker/db/init.d/
  • Update your project .gitignore with file gitignore.txt
TODO helper CLI for automatically copy

GET STARTED

  • Init Docker
./help.sh build
./help.sh up
  • Useful CLI
./help.sh latest // Update latest version of this repo
./help.sh down

TEST

# /etc/hosts
127.0.0.1 lihocent.dev public.lihocent.dev
- PHP MySQLi connect http://localhost/php/mysql/mysqli.php
- PHP PDO connect http://localhost/php/mysql/pdo.php

ENV

  • Default environment
DOCKERCENTOS_MYSQL_1_PORT_3306_TCP_ADDR
MYSQL_DATABASE
MYSQL_USER
MYSQL_PASSWORD

SUPPORT FRAMEWORK

CONTRIBUTE & QUESTION

  • Create some issue here)
  • Make pull request for issue by branch name matching with issue number (Ex: branch name for PR issue-xx)
  • Email me if you have any question me@lehungio.com

VERSION

  • 1.x.x: docker-compose
  • x.1.x: os (centos 6)
  • x.x.1: dependencies, programming languages (nodejs, php, mysql, v.v...)

REFERENCE