Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appuio/example-php-sti-helloworld
https://github.com/appuio/example-php-sti-helloworld
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/appuio/example-php-sti-helloworld
- Owner: appuio
- License: apache-2.0
- Created: 2016-02-24T10:13:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:25:40.000Z (about 1 year ago)
- Last Synced: 2023-12-15T03:51:54.836Z (about 1 year ago)
- Language: PHP
- Size: 279 KB
- Stars: 3
- Watchers: 3
- Forks: 67
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP source to image Helloworld Example
This is an example php application, which can be deployed to APPUiO using the following commands
## How to deploy
### Webconsole
* log into your OpenShift V3 Master (eg. https://master.appuio-beta.ch)
* Create a new Project
* "Add to Project" a php:5.6 application
* name the application for example appuio-php-sti-example and provide the git repository URL, in this example https://github.com/appuio/example-php-sti-helloworld.git
* the build and deployment is automatically triggered and the example application will be deployed soon### CLI / oc Client
#### Create New OpenShift Project
```
$ oc new-project example-php-sti-helloworld
```#### Create Application and expose Service
```
$ oc new-app https://github.com/appuio/example-php-sti-helloworld.git --name=appuio-php-sti-example$ oc expose service appuio-php-sti-example
```## Add Webhook to trigger rebuilds
Take the Webhook GitHub URL from
```
$ oc describe bc appuio-php-sti-exampleoc describe bc appuio-php-sti-example
Name: appuio-php-sti-example
Created: 20 seconds ago
Labels: app=appuio-php-sti-example
Annotations: openshift.io/generated-by=OpenShiftNewApp
Latest Version: 1
Strategy: Source
Source Type: Git
URL: https://github.com/appuio/example-php-sti-helloworld.git
From Image: ImageStreamTag openshift/php:latest
Output to: ImageStreamTag appuio-php-sti-example:latest
Triggered by: Config, ImageChange
Webhook GitHub: https://[Server]/oapi/v1/namespaces/example-php-sti-helloworld/buildconfigs/appuio-php-sti-example/webhooks/[GitHubsecret]/github
Webhook Generic: https://[Server]/oapi/v1/namespaces/example-php-sti-helloworld/buildconfigs/appuio-php-sti-example/webhooks/[genericsecret]/generic
```and add the URL as a Webhook in your github Repository, read https://developer.github.com/webhooks/ for more details about github Webhooks