Skip to content
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

Add new examples #515

Merged
merged 1 commit into from
Jun 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ A full list of component types that can be deployed is available using: 'odo com
# Create new Wildfly component with binary named sample.war in './downloads' directory
odo create wildfly wildly --binary ./downloads/sample.war

# Create a Ruby component
odo create ruby

# Create a Python component
odo create python
# List of ready-to-use examples
# for more examples, visit: https://github.com/redhat-developer/odo/blob/master/docs/examples.md
odo create php --git https://github.com/openshift/cakephp-ex.git
odo create python --git https://github.com/openshift/django-ex.git
`,
Args: cobra.RangeArgs(1, 2),
Run: func(cmd *cobra.Command, args []string) {
Expand Down
74 changes: 74 additions & 0 deletions docs/examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Examples

Odo is compatible with any language listed within OpenShift's Catalog service.

This can be found by using `odo catalog list`.

Example:

```sh
The following components can be deployed:
- httpd
- nodejs
- perl
- php
- python
- ruby
- wildfly
```

### httpd

Build and serve static content via httpd on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/httpd-container/blob/master/2.4/README.md.

```sh
odo create httpd --git https://github.com/openshift/httpd-ex.git
```

### nodejs

Build and run Node.js applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/4/README.md.

```sh
odo create nodejs --git https://github.com/openshift/nodejs-ex.git
```

### perl

Build and run Perl applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-perl-container/blob/master/5.24/README.md.

```sh
odo create perl --git https://github.com/openshift/dancer-ex.git
```

### php

Build and run PHP applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/7.0/README.md.

```sh
odo create php --git https://github.com/openshift/cakephp-ex.git
```

### python

Build and run Python applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-python-container/blob/master/3.5/README.md.

```sh
odo create python --git https://github.com/openshift/django-ex.git
```

### ruby

Build and run Ruby applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-ruby-container/blob/master/2.3/README.md.

```sh
odo create ruby --git https://github.com/openshift/ruby-ex.git
```

### wildfly

Build and run WildFly applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/openshift-s2i/s2i-wildfly/blob/master/README.md.

```sh
odo create wildfly --git https://github.com/openshift/openshift-jee-sample.git
```
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Switched to application: nodeapp
First, we'll download the our test application:

```console
$ git clone https://github.com/kadel/nodejs-ex
$ git clone https://github.com/openshift/nodejs-ex
Cloning into 'nodejs-ex'...
remote: Counting objects: 568, done.
remote: Total 568 (delta 0), reused 0 (delta 0), pack-reused 568
Expand Down