Giter Club home page Giter Club logo

helloworldphp's Introduction

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

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-example

oc 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

helloworldphp's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.