-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Created php-zendserver #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1c1acf1
Zend initial commit
dror-g 8967e04
Updated README
dror-g 682bd9f
Updated README
dror-g fc17124
Updated docs to reflect ZS version tags
dror-g 1e337ae
Update content.md
dror-g d651e1b
Update content.md
dror-g 3f51e9e
Reorganized for update.sh
dror-g 9277dd4
Merge branch 'master' of github.com:zendtech/docs
dror-g 0480292
Reorganized for update.sh
dror-g File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Zend Server - the integrated PHP application platform for mobile and web apps. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
What is Zend Server? | ||
================== | ||
|
||
Zend Server is the integrated application platform for PHP mobile and web apps. | ||
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. | ||
###Boost your Development with Z-Ray | ||
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! | ||
###Powering Continuous Delivery | ||
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. | ||
|
||
###Additional Resources | ||
http://www.zend.com/ | ||
http://kb.zend.com/ | ||
http://files.zend.com/help/Zend-Server/zend-server.htm#faqs.htm | ||
http://files.zend.com/help/Zend-Server/zend-server.htm#getting_started.htm | ||
|
||
PHP-ZendServer | ||
============== | ||
This is a cluster-enabled version of a Dockerized Zend Server 7.0 container. | ||
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. | ||
|
||
Usage | ||
----- | ||
#### Launching the Container from Docker-Hub | ||
Zend Server is shared on [Docker-Hub] as **php-zendserver**. | ||
- To start a single Zend Server instance, execute: | ||
|
||
$ docker run php-zendserver | ||
|
||
- You can specify the PHP and Zend Server version by adding ':<php-version>' or ':<ZS-version>-php<version>' to the 'docker run' command. Availible PHP version are 5.4 & 5.5 (5.5 is the default) and Zend Server 7 | ||
(for example: php-zendserver:7.0-php5.4). | ||
|
||
- To start a Zend Server cluster, execute the following command for each cluster node: | ||
|
||
$ 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 | ||
|
||
#### Launching the Container from Dockerfile | ||
|
||
- From a local folder containing this repo's clone, execute the following command to generate the image. The **image-id** will be outputted: | ||
|
||
$ docker build . | ||
|
||
- To start a single Zend Server instance, execute: | ||
|
||
$ docker run <image-id> | ||
|
||
- To start a Zend Server cluster, execute the following command on each cluster node: | ||
|
||
$ 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> | ||
|
||
#### Accessing Zend server | ||
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. | ||
|
||
To access the container **remotely**, port forwarding must be configured, either manually or using docker. | ||
For example, this command redirects port 80 to port 88, and port 10081 (Zend Server UI port) to port 10088: | ||
|
||
$ docker run -p 88:80 -p 10088:10081 php-zendserver | ||
|
||
For clustered instances: | ||
|
||
$ 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> | ||
|
||
Please note, that when running multiple instances only one instance can be bound to a port. | ||
If you are running a cluster, either assign a port redirect to one node only, or assign a different port to each container. | ||
|
||
#### Env variables | ||
Env variables are passed in the run command with the "-e" switch. | ||
|
||
##### Optional env-variables: | ||
|
||
To specify a pre-defined admin password for Zend Server use: | ||
- ZS_ADMIN_PASSWORD | ||
|
||
MySQL vars for clustered ops. *ALL* are required for the node to properly join a cluster: | ||
- MYSQL_HOSTNAME - ip or hostname of MySQL database | ||
- MYSQL_PORT - MySQL listening port | ||
- MYSQL_USERNAME | ||
- MYSQL_PASSWORD | ||
- MYSQL_DBNAME - Name of the database Zend Server will use for cluster ops (created automatically if it does not exist). | ||
|
||
To specify a pre-purchased license use the following env vars: | ||
- ZEND_LICENSE_KEY | ||
- ZEND_LICENSE_ORDER | ||
|
||
### Minimal Requirements | ||
|
||
- Each Zend Server Docker container requires 1GB of availible memory. | ||
|
||
[Docker-Hub]:https://registry.hub.docker.com/_/php-zendserver/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Zend Technologies Ltd. | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Think we’ve missed something? Let us know at: http://www.zend.com/en/support-center |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, see the output of
./update.sh php-zendserver
(and some of the other examples in this repo) - I don't think you want the full text of this license on the Hub description, do you? 😄