Skip to content

Commit 14c4ff7

Browse files
committed
Merge pull request #78 from zendtech/master
Created php-zendserver
2 parents 7439290 + 0480292 commit 14c4ff7

File tree

5 files changed

+92
-0
lines changed

5 files changed

+92
-0
lines changed

php-zendserver/README-short.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Zend Server - the integrated PHP application platform for mobile and web apps.

php-zendserver/content.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
What is Zend Server?
2+
==================
3+
4+
Zend Server is the integrated application platform for PHP mobile and web apps.
5+
Zend Server provides you with a highly available PHP production environment which includes, amongst other features, a highly reliable PHP stack, application monitoring, troubleshooting, and the all-new Z-Ray.
6+
###Boost your Development with Z-Ray
7+
Using Zend Server Z-Ray is akin to wearing X-Ray goggles, effortlessly giving developers deep insight into how their code is running as they are developing it – all without having to change any of their habits or workflow. With Z-Ray, developers can immediately understand the impact of their code changes, enabling them to both improve quality and solve issues long before their code reaches production. In addition to the obvious benefits of this ‘Left Shifting’ – better performance, fewer production issues and faster recovery times – using Z-Ray is also downright fun!
8+
###Powering Continuous Delivery
9+
Zend Server is the platform that enables Continuous Delivery, which provides consistency, automation and collaboration capabilities throughout the application delivery cycle. Patterns are available to integrate Zend Server with: Chef, Jenkins, Nagios, Vmware, Puppet.
10+
11+
###Additional Resources
12+
http://www.zend.com/
13+
http://kb.zend.com/
14+
http://files.zend.com/help/Zend-Server/zend-server.htm#faqs.htm
15+
http://files.zend.com/help/Zend-Server/zend-server.htm#getting_started.htm
16+
17+
PHP-ZendServer
18+
==============
19+
This is a cluster-enabled version of a Dockerized Zend Server 7.0 container.
20+
With Zend Server on Docker, you'll get your PHP applications up and running on a highly available PHP production environment which includes, amongst other features, a highly reliable PHP stack, application monitoring, troubleshooting, and the new and innovative new technology - Z-Ray. Z-Ray gives developers unprecedented visibility into their code by tracking and displaying in a toolbar live and detailed info on how the various elements constructing their page are performing.
21+
22+
Usage
23+
-----
24+
#### Launching the Container from Docker-Hub
25+
Zend Server is shared on [Docker-Hub] as **php-zendserver**.
26+
- To start a single Zend Server instance, execute:
27+
28+
$ docker run php-zendserver
29+
30+
- You can specify the PHP and Zend Server version by adding ':<php-version>' or ':&lt;ZS-version&gt;-php&lt;version&gt;' to the 'docker run' command. Availible PHP version are 5.4 & 5.5 (5.5 is the default) and Zend Server 7
31+
(for example: php-zendserver:7.0-php5.4).
32+
33+
- To start a Zend Server cluster, execute the following command for each cluster node:
34+
35+
$ docker run -e MYSQL_HOSTNAME=<db-ip> -e MYSQL_PORT=3306 -e MYSQL_USERNAME=<username> -e MYSQL_PASSWORD=<password> -e MYSQL_DBNAME=zend php-zendserver
36+
37+
#### Launching the Container from Dockerfile
38+
39+
- From a local folder containing this repo's clone, execute the following command to generate the image. The **image-id** will be outputted:
40+
41+
$ docker build .
42+
43+
- To start a single Zend Server instance, execute:
44+
45+
$ docker run <image-id>
46+
47+
- To start a Zend Server cluster, execute the following command on each cluster node:
48+
49+
$ docker run -e MYSQL_HOSTNAME=<db-ip> -e MYSQL_PORT=3306 -e MYSQL_USERNAME=<username> -e MYSQL_PASSWORD=<password> -e MYSQL_DBNAME=zend <image-id>
50+
51+
#### Accessing Zend server
52+
Once started, the container will output the information required to access the PHP application and the Zend Server UI, including an automatically generated admin password.
53+
54+
To access the container **remotely**, port forwarding must be configured, either manually or using docker.
55+
For example, this command redirects port 80 to port 88, and port 10081 (Zend Server UI port) to port 10088:
56+
57+
$ docker run -p 88:80 -p 10088:10081 php-zendserver
58+
59+
For clustered instances:
60+
61+
$ docker run -p 88:80 -p 10088:10081 -e MYSQL_HOSTNAME=<db-ip> -e MYSQL_PORT=3306 -e MYSQL_USERNAME=<username> -e MYSQL_PASSWORD=<password> -e MYSQL_DBNAME=zend <image-id>
62+
63+
Please note, that when running multiple instances only one instance can be bound to a port.
64+
If you are running a cluster, either assign a port redirect to one node only, or assign a different port to each container.
65+
66+
#### Env variables
67+
Env variables are passed in the run command with the "-e" switch.
68+
69+
##### Optional env-variables:
70+
71+
To specify a pre-defined admin password for Zend Server use:
72+
- ZS_ADMIN_PASSWORD
73+
74+
MySQL vars for clustered ops. *ALL* are required for the node to properly join a cluster:
75+
- MYSQL_HOSTNAME - ip or hostname of MySQL database
76+
- MYSQL_PORT - MySQL listening port
77+
- MYSQL_USERNAME
78+
- MYSQL_PASSWORD
79+
- MYSQL_DBNAME - Name of the database Zend Server will use for cluster ops (created automatically if it does not exist).
80+
81+
To specify a pre-purchased license use the following env vars:
82+
- ZEND_LICENSE_KEY
83+
- ZEND_LICENSE_ORDER
84+
85+
### Minimal Requirements
86+
87+
- Each Zend Server Docker container requires 1GB of availible memory.
88+
89+
[Docker-Hub]:https://registry.hub.docker.com/_/php-zendserver/

php-zendserver/license.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Zend Technologies Ltd.

php-zendserver/logo.png

11.1 KB
Loading

php-zendserver/user-feedback.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Think we’ve missed something? Let us know at: http://www.zend.com/en/support-center

0 commit comments

Comments
 (0)