Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krook/openwhisk-php-docker
Example of a PHP CLI script run within a Docker container on OpenWhisk
https://github.com/krook/openwhisk-php-docker
Last synced: about 1 month ago
JSON representation
Example of a PHP CLI script run within a Docker container on OpenWhisk
- Host: GitHub
- URL: https://github.com/krook/openwhisk-php-docker
- Owner: krook
- License: apache-2.0
- Created: 2017-06-06T14:59:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T16:13:24.000Z (over 7 years ago)
- Last Synced: 2024-10-12T19:12:13.402Z (2 months ago)
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# OpenWhisk PHP Docker
Example of a PHP script run within a Docker container as a custom action on OpenWhisk.This example uses the Docker skeleton for custom actions which creates a Python action proxy to implement the HTTP `/init` and `/run` endpoints that OpenWhisk expects. The PHP environment and custom code are also added in the same [Dockerfile](dockerSkeleton/Dockerfile).
A [wrapper file is used to invoke the PHP CLI](dockerSkeleton/phpwrapper.sh) and execute the [custom PHP code](dockerSkeleton/phpinfo.php).
This is just a first pass. There are probably better ways to do this.
## Install
* Copy `template.local.env` to `local.env` and add your Docker Hub credentials.
* Open a terminal window and run `wsk activation poll`
* Open another terminal window and run `./deploy.sh --install`## Uninstall
* Run `./deploy.sh --uninstall`# License
[Apache 2.0](LICENSE.txt)