pi 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- data/README +364 -138
- data/lib/cli/choose_helper.rb +50 -11
- data/lib/cli/commands/apps.rb +97 -86
- data/lib/cli/commands/dns.rb +164 -23
- data/lib/cli/commands/misc.rb +11 -2
- data/lib/cli/commands/projects.rb +3 -11
- data/lib/cli/commands/services.rb +164 -28
- data/lib/cli/commands/user.rb +8 -2
- data/lib/cli/config.rb +2 -1
- data/lib/cli/runner.rb +69 -9
- data/lib/cli/usage.rb +29 -15
- data/lib/cli/version.rb +1 -1
- data/lib/pi/client.rb +95 -8
- data/lib/pi/const.rb +3 -1
- metadata +4 -4
data/README
CHANGED
@@ -59,82 +59,96 @@ _Copyright 2010-2012, Samsung.
|
|
59
59
|
Currently available pi commands are:
|
60
60
|
|
61
61
|
User
|
62
|
-
login [url] [--user,--password]
|
63
|
-
logout
|
64
|
-
info
|
65
|
-
user
|
66
|
-
targets
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
help
|
62
|
+
login [url] [--user,--password] Login
|
63
|
+
logout Logs current user out of the system
|
64
|
+
info List system information
|
65
|
+
user Display user information
|
66
|
+
targets List available targets infomation
|
67
|
+
password [oldpassword] [--password PASS] Change the password for the current user
|
68
|
+
github [name] [--email,--password] Bind to the github account
|
69
|
+
runtimes Display the supported runtimes of the system
|
70
|
+
frameworks Display the supported frameworks of the system
|
71
|
+
version Display version information
|
72
|
+
help [command] Get general help or help on a specific command
|
73
|
+
help options Get help on available options
|
73
74
|
|
74
75
|
Project
|
75
|
-
projects
|
76
|
-
create-project [project]
|
77
|
-
delete-project [project]
|
78
|
-
project-events [project]
|
79
|
-
project-tags [project]
|
80
|
-
project-commits [project]
|
81
|
-
upload [project][--path,--ver,--desc]
|
76
|
+
projects List created projects
|
77
|
+
create-project [project] Create a new project
|
78
|
+
delete-project [project] Delete the project
|
79
|
+
project-events [project] List the event info for the project
|
80
|
+
project-tags [project] List the tags for the project
|
81
|
+
project-commits [project] List the commit log for the project
|
82
|
+
upload [project][--path,--ver,--desc] Upload the war package for java project
|
82
83
|
|
83
84
|
Application
|
84
|
-
apps [--project,--target]
|
85
|
-
create-app [appname]
|
86
|
-
delete-app [appid]
|
87
|
-
delete-app <appname> <--target TARGET>
|
88
|
-
start-app [appid]
|
89
|
-
start-app <appname> <--target TARGET>
|
90
|
-
stop-app [appid]
|
91
|
-
stop-app <appname> <--target TARGET>
|
92
|
-
restart-app [appid]
|
93
|
-
restart-app <appname> <--target TARGET>
|
94
|
-
scale-app [appid]
|
95
|
-
scale-app <appname> <--target TARGET>
|
96
|
-
update-app [appid]
|
97
|
-
update-app <appname> <--target TARGET>
|
98
|
-
status [appid]
|
99
|
-
status <appname> <--target TARGET>
|
100
|
-
app-env [appid]
|
101
|
-
app-env <appname> <--target TARGET>
|
102
|
-
create-env [appid]
|
103
|
-
create-env <appname
|
104
|
-
delete-env [appid]
|
105
|
-
delete-env <appname> <--target TARGET>
|
106
|
-
app-log [appid]
|
107
|
-
app-log <appname> <--target TARGET>
|
85
|
+
apps [--project,--target] List deployed applications for the project
|
86
|
+
create-app [appname] Create a new application
|
87
|
+
delete-app [appid] Delete the application
|
88
|
+
delete-app <appname> <--target TARGET> Delete the application
|
89
|
+
start-app [appid] Start the application
|
90
|
+
start-app <appname> <--target TARGET> Start the application
|
91
|
+
stop-app [appid] Stop the application
|
92
|
+
stop-app <appname> <--target TARGET> Stop the application
|
93
|
+
restart-app [appid] Restart the application
|
94
|
+
restart-app <appname> <--target TARGET> Restart the application
|
95
|
+
scale-app [appid] [--instance N] Scale the application instances up or down
|
96
|
+
scale-app <appname> <--target TARGET> [--instance N] Scale the application instances up or down
|
97
|
+
update-app [appid] [--ver VERSION] Update the application
|
98
|
+
update-app <appname> <--target TARGET>[--ver VERSION] Update the application
|
99
|
+
status [appid] Display resource usage for the application
|
100
|
+
status <appname> <--target TARGET> Display resource usage for the application
|
101
|
+
app-env [appid] Display the environments for the application
|
102
|
+
app-env <appname> <--target TARGET> Display the environments for the application
|
103
|
+
create-env [appid][--name,--value] Create the environment for the application
|
104
|
+
create-env <appname><--target TARGET>[--name,--value] Create the environment for the application
|
105
|
+
delete-env [appid] [--name NAME] Delete the environment for the application
|
106
|
+
delete-env <appname> <--target TARGET> [--name NAME] Delete the environment for the application
|
107
|
+
app-log [appid] List the logs for the application
|
108
|
+
app-log <appname> <--target TARGET> List the logs for the application
|
108
109
|
|
109
110
|
Service
|
110
|
-
app-service [appid]
|
111
|
-
app-service <appname> <--target TARGET>
|
112
|
-
bind-service [appid]
|
113
|
-
bind-service <appname> <--target TARGET>
|
114
|
-
unbind-service [appid]
|
115
|
-
unbind-service <appname> <--target TARGET>
|
116
|
-
|
111
|
+
app-service [appid] Display the binded services for the application
|
112
|
+
app-service <appname> <--target TARGET> Display the binded services for the application
|
113
|
+
bind-service [appid][--service SERVICE] Bind the services for the application
|
114
|
+
bind-service <appname> <--target TARGET> [--service] Bind the services for the application
|
115
|
+
unbind-service [appid][--service SERVICE] Unbind the services for the application
|
116
|
+
unbind-service <appname> <--target TARGET>[--service] Unbind the services for the application
|
117
|
+
services List dedicated services
|
118
|
+
service [serviceid] List the connection info for the service
|
119
|
+
export-service [serviceid] Export dedicated service url
|
120
|
+
import-service [url] Import dedicated service
|
121
|
+
check-service [serviceid] Check availability for the service
|
122
|
+
delete-service [serviceid] Delete the service
|
123
|
+
register-service [serviceid] [--target,--type] Register to target
|
124
|
+
deregister-service [serviceid] [--target TARGET] Deregister to target
|
125
|
+
|
117
126
|
DNS
|
118
|
-
app-dns [appid]
|
119
|
-
app-dns <appname> <--target TARGET>
|
120
|
-
map-dns [appid]
|
121
|
-
map-dns <appname> <--target TARGET>
|
122
|
-
unmap-dns [appid]
|
123
|
-
unmap-dns <appname> <--target TARGET>
|
127
|
+
app-dns [appid] Display the mapped urls for the application
|
128
|
+
app-dns <appname> <--target TARGET> Display the mapped urls for the application
|
129
|
+
map-dns [appid] [--dns DNS] Map the urls for the application
|
130
|
+
map-dns <appname> <--target TARGET> [--dns DNS] Map the urls for the application
|
131
|
+
unmap-dns [appid] [--dns DNS] Unmap the urls for the application
|
132
|
+
unmap-dns <appname> <--target TARGET> [--dns DNS] Unmap the urls for the application
|
133
|
+
dns List the dns
|
134
|
+
create-dns [dnsname] [--zoneid,--project,--desc] Create a new dns
|
135
|
+
register-dns [dnsid] Register to target
|
136
|
+
deregister-dns [dnsid] Deregister to target
|
137
|
+
delete-dns [dnsid] Delete the dns
|
124
138
|
|
125
139
|
4. Example
|
126
140
|
|
127
141
|
ubuntu@admin:~$ pi login
|
128
|
-
Attempting login to 'http://
|
142
|
+
Attempting login to 'http://staging.samsungcloud.org'? [Yn]:
|
129
143
|
User: wangjing
|
130
144
|
Password: *******
|
131
|
-
Successfully logged into [http://
|
145
|
+
Successfully logged into [http://staging.samsungcloud.org]
|
132
146
|
|
133
|
-
ubuntu@admin:~$ pi login
|
134
|
-
Successfully logged into [http://
|
147
|
+
ubuntu@admin:~$ pi login staging.samsungcloud.org --user wangjing --password cloudpi
|
148
|
+
Successfully logged into [http://staging.samsungcloud.org]
|
135
149
|
|
136
150
|
ubuntu@admin:~$ pi version
|
137
|
-
pi 0.1.
|
151
|
+
pi 0.1.25
|
138
152
|
|
139
153
|
ubuntu@admin:~$ pi user
|
140
154
|
|
@@ -151,9 +165,15 @@ ubuntu@admin:~$ pi targets
|
|
151
165
|
| Name | URL |
|
152
166
|
+------------+------------------------------------+
|
153
167
|
| ap-ne-test | http://ap-ne-test.samsungcloud.org |
|
154
|
-
|
|
168
|
+
| bst-dev | http://bst-dev.samsungcloud.org |
|
155
169
|
+------------+------------------------------------+
|
156
170
|
|
171
|
+
ubuntu@admin:~$ pi password
|
172
|
+
Old Password: *******
|
173
|
+
New Password: ****
|
174
|
+
Verify Password: ****
|
175
|
+
ok
|
176
|
+
|
157
177
|
ubuntu@admin:~$ pi runtimes
|
158
178
|
|
159
179
|
+--------+
|
@@ -190,68 +210,82 @@ Try 'pi help [command]' or 'pi help options' for more information.
|
|
190
210
|
Currently available pi commands are:
|
191
211
|
|
192
212
|
User
|
193
|
-
login [url] [--user,--password]
|
194
|
-
logout
|
195
|
-
info
|
196
|
-
user
|
197
|
-
targets
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
help
|
213
|
+
login [url] [--user,--password] Login
|
214
|
+
logout Logs current user out of the system
|
215
|
+
info List system information
|
216
|
+
user Display user information
|
217
|
+
targets List available targets infomation
|
218
|
+
password [oldpassword] [--password PASS] Change the password for the current user
|
219
|
+
github [name] [--email,--password] Bind to the github account
|
220
|
+
runtimes Display the supported runtimes of the system
|
221
|
+
frameworks Display the supported frameworks of the system
|
222
|
+
version Display version information
|
223
|
+
help [command] Get general help or help on a specific command
|
224
|
+
help options Get help on available options
|
204
225
|
|
205
226
|
Project
|
206
|
-
projects
|
207
|
-
create-project [project]
|
208
|
-
delete-project [project]
|
209
|
-
project-events [project]
|
210
|
-
project-tags [project]
|
211
|
-
project-commits [project]
|
212
|
-
upload [project][--path,--ver,--desc]
|
227
|
+
projects List created projects
|
228
|
+
create-project [project] Create a new project
|
229
|
+
delete-project [project] Delete the project
|
230
|
+
project-events [project] List the event info for the project
|
231
|
+
project-tags [project] List the tags for the project
|
232
|
+
project-commits [project] List the commit log for the project
|
233
|
+
upload [project][--path,--ver,--desc] Upload the war package for java project
|
213
234
|
|
214
235
|
Application
|
215
|
-
apps [--project,--target]
|
216
|
-
create-app [appname]
|
217
|
-
delete-app [appid]
|
218
|
-
delete-app <appname> <--target TARGET>
|
219
|
-
start-app [appid]
|
220
|
-
start-app <appname> <--target TARGET>
|
221
|
-
stop-app [appid]
|
222
|
-
stop-app <appname> <--target TARGET>
|
223
|
-
restart-app [appid]
|
224
|
-
restart-app <appname> <--target TARGET>
|
225
|
-
scale-app [appid]
|
226
|
-
scale-app <appname> <--target TARGET>
|
227
|
-
update-app [appid]
|
228
|
-
update-app <appname> <--target TARGET>
|
229
|
-
status [appid]
|
230
|
-
status <appname> <--target TARGET>
|
231
|
-
app-env [appid]
|
232
|
-
app-env <appname> <--target TARGET>
|
233
|
-
create-env [appid]
|
234
|
-
create-env <appname
|
235
|
-
delete-env [appid]
|
236
|
-
delete-env <appname> <--target TARGET>
|
237
|
-
app-log [appid]
|
238
|
-
app-log <appname> <--target TARGET>
|
236
|
+
apps [--project,--target] List deployed applications for the project
|
237
|
+
create-app [appname] Create a new application
|
238
|
+
delete-app [appid] Delete the application
|
239
|
+
delete-app <appname> <--target TARGET> Delete the application
|
240
|
+
start-app [appid] Start the application
|
241
|
+
start-app <appname> <--target TARGET> Start the application
|
242
|
+
stop-app [appid] Stop the application
|
243
|
+
stop-app <appname> <--target TARGET> Stop the application
|
244
|
+
restart-app [appid] Restart the application
|
245
|
+
restart-app <appname> <--target TARGET> Restart the application
|
246
|
+
scale-app [appid] [--instance N] Scale the application instances up or down
|
247
|
+
scale-app <appname> <--target TARGET> [--instance N] Scale the application instances up or down
|
248
|
+
update-app [appid] [--ver VERSION] Update the application
|
249
|
+
update-app <appname> <--target TARGET>[--ver VERSION] Update the application
|
250
|
+
status [appid] Display resource usage for the application
|
251
|
+
status <appname> <--target TARGET> Display resource usage for the application
|
252
|
+
app-env [appid] Display the environments for the application
|
253
|
+
app-env <appname> <--target TARGET> Display the environments for the application
|
254
|
+
create-env [appid][--name,--value] Create the environment for the application
|
255
|
+
create-env <appname><--target TARGET>[--name,--value] Create the environment for the application
|
256
|
+
delete-env [appid] [--name NAME] Delete the environment for the application
|
257
|
+
delete-env <appname> <--target TARGET> [--name NAME] Delete the environment for the application
|
258
|
+
app-log [appid] List the logs for the application
|
259
|
+
app-log <appname> <--target TARGET> List the logs for the application
|
239
260
|
|
240
261
|
Service
|
241
|
-
app-service [appid]
|
242
|
-
app-service <appname> <--target TARGET>
|
243
|
-
bind-service [appid]
|
244
|
-
bind-service <appname> <--target TARGET>
|
245
|
-
unbind-service [appid]
|
246
|
-
unbind-service <appname> <--target TARGET>
|
247
|
-
|
262
|
+
app-service [appid] Display the binded services for the application
|
263
|
+
app-service <appname> <--target TARGET> Display the binded services for the application
|
264
|
+
bind-service [appid][--service SERVICE] Bind the services for the application
|
265
|
+
bind-service <appname> <--target TARGET> [--service] Bind the services for the application
|
266
|
+
unbind-service [appid][--service SERVICE] Unbind the services for the application
|
267
|
+
unbind-service <appname> <--target TARGET>[--service] Unbind the services for the application
|
268
|
+
services List dedicated services
|
269
|
+
service [serviceid] List the connection info for the service
|
270
|
+
export-service [serviceid] Export dedicated service url
|
271
|
+
import-service [url] Import dedicated service
|
272
|
+
check-service [serviceid] Check availability for the service
|
273
|
+
delete-service [serviceid] Delete the service
|
274
|
+
register-service [serviceid] [--target,--type] Register to target
|
275
|
+
deregister-service [serviceid] [--target TARGET] Deregister to target
|
276
|
+
|
248
277
|
DNS
|
249
|
-
app-dns [appid]
|
250
|
-
app-dns <appname> <--target TARGET>
|
251
|
-
map-dns [appid]
|
252
|
-
map-dns <appname> <--target TARGET>
|
253
|
-
unmap-dns [appid]
|
254
|
-
unmap-dns <appname> <--target TARGET>
|
278
|
+
app-dns [appid] Display the mapped urls for the application
|
279
|
+
app-dns <appname> <--target TARGET> Display the mapped urls for the application
|
280
|
+
map-dns [appid] [--dns DNS] Map the urls for the application
|
281
|
+
map-dns <appname> <--target TARGET> [--dns DNS] Map the urls for the application
|
282
|
+
unmap-dns [appid] [--dns DNS] Unmap the urls for the application
|
283
|
+
unmap-dns <appname> <--target TARGET> [--dns DNS] Unmap the urls for the application
|
284
|
+
dns List the dns
|
285
|
+
create-dns [dnsname] [--zoneid,--project,--desc] Create a new dns
|
286
|
+
register-dns [dnsid] Register to target
|
287
|
+
deregister-dns [dnsid] Deregister to target
|
288
|
+
delete-dns [dnsid] Delete the dns
|
255
289
|
|
256
290
|
ubuntu@admin:~$ pi help options
|
257
291
|
|
@@ -267,6 +301,12 @@ Available options:
|
|
267
301
|
--desc DESC
|
268
302
|
--project PROJ
|
269
303
|
--target TARG
|
304
|
+
--instance N
|
305
|
+
--type TYPE
|
306
|
+
--value VALUE
|
307
|
+
--service SERVICE
|
308
|
+
--dns DNS
|
309
|
+
--zoneid ID
|
270
310
|
-t [TKEY]
|
271
311
|
--trace [TKEY]
|
272
312
|
-q, --quiet
|
@@ -323,7 +363,7 @@ Uploading "paashelp.war": ..OK
|
|
323
363
|
|
324
364
|
ubuntu@admin:~$ pi create-app
|
325
365
|
1: ap-ne-test
|
326
|
-
2:
|
366
|
+
2: bst-dev
|
327
367
|
Select Target: 1
|
328
368
|
Selected Target: ap-ne-test
|
329
369
|
Available memory: 5952 M
|
@@ -343,7 +383,9 @@ URL: java.wangjing.ap-ne-test.samsungpaas.com
|
|
343
383
|
Memory reservation (64M, 128M, 256M, 512M, 1G, 2G) [64M]:
|
344
384
|
How many instances? [1]:
|
345
385
|
Need debug? [yN]:
|
346
|
-
|
386
|
+
1: restart
|
387
|
+
2: notify
|
388
|
+
Reaction when service changed [notify]: 1
|
347
389
|
Need monitor? [yN]:
|
348
390
|
1: master
|
349
391
|
Select Branch [master]:
|
@@ -409,7 +451,7 @@ ubuntu@admin:~$ pi stop-app
|
|
409
451
|
Select application by: 3
|
410
452
|
Select application by target
|
411
453
|
1: ap-ne-test
|
412
|
-
2:
|
454
|
+
2: bst-dev
|
413
455
|
Select Target: 1
|
414
456
|
Selected Target: ap-ne-test
|
415
457
|
1: test
|
@@ -422,12 +464,12 @@ The application 'java'(target:ap-ne-test) has already stopped.
|
|
422
464
|
ubuntu@admin:~$ pi start-app java --target ap-ne-test
|
423
465
|
Starting application 'java'(target:ap-ne-test): .........................................................OK
|
424
466
|
|
425
|
-
ubuntu@admin:~$ pi status
|
467
|
+
ubuntu@admin:~$ pi status 1803
|
426
468
|
+-------------+---------+--------+-----------+---------+--------------+------------+
|
427
469
|
| Instance ID | Status | CPU(%) | Memory(M) | Disk(M) | RequestCount | ErrorCount |
|
428
470
|
+-------------+---------+--------+-----------+---------+--------------+------------+
|
429
|
-
|
|
430
|
-
|
|
471
|
+
| 40c8f1 | running | 0.2 | 270 | 116 | 0 | 0 |
|
472
|
+
| 353573 | running | 0.2 | 232 | 116 | 0 | 0 |
|
431
473
|
+-------------+---------+--------+-----------+---------+--------------+------------+
|
432
474
|
|
433
475
|
ubuntu@admin:~$ pi scale-app 1817
|
@@ -498,6 +540,77 @@ Environment Name: 1
|
|
498
540
|
Selected Environment Name: aa
|
499
541
|
OK
|
500
542
|
|
543
|
+
ubuntu@admin:~$ pi bind-service 1817
|
544
|
+
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
545
|
+
Select services, indexed list?: 1
|
546
|
+
Selected services: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
547
|
+
Binding service: ...............................OK
|
548
|
+
|
549
|
+
ubuntu@admin:~$ pi app-service 1817
|
550
|
+
+-------------------------------------------------+---------+-----------+
|
551
|
+
| Name | Version | Type |
|
552
|
+
+-------------------------------------------------+---------+-----------+
|
553
|
+
| mysql_demo_251_cloudpi-dedicated-mysql_wangjing | 5.1.410 | dedicated |
|
554
|
+
+-------------------------------------------------+---------+-----------+
|
555
|
+
|
556
|
+
ubuntu@admin:~$ pi unbind-service 1817
|
557
|
+
1. mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
558
|
+
Select Service: 1
|
559
|
+
Selected Service: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
560
|
+
Unbinding service: ...................................................OK
|
561
|
+
|
562
|
+
ubuntu@admin:~$ pi services
|
563
|
+
+-----+-------------------------------------------------+------------+--------------+---------+----------+
|
564
|
+
| ID | Name | Farm Name | Service Type | Version | Owner |
|
565
|
+
+-----+-------------------------------------------------+------------+--------------+---------+----------+
|
566
|
+
| 269 | mysql_demo_251_cloudpi-dedicated-mysql_wangjing | mysql_demo | mysql | 5.1.41 | wangjing |
|
567
|
+
+-----+-------------------------------------------------+------------+--------------+---------+----------+
|
568
|
+
|
569
|
+
ubuntu@admin:~$ pi service
|
570
|
+
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
571
|
+
Select service: 1
|
572
|
+
{"version":"5.1.41","vendor":"mysql","plan":"free","credentials":[{"username":"scalr","host":"ec2-75-101-185-90.compute-1.amazonaws.com","password":"03u5PVIFMjV8zg1WLudb","user":"scalr","hostname":"ec2-75-101-185-90.compute-1.amazonaws.com","type":"master","port":3306,"name":"cloudpidb"}],"url":"http://mysql.com/","service_id":"mysql_demo_251_cloudpi-dedicated-mysql_wangjing"}
|
573
|
+
|
574
|
+
ubuntu@admin:~$ pi check-service
|
575
|
+
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
576
|
+
Select service: 1
|
577
|
+
Service is available.
|
578
|
+
|
579
|
+
ubuntu@admin:~$ pi export-service
|
580
|
+
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
581
|
+
Select service: 1
|
582
|
+
http://api.staging.samsungcloud.org/dedicatedservice/6.7250000000000005
|
583
|
+
|
584
|
+
ubuntu@admin:~$ pi import-service
|
585
|
+
Input the url to import: http://127.0.0.1:8080/dedicatedservice/6.550000000000001
|
586
|
+
OK
|
587
|
+
|
588
|
+
ubuntu@admin:~$ pi register-service
|
589
|
+
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
590
|
+
2: membase-session-manager1_230_cloudpi-dedicated-membase_dev
|
591
|
+
Select service: 2
|
592
|
+
1: ap-ne-test
|
593
|
+
2: bst-dev
|
594
|
+
Select target: 1
|
595
|
+
1: App Service
|
596
|
+
2: Session Service
|
597
|
+
Select service type: 1
|
598
|
+
OK
|
599
|
+
|
600
|
+
ubuntu@admin:~$ pi deregister-service
|
601
|
+
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
602
|
+
2: membase-session-manager1_230_cloudpi-dedicated-membase_dev
|
603
|
+
Select service: 2
|
604
|
+
1: ap-ne-test
|
605
|
+
Select target: 1
|
606
|
+
OK
|
607
|
+
|
608
|
+
ubuntu@admin:~$ pi delete-service
|
609
|
+
1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
|
610
|
+
2: membase-session-manager1_230_cloudpi-dedicated-membase_dev
|
611
|
+
Select service: 2
|
612
|
+
OK
|
613
|
+
|
501
614
|
ubuntu@admin:~$ pi map-dns 1817
|
502
615
|
1: javatest1.samsungpaas.com
|
503
616
|
2: javatest2.samsungpaas.com
|
@@ -519,24 +632,137 @@ ubuntu@admin:~$ pi app-dns 1817
|
|
519
632
|
| javatest1.samsungpaas.com |
|
520
633
|
+---------------------------+
|
521
634
|
|
522
|
-
ubuntu@admin:~$ pi
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
635
|
+
ubuntu@admin:~$ pi dns
|
636
|
+
+-----+---------------------------+--------------+-------------+
|
637
|
+
| ID | DNS Name | Project Name | Description |
|
638
|
+
+-----+---------------------------+--------------+-------------+
|
639
|
+
| 203 | javawj.samsungpaas.com | javawj | |
|
640
|
+
| 204 | javawj2.samsungpaas.com | javawj | |
|
641
|
+
| 165 | rails.samsungpaas.com | railswj | |
|
642
|
+
| 193 | railsdemo.samsungpaas.com | railswj | |
|
643
|
+
| 168 | railstest.samsungpaas.com | railswj | |
|
644
|
+
| 194 | railstmp.samsungpaas.com | railswj | |
|
645
|
+
+-----+---------------------------+--------------+-------------+
|
646
|
+
|
647
|
+
ubuntu@admin:~$ pi create-dns
|
648
|
+
1: railswj
|
649
|
+
2: javagithub
|
650
|
+
3: railsgithub
|
651
|
+
4: javawj
|
652
|
+
5: sinatra
|
653
|
+
Project name: 4
|
654
|
+
1: samsungpaas.com
|
655
|
+
Select dns zone: 1
|
656
|
+
DNS name: javawangj
|
657
|
+
Description: test
|
658
|
+
OK
|
527
659
|
|
528
|
-
ubuntu@admin:~$ pi
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
660
|
+
ubuntu@admin:~$ pi register-dns
|
661
|
+
1: rails.samsungpaas.com
|
662
|
+
2: railstest.samsungpaas.com
|
663
|
+
3: railsdemo.samsungpaas.com
|
664
|
+
4: railstmp.samsungpaas.com
|
665
|
+
5: javawj.samsungpaas.com
|
666
|
+
6: javawj2.samsungpaas.com
|
667
|
+
7: javawangj.samsungpaas.com
|
668
|
+
Select DNS: 7
|
669
|
+
1: ap-ne-test
|
670
|
+
2: bst-dev
|
671
|
+
Select target: 1
|
672
|
+
1: Africa
|
673
|
+
2: Antarctica
|
674
|
+
3: Asia
|
675
|
+
4: Europe
|
676
|
+
5: North America
|
677
|
+
6: Oceania
|
678
|
+
7: South America
|
679
|
+
Select continent: 3
|
680
|
+
Select continent: Asia
|
681
|
+
1: Afghanistan
|
682
|
+
2: Armenia
|
683
|
+
3: Asia(continent)
|
684
|
+
4: Asia/Pacific Region
|
685
|
+
5: Azerbaijan
|
686
|
+
6: Bahrain
|
687
|
+
7: Bangladesh
|
688
|
+
8: Bhutan
|
689
|
+
9: British Indian Ocean Territory
|
690
|
+
10: Brunei Darussalam
|
691
|
+
11: Cambodia
|
692
|
+
12: China
|
693
|
+
13: Christmas Island
|
694
|
+
14: Cocos (Keeling) Islands
|
695
|
+
15: Cyprus
|
696
|
+
16: Georgia
|
697
|
+
17: Hong Kong
|
698
|
+
18: India
|
699
|
+
19: Indonesia
|
700
|
+
20: Iran, Islamic Republic of
|
701
|
+
21: Iraq
|
702
|
+
22: Israel
|
703
|
+
23: Japan
|
704
|
+
24: Jordan
|
705
|
+
25: Kazakhstan
|
706
|
+
26: Kuwait
|
707
|
+
27: Kyrgyzstan
|
708
|
+
28: Lao People's Democratic Republic
|
709
|
+
29: Lebanon
|
710
|
+
30: Macao
|
711
|
+
31: Malaysia
|
712
|
+
32: Maldives
|
713
|
+
33: Mongolia
|
714
|
+
34: Myanmar
|
715
|
+
35: Nepal
|
716
|
+
36: North Korea
|
717
|
+
37: Oman
|
718
|
+
38: Pakistan
|
719
|
+
39: Palestinian Territory
|
720
|
+
40: Philippines
|
721
|
+
41: Qatar
|
722
|
+
42: Saudi Arabia
|
723
|
+
43: Singapore
|
724
|
+
44: South Korea
|
725
|
+
45: Sri Lanka
|
726
|
+
46: Syrian Arab Republic
|
727
|
+
47: Taiwan
|
728
|
+
48: Tajikistan
|
729
|
+
49: Thailand
|
730
|
+
50: Timor-Leste
|
731
|
+
51: Turkmenistan
|
732
|
+
52: United Arab Emirates
|
733
|
+
53: Uzbekistan
|
734
|
+
54: Vietnam
|
735
|
+
55: Yemen
|
736
|
+
Select country: 12
|
737
|
+
Select country: China
|
738
|
+
OK
|
534
739
|
|
535
|
-
ubuntu@admin:~$ pi
|
536
|
-
1.
|
537
|
-
|
538
|
-
|
539
|
-
|
740
|
+
ubuntu@admin:~$ pi deregister-dns
|
741
|
+
1: rails.samsungpaas.com
|
742
|
+
2: railstest.samsungpaas.com
|
743
|
+
3: railsdemo.samsungpaas.com
|
744
|
+
4: railstmp.samsungpaas.com
|
745
|
+
5: javawj.samsungpaas.com
|
746
|
+
6: javawj2.samsungpaas.com
|
747
|
+
7: javawangj.samsungpaas.com
|
748
|
+
Select DNS: 7
|
749
|
+
1: ap-ne-test
|
750
|
+
2: bst-dev
|
751
|
+
Select target: 1
|
752
|
+
1: China
|
753
|
+
Select record: 1
|
754
|
+
OK
|
755
|
+
|
756
|
+
ubuntu@admin:~$ pi delete-dns
|
757
|
+
1: rails.samsungpaas.com
|
758
|
+
2: railstest.samsungpaas.com
|
759
|
+
3: railsdemo.samsungpaas.com
|
760
|
+
4: railstmp.samsungpaas.com
|
761
|
+
5: javawj.samsungpaas.com
|
762
|
+
6: javawj2.samsungpaas.com
|
763
|
+
7: javawangj.samsungpaas.com
|
764
|
+
Select DNS: 7
|
765
|
+
OK
|
540
766
|
|
541
767
|
ubuntu@admin:~$ pi project-events
|
542
768
|
1: javagithub
|