WEB-IDE 설치 가이드

1. 문서 개요

1.1. 목적

본 문서(WEB-IDE 설치 가이드)는 PaaS-TA에서 사용할 수 있는 WEB-IDE의 설치를 Bosh를 이용하여 설치 하는 방법과 PaaS-TA 포털에서 WEB-IDE 서비스를 사용하는 방법을 기술하였다. PaaS-TA 3.5 버전부터는 Bosh2.0 기반으로 deploy를 진행하며 기존 Bosh1.0 기반으로 설치를 원할경우에는 PaaS-TA 3.1 이하 버전의 문서를 참고한다.

1.2. 범위

설치 범위는 WEB-IDE 사용을 검증하기 위한 기본 설치를 기준으로 작성하였다.

1.3. 시스템 구성도

본 문서의 설치된 시스템 구성도입니다. Browser(PaaS-TA Portal), WEB IDE Server, Workspace, Desktop IDE로 최소사항을 구성하였다.
Could not load image
구분
Resource Pool
스펙
paasta-web-ide1
resource_pools
1vCPU / 2GB RAM / 10GB Disk
paasta-web-ide1
resource_pools
1vCPU / 2GB RAM / 10GB Disk

1.4. 참고자료

2.WEB IDE 설치

2.1. 설치전 준비사항

본 설치 가이드는 Linux 환경에서 설치하는 것을 기준으로 하였다. 서비스팩 설치를 위해서는 BOSH 2.0과 PaaS-TA 5.0, PaaS-TA 포털이 설치되어 있어야 한다.
  • PaaS-TA에서 제공하는 압축된 릴리즈 파일들을 다운받는다. (PaaSTA-Deployment.zip, PaaSTA-Sample-Apps.zip, PaaSTA-Services.zip)
  • 다운로드 위치

