- CentOS (DOCKERCENTOS)
- git, docker, docker-compose
- 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
- Init Docker
./help.sh build
./help.sh up
- Useful CLI
./help.sh latest // Update latest version of this repo
./help.sh down
- Apache2 test page http://localhost
- PHPINFO http://localhost/test
# /etc/hosts
127.0.0.1 lihocent.dev public.lihocent.dev
-
PHP Project
- PHP MySQLi connect http://localhost/php/mysql/mysqli.php
- PHP PDO connect http://localhost/php/mysql/pdo.php
- Default environment
DOCKERCENTOS_MYSQL_1_PORT_3306_TCP_ADDR
MYSQL_DATABASE
MYSQL_USER
MYSQL_PASSWORD
- 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
- 1.x.x: docker-compose
- x.1.x: os (centos 6)
- x.x.1: dependencies, programming languages (nodejs, php, mysql, v.v...)