All Projects → markthink → Dockerphp

markthink / Dockerphp

基于Docker容器化PHP开发环境解决方案

Labels

Projects that are alternatives of or similar to Dockerphp

Passport Strategy
An abstract class implementing Passport's strategy API.
Stars: ✭ 84 (-9.68%)
Mutual labels:  makefile
Android device xiaomi gemini
Stars: ✭ 89 (-4.3%)
Mutual labels:  makefile
Ssd Text detection
A modified SSD model for text detection
Stars: ✭ 91 (-2.15%)
Mutual labels:  makefile
Sinetek Rtsx
macOS driver for Realtek SD card readers.
Stars: ✭ 85 (-8.6%)
Mutual labels:  makefile
Wayland Protocols
Wayland protocol development
Stars: ✭ 87 (-6.45%)
Mutual labels:  makefile
Apk File
Search apk package contents via the command line.
Stars: ✭ 89 (-4.3%)
Mutual labels:  makefile
Ergodone
ErgoDox using pro micro. Original work by Dox. Brainhole association present
Stars: ✭ 84 (-9.68%)
Mutual labels:  makefile
Wallpapers
Wallpapers for Pop!_OS
Stars: ✭ 91 (-2.15%)
Mutual labels:  makefile
Cardano Tutorials
ARCHIVED-This content in this repository is now located at https://docs.cardano.org/projects/cardano-node/
Stars: ✭ 89 (-4.3%)
Mutual labels:  makefile
Local Dev With Docker For Mac Kubernetes
Notes about local development with Docker for Mac and Kubernetes
Stars: ✭ 91 (-2.15%)
Mutual labels:  makefile
Crab project
ROS hexapod robot on BeagleBone Black
Stars: ✭ 85 (-8.6%)
Mutual labels:  makefile
Value Investing Newbie
Stars: ✭ 87 (-6.45%)
Mutual labels:  makefile
Drake
An R-focused pipeline toolkit for reproducibility and high-performance computing
Stars: ✭ 1,301 (+1298.92%)
Mutual labels:  makefile
Firmware
Armbian firmware
Stars: ✭ 85 (-8.6%)
Mutual labels:  makefile
Aira
Autonomous intelligent robot agent (AIRA) project implements the standard of economic interaction between human-robot and robot-robot.
Stars: ✭ 91 (-2.15%)
Mutual labels:  makefile
Deep Base
Deep learning base image for Docker (Tensorflow, Caffe, MXNet, Torch, Openface, etc.)
Stars: ✭ 84 (-9.68%)
Mutual labels:  makefile
Animation Worklet
🚫 Old repository for AnimationWorklet specification ➡️ New repository: https://github.com/w3c/css-houdini-drafts
Stars: ✭ 89 (-4.3%)
Mutual labels:  makefile
Mysqlswiftnative
MySQL Swift Native Driver
Stars: ✭ 92 (-1.08%)
Mutual labels:  makefile
Openwrt Packages
Onion Packages Feed for OpenWRT
Stars: ✭ 91 (-2.15%)
Mutual labels:  makefile
Flash2cocos2d X
use this tool you can export the flash data, and use the data in cocos2d-x game
Stars: ✭ 90 (-3.23%)
Mutual labels:  makefile

Docker容器化PHP开发环境搭建-DVWA (含xdebug调试)

Docker容器化技术在过去的2015年得到了大面积的普及应用,特别是以灵雀云、数人云、阿里云以及阿里百川TAE2.0等为代表的服务商的推动,可以预见2016会是云服务大爆发的一年,会有越来越多的互联网企业将自己的业务部署到基于Docker容器的环境里来。

本文以DVWA部署为例,来讲解PHP环境部署+基于XDEBUG调试环境的容器化解决方案。

segmentfault参考链接

PHP配置图

##创建目录

###基础目录

  • ~/dvwa/data 存放MySQL数据库
  • ~/dvwa/htdocs 项目代码
  • ~/dvwa/log 存放所有输出log

###从代码仓库构建

cd ~
git clone https://github.com/MarkThink/DockerPHP.git dvwa

##创建这些目录

mkdir ~/dvwa ~/dvwa/data ~/dvwa/data/mysql ~/dvwa/log ~/dvwa/log/nginx ~/dvwa/log/php ~/dvwa/htdocs

##下载镜像及构建

cd ~/dvwa/htdocs/dvawfiles
make pull
make dl
make build

##下载代码

cd ~/dvwa/htdocs
git clone https://github.com/MarkThink/DVWA.git dvwa_app

##IDE调试配置

IDE配置一

IDE配置二

##绑定域名

sudo vi /etc/hosts

192.168.99.100	www.dvwa.com

https://www.arroyolabs.com/2016/10/docker-xdebug/

docker-xdebug

Example of how to integrate Docker with xdebug on clean Erdiko example

Quick Start

With current settings you will need to create an alias with static IP on Linux:

sudo ip addr add 10.254.254.254/24 brd + dev eth0 label eth0:1

if you're running OS X:

sudo ifconfig en0 alias 10.254.254.254 255.255.255.0

Go to xdebug_56/docker and run docker-compose up, and voila, a pristine Erdiko project up and running.

To browse it go to http://localhost:8088/

for xdebug Client setup & alternate configuration please refer to:

http://blog.arroyolabs.com/2016/10/docker-xdebug/

###Happly Enjoy!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].