2.2. WEB-IDE 릴리즈 업로드

  • 업로드 되어 있는 릴리즈 목록을 확인한다.
  • 사용 예시
    1
    $ bosh -e micro-bosh releases
    2
    Using environment '10.30.40.111' as user 'admin' (openid, bosh.admin)
    3
    4
    Name Version Commit Hash
    5
    binary-buildpack 1.0.21* d714741
    6
    bpm 0.9.0* c9b7136
    7
    caas-release 1.0* empty+
    8
    capi 1.62.0* 22a608c
    9
    cf-networking 2.8.0* 479f4a66
    10
    cf-smoke-tests 40.0.5* d6aaf1f
    11
    cf-syslog-drain 7.0* 71b995a
    12
    cflinuxfs2 1.227.0* 60128e1
    13
    consul 195* 67cdbcd
    14
    diego 2.13.0* b5644d9
    15
    dotnet-core-buildpack 2.1.3* 46a41cd
    16
    garden-runc 1.15.1* 75107e7+
    17
    go-buildpack 1.8.25* 40c60a0
    18
    haproxy 8.8.0* 9292573
    19
    java-buildpack 4.13* c2749d3
    20
    loggregator 103.0* 05da4e3d
    21
    loggregator-agent 2.0* 2382c90
    22
    nats 24* 30e7a82
    23
    nodejs-buildpack 1.6.28* 4cfdb7b
    24
    paas-ta-portal-release 2.0* non-git
    25
    paasta-delivery-pipeline-release 1.0* b3ee8f48+
    26
    paasta-pinpoint 2.0* 2dbb8bf3+
    27
    php-buildpack 4.3.57* efc48f3
    28
    postgres 29* 5de4d63d+
    29
    python-buildpack 1.6.18* bcc4f26
    30
    routing 0.179.0* 18155a5
    31
    ruby-buildpack 1.7.21* 9d69600
    32
    silk 2.9.0* eebed55
    33
    staticfile-buildpack 1.4.29* 8a82e63
    34
    statsd-injector 1.3.0* 39e5179
    35
    uaa 60.2* ebb5895
    36
    37
    (*) Currently deployed
    38
    (+) Uncommitted changes
    39
    40
    31 releases
    41
    42
    Succeeded
    Copied!
  • WEB-IDE 서비스 릴리즈가 업로드 되어 있지 않은 것을 확인
  • WEB-IDE 서비스 릴리즈 파일을 업로드한다.
  • 사용 예시
    1
    $ bosh -e micro-bosh upload-release paasta-web-ide-1.0.tgz
    2
    Using environment '10.30.40.111' as user 'admin' (openid, bosh.admin)
    3
    4
    ######################################################## 100.00% 160.45 MiB/s 1s
    5
    Task 7866
    6
    7
    Task 7866 | 02:21:08 | Extracting release: Extracting release (00:00:03)
    8
    Task 7866 | 02:21:11 | Verifying manifest: Verifying manifest (00:00:00)
    9
    Task 7866 | 02:21:11 | Resolving package dependencies: Resolving package dependencies (00:00:00)
    10
    Task 7866 | 02:21:11 | Creating new packages: eclipse-che/eff6040fd5ed2a30190955140bb58f892ff830ec (00:00:03)
    11
    Task 7866 | 02:21:14 | Creating new packages: bosh-helpers/2b45cec940a80e582427f61c460269c6ccb031c8 (00:00:01)
    12
    Task 7866 | 02:21:15 | Creating new packages: docker/8da016ec9d1b172b779d5ff0a9fbbfc4973ea734 (00:00:00)
    13
    Task 7866 | 02:21:15 | Creating new packages: java/b74e140053eddb6a3a958568d66f801686d09e04 (00:00:02)
    14
    Task 7866 | 02:21:17 | Creating new jobs: eclipse-che/2f368c268ee821488f04f4b05a25eba963cda484 (00:00:00)
    15
    Task 7866 | 02:21:17 | Release has been created: paasta-web-ide/2.0 (00:00:00)
    16
    17
    Task 7866 Started Thu Sep 13 02:21:08 UTC 2018
    18
    Task 7866 Finished Thu Sep 13 02:21:17 UTC 2018
    19
    Task 7866 Duration 00:00:09
    20
    Task 7866 done
    21
    22
    Succeeded
    Copied!
  • 업로드 된 WEB-IDE 릴리즈를 확인한다.
  • 사용 예시
    1
    $ bosh -e micro-bosh releases
    2
    Using environment '10.30.40.111' as user 'admin' (openid, bosh.admin)
    3
    4
    Name Version Commit Hash
    5
    binary-buildpack 1.0.21* d714741
    6
    bpm 0.9.0* c9b7136
    7
    caas-release 1.0* empty+
    8
    capi 1.62.0* 22a608c
    9
    cf-networking 2.8.0* 479f4a66
    10
    cf-smoke-tests 40.0.5* d6aaf1f
    11
    cf-syslog-drain 7.0* 71b995a
    12
    cflinuxfs2 1.227.0* 60128e1
    13
    consul 195* 67cdbcd
    14
    diego 2.13.0* b5644d9
    15
    dotnet-core-buildpack 2.1.3* 46a41cd
    16
    garden-runc 1.15.1* 75107e7+
    17
    go-buildpack 1.8.25* 40c60a0
    18
    haproxy 8.8.0* 9292573
    19
    java-buildpack 4.13* c2749d3
    20
    loggregator 103.0* 05da4e3d
    21
    loggregator-agent 2.0* 2382c90
    22
    nats 24* 30e7a82
    23
    nodejs-buildpack 1.6.28* 4cfdb7b
    24
    paas-ta-portal-release 2.0* non-git
    25
    paasta-delivery-pipeline-release 1.0* b3ee8f48+
    26
    paasta-web-ide 2.0 00000000
    27
    paasta-pinpoint 2.0* 2dbb8bf3+
    28
    php-buildpack 4.3.57* efc48f3
    29
    postgres 29* 5de4d63d+
    30
    python-buildpack 1.6.18* bcc4f26
    31
    routing 0.179.0* 18155a5
    32
    ruby-buildpack 1.7.21* 9d69600
    33
    silk 2.9.0* eebed55
    34
    staticfile-buildpack 1.4.29* 8a82e63
    35
    statsd-injector 1.3.0* 39e5179
    36
    uaa 60.2* ebb5895
    37
    38
    (*) Currently deployed
    39
    (+) Uncommitted changes
    40
    41
    32 releases
    42
    43
    Succeeded
    Copied!
  • WEB-IDE 서비스 릴리즈가 업로드 되어 있는 것을 확인
  • Deploy시 사용할 Stemcell을 확인한다.
  • 사용 예시
    1
    $ bosh -e micro-bosh stemcells
    2
    Name Version OS CPI CID
    3
    bosh-openstack-kvm-ubuntu-xenial-go_agent 315.64* ubuntu-xenial - fb08e389-2350-4091-9b29-41743495e62c
    4
    5
    (*) Currently deployed
    6
    7
    1 stemcells
    8
    9
    Succeeded
    Copied!

