Docker script of use CentOS for LAMP environment. On the premise of developing environment
This script is build tool for structure LAMP developing environment easily,and rewrite conforming with your project. Based by CentOS. Structured shell script and Dockerfile and Docker-compose yml. Docker-compose yml called in shell script "buildDocker.sh", then structure docker image by each Dockerfile. And structure dbserver with "init.sql" and "sqlinit.sh". When Structure docker image, called startup script "init.sh". That is shell script for example yum call to intall apache, php, etc, and startup config. And WebServer booted by "debugDocker.sh" in last.
File tree is as follows:
buildtools
├── buildDocker.sh
├── downDocker.sh
├── docker-compose.yml
├── mysql
│ └── Dockerfile
└── myweb
├── debugDocker.sh
├── Dockerfile
├── sqlinit.sh
├── init.sql
└── init.sh
- docker
- docker-compose
- git
for example install ubuntu.
# apt install docker docker-compose git
$ git clone https://github.com/Hayakuchi0/dclamp.git
$ cd dclamp/buildtools
# ./buildDocker.sh
# ./downDocker.sh
$ curl localhost:8001
$ mysql -u root -h dbserver -pexample
This script licenced by MIT licence.
Hayakuchi0