Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
OpenShift provides +snapshot+ and +restore+ features for user applications. These features enable OpenShift application developers to:


Expand Down
7 changes: 7 additions & 0 deletions cartridge_specification_guide/cartridge_events.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
OpenShift provides a publish and subscribe system that enables a cartridge to act when a developer adds or removes another cartridge in an application.

The _Publishes_ and _Subscribes_ elements in the [filename]#$cartridge_name/metadata/manifest.yml# file detail support for cartridge events.
Expand Down
7 changes: 7 additions & 0 deletions cartridge_specification_guide/cartridge_scripts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
Cartridge scripts act as the application programming interface (API) for a cartridge. Use these scripts to contain the required code for single version software that configures easily. For complex configurations and software with multiple versions, use these scripts as shim code to set up the required environment and run additional scripts. You can also create symbolic links from these scripts.

Cartridge scripts are located in the [filename]#$cartridge_name/bin/# directory, and run from the cartridge's home directory.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevel: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
Use the [filename]#$cartridge_name/template/# or [filename]#$cartridge_name/template.git/# directory to provide a basic example of an application written in the language or framework your cartridge packages. Welcome the application developer to your cartridge and inform them that the cartridge is operating correctly.

If you provide a [filename]#$cartridge_name/template.git/# directory, OpenShift copies the directory for the application developer.
Expand Down
7 changes: 7 additions & 0 deletions cartridge_specification_guide/environment_variables.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
OpenShift uses environment variables to communicate information between cartridges, applications, and the system.

OpenShift provides several system environment variables that are available for use at all cartridge entry points.
Expand Down
7 changes: 7 additions & 0 deletions cartridge_specification_guide/exposing_services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
Most cartridges provide services by binding to ports. Cartridges must declare to which ports they bind, and provide variable names to describe:

* The IP addresses provided to the cartridge for binding.
Expand Down
7 changes: 7 additions & 0 deletions cartridge_specification_guide/locking_cartridges.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
Cartridge instances on a gear are either locked or unlocked at any given time. Locking a cartridge enables cartridge scripts to have greater access to the gear's files and directories. Application developers have read and write access to unlocked files, and read-only access to locked files. This means that application scripts and hooks cannot override cartridge code when the cartridge is locked.

OpenShift controls the lock state of cartridges, moving them between locked and unlocked at various points in the cartridge life cycle.
Expand Down
7 changes: 7 additions & 0 deletions cartridge_specification_guide/openshift_build_process.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
When changes to an application's Git repository are pushed, OpenShift builds and deploys the application using the updated repository. The build and deploy process changes if the application is scaling or if it uses a builder cartridge.