2.3.WEB-IDE Deployment 파일 수정 및 배포

BOSH Deployment manifest 는 components 요소 및 배포의 속성을 정의한 YAML 파일이다. Deployment manifest 에는 sotfware를 설치 하기 위해서 어떤 Stemcell (OS, BOSH agent) 을 사용할것이며 Release (Software packages, Config templates, Scripts) 이름과 버전, VMs 용량, Jobs params 등을 정의가 되어 있다.
deployment 파일에서 사용하는 network, vm_type 등은 cloud config 를 활용하고 해당 가이드는 Bosh2.0 가이드를 참고한다.
  • cloud config 내용 조회
  • 사용 예시
    1
    bosh -e micro-bosh cloud-config
    2
    Using environment '10.30.40.111' as user 'admin' (openid, bosh.admin)
    3
    4
    azs:
    5
    - cloud_properties:
    6
    datacenters:
    7
    - clusters:
    8
    - BD-HA:
    9
    resource_pool: CF_BOSH2_Pool
    10
    name: BD-HA
    11
    name: z1
    12
    - cloud_properties:
    13
    datacenters:
    14
    - clusters:
    15
    - BD-HA:
    16
    resource_pool: CF_BOSH2_Pool
    17
    name: BD-HA
    18
    name: z2
    19
    - cloud_properties:
    20
    datacenters:
    21
    - clusters:
    22
    - BD-HA:
    23
    resource_pool: CF_BOSH2_Pool
    24
    name: BD-HA
    25
    name: z3
    26
    - cloud_properties:
    27
    datacenters:
    28
    - clusters:
    29
    - BD-HA:
    30
    resource_pool: CF_BOSH2_Pool
    31
    name: BD-HA
    32
    name: z4
    33
    - cloud_properties:
    34
    datacenters:
    35
    - clusters:
    36
    - BD-HA:
    37
    resource_pool: CF_BOSH2_Pool
    38
    name: BD-HA
    39
    name: z5
    40
    - cloud_properties:
    41
    datacenters:
    42
    - clusters:
    43
    - BD-HA:
    44
    resource_pool: CF_BOSH2_Pool
    45
    name: BD-HA
    46
    name: z6
    47
    compilation:
    48
    az: z1
    49
    network: default
    50
    reuse_compilation_vms: true
    51
    vm_type: large
    52
    workers: 5
    53
    disk_types:
    54
    - disk_size: 1024
    55
    name: default
    56
    - disk_size: 1024
    57
    name: 1GB
    58
    - disk_size: 2048
    59
    name: 2GB
    60
    - disk_size: 4096
    61
    name: 4GB
    62
    - disk_size: 5120
    63
    name: 5GB
    64
    - disk_size: 8192
    65
    name: 8GB
    66
    - disk_size: 10240
    67
    name: 10GB
    68
    - disk_size: 20480
    69
    name: 20GB
    70
    - disk_size: 30720
    71
    name: 30GB
    72
    - disk_size: 51200
    73
    name: 50GB
    74
    - disk_size: 102400
    75
    name: 100GB
    76
    - disk_size: 1048576
    77
    name: 1TB
    78
    networks:
    79
    - name: default
    80
    subnets:
    81
    - azs:
    82
    - z1
    83
    - z2
    84
    - z3
    85
    - z4
    86
    - z5
    87
    - z6
    88
    cloud_properties:
    89
    name: Internal
    90
    dns:
    91
    - 8.8.8.8
    92
    gateway: 10.30.20.23
    93
    range: 10.30.0.0/16
    94
    reserved:
    95
    - 10.30.0.0 - 10.30.111.40
    96
    - name: public
    97
    subnets:
    98
    - azs:
    99
    - z1
    100
    - z2
    101
    - z3
    102
    - z4
    103
    - z5
    104
    - z6
    105
    cloud_properties:
    106
    name: External
    107
    dns:
    108
    - 8.8.8.8
    109
    gateway: 115.68.46.177
    110
    range: 115.68.46.176/28
    111
    reserved:
    112
    - 115.68.46.176 - 115.68.46.188
    113
    static:
    114
    - 115.68.46.189 - 115.68.46.190
    115
    type: manual
    116
    - name: service_private
    117
    subnets:
    118
    - azs:
    119
    - z1
    120
    - z2
    121
    - z3
    122
    - z4
    123
    - z5
    124
    - z6
    125
    cloud_properties:
    126
    name: Internal
    127
    dns:
    128
    - 8.8.8.8
    129
    gateway: 10.30.20.23
    130
    range: 10.30.0.0/16
    131
    reserved:
    132
    - 10.30.0.0 - 10.30.106.255
    133
    static:
    134
    - 10.30.107.1 - 10.30.107.255
    135
    - name: service_public
    136
    subnets:
    137
    - azs:
    138
    - z1
    139
    - z2
    140
    - z3
    141
    - z4
    142
    - z5
    143
    - z6
    144
    cloud_properties:
    145
    name: External
    146
    dns:
    147
    - 8.8.8.8
    148
    gateway: 115.68.47.161
    149
    range: 115.68.47.160/24
    150
    reserved:
    151
    - 115.68.47.161 - 115.68.47.174
    152
    static:
    153
    - 115.68.47.175 - 115.68.47.185
    154
    type: manual
    155
    - name: portal_service_public
    156
    subnets:
    157
    - azs:
    158
    - z1
    159
    - z2
    160
    - z3
    161
    - z4
    162
    - z5
    163
    - z6
    164
    cloud_properties:
    165
    name: External
    166
    dns:
    167
    - 8.8.8.8
    168
    gateway: 115.68.46.209
    169
    range: 115.68.46.208/28
    170
    reserved:
    171
    - 115.68.46.216 - 115.68.46.222
    172
    static:
    173
    - 115.68.46.214
    174
    type: manual
    175
    vm_extensions:
    176
    - cloud_properties:
    177
    ports:
    178
    - host: 3306
    179
    name: mysql-proxy-lb
    180
    - name: cf-router-network-properties
    181
    - name: cf-tcp-router-network-properties
    182
    - name: diego-ssh-proxy-network-properties
    183
    - name: cf-haproxy-network-properties
    184
    - cloud_properties:
    185
    disk: 51200
    186
    name: small-50GB
    187
    - cloud_properties:
    188
    disk: 102400
    189
    name: small-highmem-100GB
    190
    vm_types:
    191
    - cloud_properties:
    192
    cpu: 1
    193
    disk: 8192
    194
    ram: 1024
    195
    name: minimal
    196
    - cloud_properties:
    197
    cpu: 1
    198
    disk: 10240
    199
    ram: 2048
    200
    name: default
    201
    - cloud_properties:
    202
    cpu: 1
    203
    disk: 30720
    204
    ram: 4096
    205
    name: small
    206
    - cloud_properties:
    207
    cpu: 2
    208
    disk: 20480
    209
    ram: 4096
    210
    name: medium
    211
    - cloud_properties:
    212
    cpu: 2
    213
    disk: 20480
    214
    ram: 8192
    215
    name: medium-memory-8GB
    216
    - cloud_properties:
    217
    cpu: 4
    218
    disk: 20480
    219
    ram: 8192
    220
    name: large
    221
    - cloud_properties:
    222
    cpu: 8
    223
    disk: 20480
    224
    ram: 16384
    225
    name: xlarge
    226
    - cloud_properties:
    227
    cpu: 2
    228
    disk: 51200
    229
    ram: 4096
    230
    name: small-50GB
    231
    - cloud_properties:
    232
    cpu: 2
    233
    disk: 51200
    234
    ram: 4096
    235
    name: small-50GB-ephemeral-disk
    236
    - cloud_properties:
    237
    cpu: 4
    238
    disk: 102400
    239
    ram: 8192
    240
    name: small-100GB-ephemeral-disk
    241
    - cloud_properties:
    242
    cpu: 4
    243
    disk: 102400
    244
    ram: 8192
    245
    name: small-highmem-100GB-ephemeral-disk
    246
    - cloud_properties:
    247
    cpu: 8
    248
    disk: 20480
    249
    ram: 16384
    250
    name: small-highmem-16GB
    251
    - cloud_properties:
    252
    cpu: 1
    253
    disk: 4096
    254
    ram: 2048
    255
    name: caas_small
    256
    - cloud_properties:
    257
    cpu: 1
    258
    disk: 4096
    259
    ram: 1024
    260
    name: caas_small_api
    261
    - cloud_properties:
    262
    cpu: 1
    263
    disk: 4096
    264
    ram: 4096
    265
    name: caas_medium
    266
    - cloud_properties:
    267
    cpu: 2
    268
    disk: 8192
    269
    ram: 4096
    270
    name: service_medium
    271
    - cloud_properties:
    272
    cpu: 2
    273
    disk: 10240
    274
    ram: 2048
    275
    name: service_medium_2G
    276
    277
    Succeeded
    Copied!
  • Deployment 파일을 서버 환경에 맞게 수정한다.
