From d9c03a7b79b3aae8136e8eb31bf4066c89ad8da0 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Mon, 1 Jun 2015 15:06:05 +0200 Subject: [PATCH] Document how to use new-app instead of templates --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 5bf7194..eb2df3b 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ To run this project in your development machine, follow these steps: To follow the next steps, you need to be logged in to an OpenShift cluster and have an OpenShift project where you can work on. +### Using an application template + The directory `openshift/` contains OpenShift application template files that you can add you your OpenShift project with: osc create -f openshift/.json @@ -67,6 +69,22 @@ Alternatively, you can use the command line to create your new app: In the web console, the overview tab shows you a service, by default called "web", that encapsulates all pods running your Django application. You can access your application by browsing to the service's IP address and port. +### Without an application template + +Templates give you full control of each component of your application. +Sometimes your application is simple enough and you don't want to bother with templates. In that case, you can let OpenShift inspect your source code and create the required components automatically for you: + +```bash +$ osc new-app openshift/python-33-centos7~https://github.com/openshift/django-ex +imageStreams/python-33-centos7 +imageStreams/django-ex +buildConfigs/django-ex +deploymentConfigs/django-ex +services/django-ex +A build was created - you can run `osc start-build django-ex` to start it. +Service "django-ex" created at 172.30.16.213 with port mappings 8080. +``` + ## Special files in this repository