You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the client tools are installed, they must be configured. The easiest method of configuring the client tools is to use the interactive setup wizard, which walks you through the configuration steps by asking several questions.
5
8
@@ -9,7 +12,7 @@ After the client tools are installed, they must be configured. The easiest metho
9
12
You must run the interactive setup wizard after installing the client tools so that your workstation is correctly configured to communicate with the remote OpenShift server.
10
13
====
11
14
12
-
The following is a sample walk through of the setup wizard, and some general information to assist you with the initial configuration. It assumes you have installed the latest version of the client tools. Use +rhc --version+ to verify the installed version, or link:Updating_Client_Tools.html[update the client tools].
15
+
The following is a sample walk through of the setup wizard, and some general information to assist you with the initial configuration. It assumes you have installed the latest version of the client tools. Use +rhc --version+ to verify the installed version, or link:updating_client_tools.html[update the client tools].
13
16
14
17
15
18
[NOTE]
@@ -21,6 +24,7 @@ The following setup wizard example was run on Windows 7. Screen outputs may vary
21
24
*Starting the Setup Wizard*
22
25
23
26
Launch the setup wizard:
27
+
24
28
----
25
29
$ rhc setup
26
30
OpenShift Client Tools (RHC) Setup Wizard
@@ -31,6 +35,7 @@ This wizard will help you upload your SSH keys, set your application namespace,
31
35
*Login Information*
32
36
33
37
The setup wizard next prompts you for the login credentials that were used to sign up for an OpenShift account. Alternatively, you can also use your Red Hat login credentials.
38
+
34
39
----
35
40
Login to openshift.redhat.com: user@example.com
36
41
Password: password
@@ -40,8 +45,6 @@ Password: password
40
45
41
46
You are then prompted to generate an authorization token. Answering _++yes++_ will store a token in your home directory to be used on subsequent requests. When it expires, you are prompted for your password again.
42
47
43
-
44
-
45
48
----
46
49
OpenShift can create and store a token on disk which allows to you to access the server without using your password. The key is stored in your home directory and should be kept secret. You can delete the key at any time by running 'rhc logout'.
47
50
Generate a token now? (yes|no) yes
@@ -50,28 +53,23 @@ Generating an authorization token for this client ... lasts about 1 day
50
53
51
54
*Configuration File*
52
55
53
-
With your login credentials, the setup wizard creates the *express.conf* configuration file in your home directory. In the following example, the *express.conf* file is created in the *C:\Users\User1\.openshift* directory.
54
-
----
56
+
With your login credentials, the setup wizard creates the *express.conf* configuration file in your home directory. In the following example, the *express.conf* file is created in the *C:\Users\User1\.openshift* directory.
55
57
58
+
----
56
59
Saving configuration to C:\Users\User1\.openshift\express.conf ... done
57
-
58
60
----
59
61
60
-
61
-
62
-
63
-
64
62
*SSH Keys*
65
63
66
-
Next, the setup wizard configures the SSH keys so that your system can authenticate with the remote server. Because this is the initial configuration, it is assumed no existing SSH keys are found on your system. Therefore, the setup wizard generates a new pair of SSH keys, named *id_rsa* and *id_rsa.pub*, and saves them in your home directory. In the following example the SSH keys are generated and saved in the *C:\Users\User1\.ssh* directory.
67
-
----
64
+
Next, the setup wizard configures the SSH keys so that your system can authenticate with the remote server. Because this is the initial configuration, it is assumed no existing SSH keys are found on your system. Therefore, the setup wizard generates a new pair of SSH keys, named *id_rsa* and *id_rsa.pub*, and saves them in your home directory. In the following example the SSH keys are generated and saved in the *C:\Users\User1\.ssh* directory.
68
65
66
+
----
69
67
No SSH keys were found. We will generate a pair of keys for you.
70
68
Created: C:\Users\User1\.ssh\id_rsa.pub
71
-
72
69
----
73
70
74
71
After the new SSH keys are generated, the public key, *id_rsa.pub*, must be uploaded to the OpenShift server to authenticate your system to the remote server. Enter a name to use for your key, or leave it blank to use the default name. In the following example the default name is used.
72
+
75
73
----
76
74
Your public ssh key must be uploaded to the OpenShift server to access code.
77
75
Upload now? (yes|no) yes
@@ -81,38 +79,28 @@ Since you do not have any keys associated with your OpenShift account, your new
81
79
Uploading key 'default' from C:\Users\User1\.ssh\id_rsa.pub ... done
82
80
----
83
81
84
-
85
-
86
-
87
-
88
82
*Installed Software*
89
83
90
-
The setup wizard verifies if Git version control software is installed on your system. Git is required to create and deploy applications to the OpenShift cloud environment. It is assumed that all the required software for your operating system is already installed as described in the earlier sections of this document. In the example below, the setup wizard verifies that Git for Windows is installed correctly.
91
-
----
84
+
The setup wizard verifies if Git version control software is installed on your system. Git is required to create and deploy applications to the OpenShift cloud environment. It is assumed that all the required software for your operating system is already installed as described in the earlier sections of this document. In the example below, the setup wizard verifies that Git for Windows is installed correctly.
92
85
86
+
----
93
87
In order to fully interact with OpenShift you will need to install and configure a git client if you have not already done so.
94
88
Documentation for installing other tools you will need for OpenShift can be found at https://openshift.redhat.com/community/developers/install-the-client-tools
95
89
96
90
We recommend these free applications:
97
91
98
-
99
92
* Git for Windows - a basic git command line and GUI client https://github.com
100
93
/msysgit/msysgit/wiki/InstallMSysGit
101
-
94
+
102
95
* TortoiseGit - git client that integrates into the file explorer http://code.
103
96
google.com/p/tortoisegit/
104
-
105
97
----
106
98
107
-
108
-
109
-
110
-
111
99
*Domain*
112
100
113
101
The setup wizard next verifies whether a domain already exists for your cloud environment. The example below assumes that a domain does not exist, and one must be created. If you did create a domain when you signed up for an OpenShift account, it is displayed here. To create a domain at this time, enter the desired name when prompted. Alternatively, you can create a domain using the OpenShift Management Console, or with the +rhc domain create+ command later. The domain named _MyDomain_ is created in the following example.
114
-
----
115
102
103
+
----
116
104
Checking for a domain ... none
117
105
118
106
Your domain is unique to your account and is the suffix of the public URLs we assign to your applications. You may configure your domain here or leave it blank and use 'rhc domain create' to create a domain later. You will not be able to create applications without first creating a domain.
@@ -121,26 +109,13 @@ Please enter a domain (letters and numbers only) |<none>|: MyDomain
121
109
Your domain name 'MyDomain' has been successfully created
122
110
----
123
111
124
-
125
-
126
-
127
-
128
-
129
-
[IMPORTANT]
130
-
====
131
-
A domain must be created before you can create OpenShift applications.
132
-
133
-
134
-
====
135
-
112
+
IMPORTANT: A domain must be created before you can create OpenShift applications.
136
113
137
114
*Applications*
138
115
116
+
Finally, the setup wizard verifies whether any applications exist under your domain. Any applications created with the Management Console are displayed here. In the example below, no applications have been created. In this case the setup wizard shows the types of applications that can be created with the associated commands. The setup wizard then completes by displaying the current gear consumption along with the gear sizes available to the given user.
139
117
140
-
141
-
Finally, the setup wizard verifies whether any applications exist under your domain. Any applications created with the Management Console are displayed here. In the example below, no applications have been created. In this case the setup wizard shows the types of applications that can be created with the associated commands. The setup wizard then completes by displaying the current gear consumption along with the gear sizes available to the given user.
142
118
----
143
-
144
119
Checking for applications ... none
145
120
146
121
Run 'rhc app create' to create your first application.
@@ -166,7 +141,6 @@ Run 'rhc app create' to create your first application.
166
141
The following gear sizes are available to you: small
167
142
168
143
Your client tools are now configured.
169
-
170
144
----
171
145
172
-
The OpenShift client tools are now configured on your system.
146
+
The OpenShift client tools are now configured on your system.
The OpenShift client tools are supported on Fedora 16 or later and require sudoer or root access.
5
8
@@ -16,11 +19,10 @@ You can install the client tools on Fedora operating systems by installing the R
16
19
The RPM version of the client tools is not updated as frequently as the gem maintained by the OpenShift development team.
17
20
====
18
21
19
-
20
-
21
22
*Install with YUM Package Manager*
22
23
23
24
From the terminal, install the client tools and all other required dependencies:
25
+
24
26
----
25
27
$ sudo yum install rubygem-rhc
26
28
----
@@ -44,15 +46,17 @@ $ sudo gem install rhc
44
46
*Automatic Completion Using the Tab Key*
45
47
46
48
The client tools for Fedora support the automatic completion feature of the bash shell. Run the following command and follow the instructions to enable automatic completion:
49
+
47
50
----
48
51
$ rhc setup --autocomplete
49
52
----
50
53
51
54
You may have to close your current terminal session, and open a new session to automatically source the bash completion script.
52
55
53
56
If the automatic completion feature is not persistent when you open a new terminal session, the automatic completion script for the client tools must be sourced in the *_.bashrc_* file in your home directory. Do this by adding the following line to to your *_.bashrc_* file:
57
+
54
58
----
55
59
source /etc/bash_completion.d/rhc
56
60
----
57
61
58
-
//When the installation completes, proceed to <<Configuring_Client_Tools>> to configure the client tools using the interactive setup wizard.
62
+
//When the installation completes, proceed to <<Configuring_Client_Tools>> to configure the client tools using the interactive setup wizard.
The OpenShift client tools are supported on Mac OS X 10.5 or later and require sudo access.
@@ -16,42 +17,41 @@ Installing the client tools on a Mac OS X operating system comprises three steps
16
17
17
18
== Install Ruby
18
19
19
-
Mac OS X Lion ships with Ruby 1.8.7 preinstalled. Previous versions of OS X included Ruby as part of the link:$$https://developer.apple.com/xcode/$$[Xcode] integrated development environment. If you are installing the client tools on a version of OS X that did not ship with Ruby preinstalled, you can install it one of two ways:
20
+
Mac OS X Lion ships with Ruby 1.8.7 preinstalled. Previous versions of OS X included Ruby as part of the https://developer.apple.com/xcode/[Xcode] integrated development environment. If you are installing the client tools on a version of OS X that did not ship with Ruby preinstalled, you can install it one of two ways:
20
21
21
22
* Use the OS X installation CD
22
-
23
-
24
-
* Download and install the link:$$https://developer.apple.com/xcode/$$[Xcode] integrated development environment from the Apple website
23
+
* Download and install the https://developer.apple.com/xcode/[Xcode] integrated development environment from the Apple website
25
24
26
25
Alternatively, if you are experienced with Mac OS software development, you can also:
27
26
28
-
29
-
* Download and install Ruby from the link:$$http://macruby.org/$$[MacRuby] website, or
30
-
31
-
32
-
* Visit link:$$http://www.ruby-lang.org/en/downloads/$$[] for help installing Ruby with homebrew
27
+
* Download and install Ruby from the http://macruby.org/[MacRuby] website, or
28
+
* Visit http://www.ruby-lang.org/en/downloads/ for help installing Ruby with homebrew
33
29
34
30
After Ruby is installed, run the following command to verify that it has installed correctly:
31
+
35
32
----
36
33
$ ruby -e 'puts "Welcome to Ruby"'
37
34
Welcome to Ruby
38
35
----
39
36
40
37
== Install Git Version Control
41
38
42
-
Although there are a number of options available to install Git version control on Mac OS X, Red Hat recommends to download and install the latest version from here: link:$$http://code.google.com/p/git-osx-installer/$$[].
39
+
Although there are a number of options available to install Git version control on Mac OS X, Red Hat recommends to download and install the latest version from here: http://code.google.com/p/git-osx-installer/
43
40
44
41
When the installation completes,, run the following command to verify that Git has installed correctly:
42
+
45
43
----
46
44
$ git --version
47
45
----
48
46
49
-
This command returns the Git version number that was installed.
47
+
This command returns the Git version number that was installed.
50
48
51
49
== Install the Client Tools
52
50
53
51
When Ruby and Git have been successfully installed, run the following command to install the client tools:
52
+
54
53
----
55
54
$ sudo gem install rhc
56
55
----
56
+
57
57
//When the installation completes, proceed to <<Configuring_Client_Tools>> to configure the client tools using the interactive setup wizard.
Installing the client tools on openSUSE requires sudoer or root access and comprises three steps:
7
8
8
-
*Step 1*: Install *_Ruby_*
9
-
10
-
11
-
*Step 2*: Install *_RubyGems_*
12
-
13
-
14
-
*Step 3*: Install *_Git_*
15
-
9
+
*Step 1*: Install *_Ruby_* +
10
+
*Step 2*: Install *_RubyGems_* +
11
+
*Step 3*: Install *_Git_* +
16
12
*Step 4*: Install the client tools
17
13
18
-
19
-
20
-
21
14
[NOTE]
22
15
====
23
16
The +sudo+ command only works if the particular user is listed in the _sudoers_ file. As an alternative to sudo access, you can activate a root terminal with the +su+ command and the root password. If you activate a root terminal, omit +sudo+ from the commands shown in the examples. Be sure to close the root terminal after the installation completes.
@@ -26,34 +19,36 @@ The +sudo+ command only works if the particular user is listed in the _sudoers_
26
19
== Install Ruby
27
20
28
21
From terminal, run the following command to install Ruby:
22
+
29
23
----
30
24
$ sudo zypper install ruby
31
25
----
32
26
33
27
Run the following command to verify that Ruby has installed correctly:
28
+
34
29
----
35
30
$ ruby -e 'puts "Welcome to Ruby"'
36
31
Welcome to Ruby
37
32
----
38
33
39
-
40
-
41
-
42
34
== Install RubyGems
43
35
44
36
Run the following command to install RubyGems:
37
+
45
38
----
46
39
$ sudo zypper install rubygems
47
40
----
48
41
49
42
== Install Git
50
43
51
44
Run the following command to install Git version control:
45
+
52
46
----
53
47
$ sudo zypper install git-core
54
48
----
55
49
56
50
After installation completes, run the following command to verify that Git has installed correctly:
51
+
57
52
----
58
53
$ git --version
59
54
git version 1.7.11.1
@@ -65,8 +60,9 @@ This command returns the Git version number that was installed.
65
60
== Install the Client Tools
66
61
67
62
When the required software has been successfully installed, run the following command to install the client tools:
63
+
68
64
----
69
65
$ sudo gem install rhc
70
66
----
71
67
72
-
//When the installation completes, proceed to <<Configuring_Client_Tools>> to configure the client tools using the interactive setup wizard.
68
+
//When the installation completes, proceed to <<Configuring_Client_Tools>> to configure the client tools using the interactive setup wizard.
0 commit comments