1
# paasta-web-ide-aws 설정 파일 내용
2
---
3
name: paasta-web-ide # 서비스 배포이름(필수)
4
5
stemcells:
6
- alias: ((stemcell_alias))
7
os: ((stemcell_os))
8
version: "((stemcell_version))"
9
10
releases:
11
- name: "((releases_name))" # 서비스 릴리즈 이름(필수) bosh releases로 확인 가능
12
version: latest # 서비스 릴리즈 버전(필수):latest 시 업로드된 서비스 릴리즈 최신버전
13
14
update:
15
canaries: 1 # canary 인스턴스 수(필수)
16
canary_watch_time: 5000-120000 # canary 인스턴스가 수행하기 위한 대기 시간(필수)
17
update_watch_time: 5000-120000 # non-canary 인스턴스가 수행하기 위한 대기 시간(필수)
18
max_in_flight: 1 # non-canary 인스턴스가 병렬로 update 하는 최대 개수(필수)
19
serial: false
20
21
22
instance_groups:
23
- name: eclipse-che #작업 이름(필수)
24
azs:
25
- z7
26
instances: "((eclipse_che_instances))"
27
vm_type: "((web_ide_vm_type))"
28
stemcell: "((stemcell_alias))"
29
networks:
30
- name: ((internal_networks_name))
31
- name: ((external_networks_name))
32
static_ips: ((eclipse_che_public_ip))
33
jobs:
34
- name: eclipse-che
35
release: "((releases_name))"
36
37
38
- name: mariadb
39
azs:
40
- z3
41
instances: 1
42
vm_type: small
43
stemcell: "((stemcell_alias))"
44
persistent_disk_type: "((mariadb_disk_type))"
45
networks:
46
- name: ((internal_networks_name))
47
jobs:
48
- name: mariadb
49
release: "((releases_name))"
50
syslog_aggregator: null
51
properties:
52
mariadb: # MARIA DB SERVER 설정 정보
53
port: ((mariadb_port)) # MARIA DB PORT 번호
54
admin_user:
55
password: '((mariadb_user_password))' # MARIA DB ROOT 계정 비밀번호
56
host_names:
57
- mariadb0
58
########## INFRA ##########
59
60
######## BROKER ########
61
62
- name: webide-broker
63
azs:
64
- z3
65
instances: 1
66
vm_type: medium
67
stemcell: "((stemcell_alias))"
68
networks:
69
- name: ((internal_networks_name))
70
jobs:
71
- name: web-ide-broker
72
release: "((releases_name))"
73
syslog_aggregator: null
74
properties:
75
server:
76
port: ((server_port))
77
datasource:
78
password: "((mariadb_user_password))"
79
serviceDefinition:
80
id: ((serviceDefinition_id))
81
plan1:
82
id: ((serviceDefinition_plan1_id))
Copied!
  • deploy-web-ide-bosh2.0.sh 파일을 서버 환경에 맞게 수정한다.
