Update README info about application templates
This commit is contained in:
parent
3ae50da49f
commit
a1a26ac9ad
1 changed files with 19 additions and 4 deletions
23
README.md
23
README.md
|
@ -60,16 +60,29 @@ The directory `openshift/` contains OpenShift application template files that yo
|
||||||
|
|
||||||
osc create -f openshift/<TEMPLATE_NAME>.json
|
osc create -f openshift/<TEMPLATE_NAME>.json
|
||||||
|
|
||||||
Now you can go to your OpenShift web console and create a new app from one of the templates that you have just added.
|
The template `django-source.json` contains just a minimal set of components to get your Django application into OpenShift.
|
||||||
After adjusting your preferences (or accepting the defaults), your application will be built and deployed.
|
|
||||||
|
|
||||||
You will probably want to set the `GIT_REPOSITORY` parameter to point to your fork.
|
The template `django-source-postgresql.json` contains all of the components from `django-source.json`, plus a PostgreSQL database service and an Image Stream for the Python base image.
|
||||||
|
|
||||||
|
After adding your templates, you can go to your OpenShift web console, browse to your project and click the create button. Create a new app from one of the templates that you have just added.
|
||||||
|
|
||||||
|
Adjust the parameter values to suit your configuration. Most times you can just accept the default values, however you will probably want to set the `GIT_REPOSITORY` parameter to point to your fork and the `DATABASE_*` parameters to match your database configuration.
|
||||||
|
|
||||||
Alternatively, you can use the command line to create your new app:
|
Alternatively, you can use the command line to create your new app:
|
||||||
|
|
||||||
osc new-app --template=<TEMPLATE_NAME> --param=GIT_REPOSITORY=...,...
|
osc new-app --template=<TEMPLATE_NAME> --param=GIT_REPOSITORY=...,...
|
||||||
|
|
||||||
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.
|
Your application will be built and deployed automatically. If that doesn't happen, you can debug your build:
|
||||||
|
|
||||||
|
osc get builds
|
||||||
|
# take build name from the command above
|
||||||
|
osc build-logs <build-name>
|
||||||
|
|
||||||
|
And you can see information about your deployment too:
|
||||||
|
|
||||||
|
osc describe dc/django
|
||||||
|
|
||||||
|
In the web console, the overview tab shows you a service, by default called "django", 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
|
### Without an application template
|
||||||
|
@ -88,6 +101,8 @@ 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.
|
Service "django-ex" created at 172.30.16.213 with port mappings 8080.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can access your application by browsing to the service's IP address and port.
|
||||||
|
|
||||||
|
|
||||||
## Special files in this repository
|
## Special files in this repository
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue