Public | Automated Build

Last pushed: 17 days ago
Short Description
As title.
Full Description

auto_alpine_php7_fpm_nginx_all_default

autobuild [ alpine + php7-fpm + nginx ] with default config.

Notes: Size is not our only purpose, practical is.

Usage

  • pull & run
    # pull the latest build from hub.docker:
    docker pull cmptech/auto_alpine_php7_fpm_nginx_all_default
    # run in tty to check php version:
    docker run -t cmptech/auto_alpine_php7_fpm_nginx_all_default php7 -v
    

or you can

  • git clone && docker build && docker run

Benchmark

Notes: something is wrong, the RPS is too low

siege -c 16 -b -t 10S http://127.0.0.1:8800/index.php
** SIEGE 3.0.5
** Preparing 16 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:                  15123 hits
Availability:                 100.00 %
Elapsed time:                   9.18 secs
Data transferred:               0.42 MB
Response time:                  0.01 secs
Transaction rate:            1647.39 trans/sec
Throughput:                     0.05 MB/sec
Concurrency:                   11.40
Successful transactions:       15123
Failed transactions:               0
Longest transaction:            0.06
Shortest transaction:           0.00

Below is single nginx (non-docker) with php5-fpm(non-docker)

Transactions:                 117587 hits
Availability:                 100.00 %
Elapsed time:                  19.71 secs
Data transferred:               3.30 MB
Response time:                  0.01 secs
Transaction rate:            5965.85 trans/sec
Throughput:                     0.17 MB/sec
Concurrency:                   63.46
Successful transactions:      117587
Failed transactions:               0
Longest transaction:            0.09
Shortest transaction:           0.00

TODO

make a fun script to start m container to run fpm, n container to run nginx:

start_app.sh --nginx=2 --fpm=4 -v /htdocs/:/htdocs $tag

nginx(1)=>\
            \
             \
  nginx(...)   fpm (1..m)
             /
            /
           /
nginx(n)=>

MISC

Inside the GFW, for better docker pull, using:
export MACHINE_DOCKER_INSTALL_URL=http://docker-mirror.oss-cn-hangzhou.aliyuncs.com/

Docker Pull Command
Owner
cmptech