1
#!/bin/bash
2
3
bosh -d paasta-web-ide deploy paasta_web_ide.yml \
4
-o use-public-network-aws.yml \
5
-v releases_name="paas-ta-webide-release" \
6
-v stemcell_os="ubuntu-xenial" \
7
-v stemcell_version="315.64" \
8
-v stemcell_alias="default" \
9
-v web_ide_vm_type="large" \
10
-v vm_type_tiny="minimal" \
11
-v vm_type_small="small" \
12
-v internal_networks_name=default \
13
-v external_networks_name=vip \
14
-v eclipse_che_instances=1 \
15
-v eclipse_che_public_ip=["xx.xxx.xx.xxx"] \
16
-v server_port="8080" \
17
-v serviceDefinition_id="af86588c-6212-11e7-907b-b6006ad3webide0" \
18
-v serviceDefinition_plan1_id="a5930564-6212-11e7-907b-b6006ad3webide1" \
19
-v mariadb_disk_type="10GB" \
20
-v mariadb_port="3306" \
21
-v mariadb_user_password="[email protected]" \
Copied!
  • WEB IDE 서비스팩을 배포한다.
  • 사용 예시
    1
    $ ./deploy-web-ide-bosh2.0.sh
    2
    Using environment '10.0.1.6' as client 'admin'
    3
    4
    Using deployment 'paasta-web-ide'
    5
    6
    + stemcells:
    7
    + - alias: default
    8
    + os: ubuntu-xenial
    9
    + version: '315.64'
    10
    11
    releases:
    12
    + - name: paas-ta-webide-release
    13
    + version: '1.0'
    14
    15
    + update:
    16
    + canaries: 1
    17
    + canary_watch_time: 5000-120000
    18
    + max_in_flight: 1
    19
    + serial: false
    20
    + update_watch_time: 5000-120000
    21
    22
    + instance_groups:
    23
    + - azs:
    24
    + - z7
    25
    + instances: 1
    26
    + jobs:
    27
    + - name: eclipse-che
    28
    + release: paas-ta-webide-release
    29
    + name: eclipse-che
    30
    + networks:
    31
    + - default:
    32
    + - dns
    33
    + - gateway
    34
    + name: default
    35
    + - name: vip
    36
    + static_ips:
    37
    + - 13.209.28.254
    38
    + stemcell: default
    39
    + vm_type: large
    40
    + - azs:
    41
    + - z3
    42
    + instances: 1
    43
    + jobs:
    44
    + - name: mariadb
    45
    + release: paas-ta-webide-release
    46
    + name: mariadb
    47
    + networks:
    48
    + - name: default
    49
    + persistent_disk_type: 10GB
    50
    + properties:
    51
    + mariadb:
    52
    + admin_user:
    53
    + password: "<redacted>"
    54
    + host_names:
    55
    + - "<redacted>"
    56
    + port: "<redacted>"
    57
    + stemcell: default
    58
    + syslog_aggregator:
    59
    + vm_type: small
    60
    + - azs:
    61
    + - z3
    62
    + instances: 1
    63
    + jobs:
    64
    + - name: web-ide-broker
    65
    + release: paas-ta-webide-release
    66
    + name: webide-broker
    67
    + networks:
    68
    + - name: default
    69
    + properties:
    70
    + datasource:
    71
    + password: "<redacted>"
    72
    + server:
    73
    + port: "<redacted>"
    74
    + serviceDefinition:
    75
    + id: "<redacted>"
    76
    + plan1:
    77
    + id: "<redacted>"
    78
    + stemcell: default
    79
    + syslog_aggregator:
    80
    + vm_type: medium
    81
    82
    + name: paasta-web-ide
    83
    Continue? [yN]: y
    84
    85
    Task 7867
    86
    87
    Task 7867 | 02:29:25 | Preparing deployment: Preparing deployment (00:00:02)
    88
    Task 7867 | 02:29:27 | Preparing package compilation: Finding packages to compile (00:00:00)
    89
    Task 7867 | 02:29:27 | Compiling packages: bosh-helpers/2b45cec940a80e582427f61c460269c6ccb031c8
    90
    Task 7867 | 02:29:27 | Compiling packages: docker/8da016ec9d1b172b779d5ff0a9fbbfc4973ea734
    91
    Task 7867 | 02:29:27 | Compiling packages: java/b74e140053eddb6a3a958568d66f801686d09e04
    92
    Task 7867 | 02:31:36 | Compiling packages: bosh-helpers/2b45cec940a80e582427f61c460269c6ccb031c8 (00:02:09)
    93
    Task 7867 | 02:31:38 | Compiling packages: docker/8da016ec9d1b172b779d5ff0a9fbbfc4973ea734 (00:02:11)
    94
    Task 7867 | 02:31:59 | Compiling packages: java/b74e140053eddb6a3a958568d66f801686d09e04 (00:02:32)
    95
    Task 7867 | 02:31:59 | Compiling packages: eclipse-che/eff6040fd5ed2a30190955140bb58f892ff830ec (00:00:55)
    96
    Task 7867 | 02:33:27 | Creating missing vms: eclipse-che/dfa63633-f846-48a4-9ea8-c23291fe0ea0 (0)
    97
    Task 7867 | 02:33:27 | Creating missing vms: mariadb/9a1e6f85-a8d5-41c0-96f7-56ddb8bce657 (0) (00:01:18)
    98
    Task 7867 | 02:34:46 | Creating missing vms: web-ide-broker/dfa63633-f846-48a4-9ea8-c23291fe0ea0 (0) (00:01:19)
    99
    Task 7867 | 02:34:47 | Updating instance eclipse-che: eclipse-che/dfa63633-f846-48a4-9ea8-c23291fe0ea0 (0) (canary) (00:01:29)
    100
    Task 7867 | 02:36:16 | Updating instance mariadb: mariadb/9a1e6f85-a8d5-41c0-96f7-56ddb8bce657 (0) (canary) (00:01:30)
    101
    Task 7867 | 02:36:16 | Updating instance web-ide-broker: web-ide-broker/2b779d5f-a8d5-9ea8-96f7-56ddb8bce657 (0) (canary) (00:01:30)
    102
    103
    Task 7867 Started Thu Sep 13 02:29:25 UTC 2018
    104
    Task 7867 Finished Thu Sep 13 02:37:46 UTC 2018
    105
    Task 7867 Duration 00:08:21
    106
    Task 7867 done
    107
    108
    Succeeded
    Copied!
  • 배포된 WEB-IDE 서비스팩을 확인한다.
  • 사용 예시
    1
    $bosh -e micro-bosh -d paasta-web-ide-service vms
    2
    Using environment '10.30.40.111' as user 'admin' (openid, bosh.admin)
    3
    4
    Task 7872. Done
    5
    6
    Deployment 'paasta-web-ide'
    7
    8
    Instance Process State AZ IPs VM CID VM Type Active
    9
    eclipse-che/ed136540-c650-47a2-918b-bb7f6020469d running z7 10.30.56.54 vm-5a3a2b10-d0c9-47c8-97f0-6ea64c339df8 large true
    10
    115.68.46.178
    11
    mariadb/ec34aa5b-c7cc-4297-9e2d-babf05d83832 running z3 10.30.56.55 vm-9e1631af-b6c8-481e-aad3-3fd713f106a9 small true
    12
    webide-broker/a641df99-d36a-49ee-8329-018fe10fa23d running z3 10.30.56.56 vm-eb784964-48cd-4e4c-b080-53675d3738c2 medium true
    13
    14
    3 vms
    15
    16
    Succeeded
    Copied!

