All Projects → febelery → docker

febelery / docker

Licence: other
docker environment for PHP developers

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to docker

drupal-dev-docker
An opinionated Drupal development environment based on Docker.
Stars: ✭ 22 (+83.33%)
Mutual labels:  composer, docker-environment
is-biz-mail-php
isBizMail tells you whether a given email address belongs to a free email account provider (gmail.com, yahoo.es, yandex.ru etc) or not.
Stars: ✭ 19 (+58.33%)
Mutual labels:  composer
LaravelFtp
Laravel FTP client
Stars: ✭ 15 (+25%)
Mutual labels:  composer
composer-install
A GitHub Action to streamline installation of PHP dependencies with Composer.
Stars: ✭ 151 (+1158.33%)
Mutual labels:  composer
composer-wp
Manage WordPress core, plugins, and themes with composer.
Stars: ✭ 16 (+33.33%)
Mutual labels:  composer
lua-resty-danmaku
Live danmaku server in OpenResty (WIP)
Stars: ✭ 12 (+0%)
Mutual labels:  openresty
cdn-up-and-running
CDN Up and Running - an introduction about how modern CDNs works
Stars: ✭ 131 (+991.67%)
Mutual labels:  openresty
JakePHP
JakePHP is a boilerplate created for modern web application development on Linux platforms. Simply clone, and start developing!
Stars: ✭ 12 (+0%)
Mutual labels:  composer
slate-yjs-example
Minimal example project for slate-yjs
Stars: ✭ 43 (+258.33%)
Mutual labels:  slate
lua-resty-acme
Automatic Let's Encrypt certificate serving and Lua implementation of ACMEv2 procotol
Stars: ✭ 95 (+691.67%)
Mutual labels:  openresty
lua-resty-tarpit
OpenResty response time inflation
Stars: ✭ 25 (+108.33%)
Mutual labels:  openresty
docker-drupal
Docker scaffolding for Drupal 8
Stars: ✭ 41 (+241.67%)
Mutual labels:  composer
lua-resty-jump-consistent-hash
consistent hash for openresty
Stars: ✭ 24 (+100%)
Mutual labels:  openresty
wpacked
📦 WPacked is a WordPress development starter kit with portability and immediate local development in mind.
Stars: ✭ 73 (+508.33%)
Mutual labels:  composer
assert-true
A lot of ways to you set your assert as true
Stars: ✭ 19 (+58.33%)
Mutual labels:  composer
lua-resty-aries
openresty and lua multi-function template
Stars: ✭ 47 (+291.67%)
Mutual labels:  openresty
xml-lint
A php tool to lint and validate xml files from the commandline.
Stars: ✭ 14 (+16.67%)
Mutual labels:  composer
crook
Simple hook management tool made with PHP
Stars: ✭ 60 (+400%)
Mutual labels:  composer
XoopsCore25
XOOPS Core 2.5.x (current release is 2.5.10: https://github.com/XOOPS/XoopsCore25/releases)
Stars: ✭ 50 (+316.67%)
Mutual labels:  composer
wasm-nginx-module
Run Wasm in OpenResty/Nginx
Stars: ✭ 55 (+358.33%)
Mutual labels:  openresty

docker

What is this?

This is the docker environment for PHP developers

  • php
  • nginx
  • mysql
  • redis
  • composer
  • openresty
  • slate
  • mongo

HOW TO USE

  • Download docker or docker for windows
  • Shared Drivers
  • Config Daemon Registry mirrors eg:daocloud
  • Enter this directory

SKILL

  • enter container DockerExec php-fpm
Function DockerExec($name){
    docker exec -it  $(docker ps | grep $name| awk '{print $1}')  /bin/bash
}
  • composer
cd composer/ 
docker build -t composer-china .
Function composer {
    docker run --rm --interactive --tty  --volume ${PWD}:/app composer-china  composer $args
}
  • git bash inside phpstorm terminal

    File -> Settings -> Tools -> Terminal

    Put the following line in the Shell Path field (adjust as necessary for your platform):

    "C:\Program Files (x86)\Git\bin\sh.exe" -login -i

    If you are using the 64-bit version of Git, the path is different:

    "C:\Program Files\Git\bin\sh.exe" -login -i

ALIAS

alias winpwd="pwd | sed 's/^\/d/D:/' | sed 's/^\/c/C:/'"
alias composer="docker run --rm --interactive --tty  --volume `winpwd`:/app composer-china composer --ignore-platform-reqs --no-scripts $args"
alias php_docker="docker exec -ti `docker ps | grep php-fpm | awk '{print $1}'` bash"
alias python="docker run -it --rm --volume $(winpwd):/usr/src/app $(docker images | grep docker_python | awk '{print $3}') ipython $args"
alias cnpm="npm --registry=https://registry.npm.taobao.org --cache=$HOME/.npm/.cache/cnpm --disturl=https://npm.taobao.org/dist --userconfig=$HOME/.cnpmrc"
alias wrk='docker run --rm williamyeh/wrk $args'
alias openresty="docker exec -ti `docker ps | grep openresty | awk '{print $1}'` openresty $args"

WRK

docker pull williamyeh/wrk
  • Show usage
docker run --rm williamyeh/wrk
  • Script example
docker run --rm  -v `pwd`:/data  \
      williamyeh/wrk  \
      -s script.lua  http://www.google.com/

Slate

  • download github
  • copy directory {slate_github}/slate/source to ./slate/source
    • or set SLATE_SOURCE_PATH in .env file
  • check ./slate/source has index.html.md file and at least six directory
  • run docker-compose up -d slate
  • open http://localhost:4567 in brower

enjoy it

Author

Copy By laradocker

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].