[[default_build_lifecycle]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

This topic contains reference material for OpenShift cartridges.
toc::[]

[[cartridge_hierarchy]]
== Cartridge Hierarchy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{product-version}
:data-uri:
:icons:
:toc:
:toclevels: 1
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
The OpenShift runtime contains a system for upgrading custom cartridges on a gear to the latest available version and for applying gear-level changes that affect cartridges.

ifdef::openshift-online[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{product-version}
:data-uri:
:icons:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
The OpenShift client tools are supported on Fedora 16 or later and require sudoer or root access.

[NOTE]
Expand All @@ -19,6 +25,8 @@ You can install the client tools on Fedora operating systems by installing the R
The RPM version of the client tools is not updated as frequently as the gem maintained by the OpenShift development team.
====

== Install Client Tools

*Install with YUM Package Manager*

From the terminal, install the client tools and all other required dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{product-version}
:data-uri:
:icons:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
The OpenShift client tools are supported on Mac OS X 10.5 or later and require sudo access.

Installing the client tools on a Mac OS X operating system comprises three steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{product-version}
:data-uri:
:icons:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
Installing the client tools on openSUSE requires sudoer or root access and comprises three steps:

*Step 1*: Install *_Ruby_* +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{product-version}
:data-uri:
:icons:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
You must have the following to successfully install the client tools:

* Red Hat Enterprise Linux 6 or later
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{product-version}
:data-uri:
:icons:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
Install the client tools on Ubuntu or Debian requires sudoer or root access and comprises four steps:

*Step 1*: Install *_Ruby_*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
:data-uri:
:icons:
:experimental:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
The OpenShift Client Tools are supported on the following Windows operating systems:

* Windows 7
Expand All @@ -17,8 +23,6 @@ The OpenShift Client Tools are supported on the following Windows operating syst
Sufficient privileges are required to install software on Windows systems. Depending on specific user permissions, disabling the User Account Control (UAC) on Windows Vista or Windows 7 operating systems may be necessary.
====

== Before you begin

Installing the client tools on Windows operating system comprises three steps:


Expand All @@ -30,7 +34,7 @@ Installing the client tools on Windows operating system comprises three steps:

Before you can install the client tools, you must download and install *_RubyInstaller_* and *_Git_* on your system.

=== Install RubyInstaller
== Install RubyInstaller

1. From http://rubyinstaller.org/[rubyinstaller.org], download and save the latest RubyInstaller package for Windows to your desired directory.
//+
Expand All @@ -46,7 +50,7 @@ image:2829.png[image]
+
Click btn:[Finish] when the install completes.

=== Install Git Version Control
== Install Git Version Control

1. From http://msysgit.github.com/[http://msysgit.github.com/], download and save the latest version of Git for Windows to your desired directory.

Expand All @@ -64,7 +68,7 @@ image:2828.png[image]
+
Click btn:[Finish] when the install completes.

=== Install the Client Tools
== Install Client Tools

1. Open Windows Command Prompt.

Expand Down
11 changes: 8 additions & 3 deletions getting_started/create_app.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@
:data-uri:
:icons:
:experimental:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

When you have completed the link:preliminary_steps.html[preliminary steps] and configured the client tools with the interactive wizard, you are ready to create an application. You should already have a domain created under which you will create the new application.

You can create a new application with either the management console or the command line interface, referred to as the client tools.
You can create a new application with either the management console or the client tools.

== Management Console
== Create Application with Management Console
. Log into your account from the management console.
. From the btn:[Applications] tab, click btn:[Add Application].
. Click on the web framework cartridge you want to create.
Expand All @@ -34,7 +39,7 @@ $ git clone <git_url>
//$ rhc domain create <domain_name>
//----

== Client Tools (CLI)
== Create Application with Client Tools (CLI)
From the directory where you want the application created, run the following command:

----
Expand Down
8 changes: 7 additions & 1 deletion getting_started/interfaces.adoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
= Introduction
= Interacting with OpenShift
{product-author}
{product-version}
:data-uri:
:icons:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
There are two interfaces available for interacting with OpenShift Online: the Management Console graphical user interface and the command line interface (CLI), referred to as the client tools.

== Management Console
Expand Down
8 changes: 4 additions & 4 deletions user_guide/apps.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
:data-uri:
:icons:
:toc:
:toc-placement: preamble
:toc-placement!:
:toc-title: Topics Covered

All OpenShift applications consist of one web framework cartridge that serves web requests, and additional cartridges that provide other capabilities, such as databases, scheduled jobs, or continuous integration.
toc::[]

== Overview

When a new application is created, a URL with name of the application and the name of the domain is registered in DNS. A copy of the application code is checked out locally into a folder with the same name as the application. Note that different types of applications may require different folder structures. Application components are run on gears.
All OpenShift applications consist of one web framework cartridge that serves web requests, and additional cartridges that provide other capabilities, such as databases, scheduled jobs, or continuous integration. When a new application is created, a URL with name of the application and the name of the domain is registered in DNS. A copy of the application code is checked out locally into a folder with the same name as the application. Note that different types of applications may require different folder structures. Application components are run on gears.

With each new application that is created with the client tools, a remote Git repository is populated with the selected cartridge, which is then cloned to the current directory on the local machine. The host name and IP address of the application are also added to the list of known hosts in the [filename]#~/.ssh/known_hosts# directory.

Expand Down
6 changes: 6 additions & 0 deletions user_guide/auth_tokens.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{product-version}
:data-uri:
:icons:
:toc:
:toc-placement!:
:toc-title: Topics Covered

toc::[]

== Overview
An authorization token is used to automatically log in to an OpenShift account without having to enter login credentials each time. A token is also used to grant another user full or partial access to an account, which is determined by the _scope_ of the token, which are described in the following table.

.Available Scopes for Authorization Tokens
Expand Down
5 changes: 3 additions & 2 deletions user_guide/cartridges.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
:data-uri:
:icons:
:toc:
:toc-placement: preamble
:toc-placement!:
:toc-title: Topics Covered

All OpenShift applications consist of one web framework cartridge that serves web requests, and additional cartridges that provide other capabilities, such as databases, scheduled jobs, or continuous integration.
toc::[]

== Overview

Expand Down
7 changes: 4 additions & 3 deletions user_guide/domains.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
:data-uri:
:icons:
:toc:
:toc-placement: preamble
:toc-placement!:
:toc-title: Topics Covered

All OpenShift applications must belong to a _domain_, which forms part of an application's public URL.
toc::[]

== Overview
The format for an application URL is _application-domain_.example.com. Each account can have access to one or more domains that are shared by others. Depending on the type of account you have, you might be able to create more than one domain.
All OpenShift applications must belong to a _domain_, which forms part of an application's public URL. The format for an application URL is _application-domain_.example.com. Each account can have access to one or more domains that are shared by others. Depending on the type of account you have, you might be able to create more than one domain.

ifdef::openshift-online[]
A blacklist restricts the domain names that are available. A warning message informs you if a blacklisted domain name has been selected when you attempt to create a domain. Domain names consist of a maximum of 16 alphanumeric characters and cannot contain spaces or symbols. Note that a domain must be created before you can create applications.
Expand Down
Loading