3. WEB-IDE의 PaaS-TA 포털사이트 연동

3.1. WEB-IDE 서비스 브로커를 등록한다.

$ cf create-service-broker {서비스팩 이름} {서비스팩 사용자ID} {서비스팩 사용자비밀번호} http://{서비스팩 URL(IP)}
서비스팩 이름 : 서비스 팩 관리를 위해 PaaS-TA에서 보여지는 명칭이다. 서비스 Marketplace에서는 각각의 API 서비스 명이 보여지니 여기서 명칭은 서비스팩 리스트의 명칭이다. 서비스팩 사용자ID / 비밀번호 : 서비스팩에 접근할 수 있는 사용자 ID입니다. 서비스팩도 하나의 API 서버이기 때문에 아무나 접근을 허용할 수 없어 접근이 가능한 ID/비밀번호를 입력한다. 서비스팩 URL : 서비스팩이 제공하는 API를 사용할 수 있는 URL을 입력한다.
$ cf create-service-broker webide-service-broker admin cloudfoundry http://10.30.56.56:8080
1
$ cf create-service-broker webide-service-broker admin cloudfoundry http://10.30.56.56:8080
2
Creating service broker webide-service-broker as admin...
3
OK
Copied!

등록된 WEB-IDE 서비스 브로커를 확인한다.

$ cf service-brokers
``` $ cf service-brokers Getting service brokers as admin...
name url webide-service-broker http://10.30.56.56:8080
1
<br>
2
3
#### 접근 가능한 서비스 목록을 확인한다.
4
>`$ cf service-access`
Copied!
$ cf service-access Getting service access as admin... broker: webide-service-broker service plan access orgs webide webide-shared none
1
<br>
2
3
- 서비스 브로커 등록시 최초에는 접근을 허용하지 않는다. 따라서 access는 none으로 설정된다.
4
5
#### 특정 조직에 해당 서비스 접근 허용을 할당하고 접근 서비스 목록을 다시 확인한다. (전체 조직)
6
>`$ cf enable-service-access webide`<br>
7
>`$ cf service-access`
Copied!
$ cf enable-service-access webide Enabling access to all plans of service webide for all orgs as admin... OK
1
Copied!
$ cf service-access Getting service access as admin...
broker: webide-service-broker service plan access orgs webide webide-shared all
1
<br>
2
3
#### PaaS-TA Marketplace에서 서비스가 있는지 확인을 한다.
4
5
>`$ cf marketplace`
Copied!
$ cf marketplace Getting services from marketplace in org system / space dev as admin... OK
service plans description broker webide webide-shared A paasta web ide service for application development.provision parameters webide-service-broker
1
<br>
2
3
#### Marketplace에서 원하는 서비스가 있으면 서비스 신청(Provision)을 한다.
4
5
>`$ cf create-service {서비스명} {서비스 플랜} {내 서비스명}`
6
- **서비스명** : webide로 Marketplace에서 보여지는 서비스 명칭이다.
7
- **서비스플랜** : 서비스에 대한 정책으로 plans에 있는 정보 중 하나를 선택한다. webide 서비스는 standard plan만 지원한다.
8
- **내 서비스명** : 내 서비스에서 보여지는 명칭이다. 이 명칭을 기준으로 환경 설정 정보를 가져온다.
9
10
11
>`$ cf create-service webide webide-shared webide-service`
Copied!
$ cf create-service webide webide-shared paasta-webide-service Creating service instance paasta-webide-service in org system / space dev as admin... OK
1
<br>
2
3
#### 생성된 WEB-IDE 서비스 인스턴스를 확인한다.
4
5
>`$ cf services`
Copied!
$ cf services Getting services in org system / space dev as admin...
name service plan bound apps last operation broker upgrade available paasta-webide-service webide webide-shared create succeeded webide-service-broker
```

4. WEB-IDE 에서 CF CLI 사용법

4.1. WEB-IDE New Project 화면

  • 사용할 언어를 선택하고 Create workspace and project 로 새로운 프로젝트를 시작한다.
Could not load image
  • Workspace를 구성하기 위해 Docker 관련 자료를 다운로드한다.
Could not load image

4.2. WEB-IDE Workspace 화면

  • Open Project를 누르면 Workspace 화면이 열린다.
Could not load image
  • 실제로 소스를 개발해서 빌드하거나 GIT이나 SVN에서 IMPORT 한다.
Could not load image

4.3. WEB-IDE Teminal에서의 CF CLI 실행

-cf api 명령을 이용해 endpoint를 지정한다.

cf login 명령어로 로그인하고 조직과 공간을 선택한다.

cf push 를 이용해 cf에 앱을 업로드한다.

Last modified 1yr ago