1. Sencha Architecture 단축키

 > 참조 http://docs.sencha.com/architect/4.2/guides/reference/keyboard_shortcuts.html

Keyboard shortcuts

Menu Bar keyboard shortcuts are displayed in the drop-down menus. Additionally, the Code Editor panel has a set of keyboard shortcuts defined to use only when editing code in that panel. These have a separate help window available from within the Code Editor. This document summarizes all of these keyboard shortcuts.

Mac OS Keyboard Conventions

The notation conventions used on Mac OS menus (and in this document) are:

IconDescription
Command or Apple logo button
^Ctrl key
Alt or Option key
Shift key
Caps Lock

Windows and Linux Notation

For Windows and Linux systems, the menus and this document use the convention of spelling out the name of the keys to be pressed, with a plus sign ("+") separating the key names. This indicates that all keys should be pressed at the same time.

Letters are given in their uppercase form but should be typed as lowercase letters.

For example, the keyboard shortcut to save a project on Windows and Linux systems is given as: Shift+Ctrl+S.

This means to hold down the Shift and Ctrl keys while typing a lowercase "S".

General

DescriptionMac OS ShortcutWindows/Linux Shortcut
Open existing project archive file (.xds file)++OCtrl+Shift+O
Start new project using current frameworkNCtrl+N
Save projectSCtrl+S
Save project asSShift+Ctrl+S
Publish projectF5F5
Preview ProjectF6F6
Architect Preferences and Project Settings,---
Hide Sencha ArchitectH---
Hide OthersH---
Toggle full screenF11F11
Quit Sencha ArchitectQAlt+F4

View

DescriptionMac OS ShortcutWindows/Linux Shortcut
Switch to Design ViewDShift+Ctrl+D
Switch to Code ViewCShift+Ctrl+C
Toggle betweeen Design View and Code View^EShift+Ctrl+E
Navigate Forward in Project Inspector
Navigate Backward in Project Inspector
Jump to Filter Config PanelECtrl+E
Jump to Filter Project InspectorKCtrl+K
Jump to Filter ToolboxBCtrl+B
Jump to Project Inspector NavigatorOCtrl+O
List Tabs open CanvasLCtrl+L
Close Active TabWCtrl+W

Edit

DescriptionMac OS ShortcutWindows/Linux Shortcut
UndoZCtrl+Z
RedoZShift+Ctrl+Z
FindFCtrl+F
Find NextGCtrl+G
Find PreviousGCtrl+Shift+G
Replace editable textFCtrl+H
Quick Add (New in 3.0)TCtrl+T
Quick Add (Top) (New in 3.0)TShift+Ctrl+T
Delete selected componentCtrl++Delete+Shift+Del
Architect Settings,---
Project SettingsPCtrl+P

Code Editor Shortcuts

Architect adds a number of keyboard shortcuts to make it easier to edit code in the Code Editor. These shortcuts are displayed online in a pop-up window when you click the keyboard icon in the top right of the main canvas (when in "code" mode).

DescriptionMac OS ShortcutWindows/Linux Shortcut
Auto indent+TabShift+Tab
Comment/uncomment current line (toggle)+/Ctrl+/
Delete current line+DCtrl+D
Delete next characterDelete, ^+DDelete
Delete previous characterBackspace, ^+HBackspace
Delete to end of character group^++Backspace
Delete to end of line^+KN/A
Delete to end of next word line+DN/A
Delete to start of character group+BackspaceCtrl+Backspace
Find+FCtrl+F
Find next+GCtrl+G
Find previous++GShift+Ctrl+G
Go downDown, ^+NDown
Go leftLeft, ^+BLeft
Go rightRight, ^+FRight
Go to end of character group+RightCtrl+Right
Go to end of code+End, +DownCtrl+End, Ctrl+Down
Go to end of the current line+RightAlt+Right
Go to first character of lineHomeHome
Go to next word+FN/A
Go to previous word+BN/A
Go start of character group+LeftCtrl+Left
Go to start of code+UpCtrl+Home, Ctrl+Up
Go to start of current line+Left, ^+AAlt+Left
Go up+UpUp
Indent less+[Ctrl+[
Indent more+]Ctrl+]
Insert newline and auto indentEnterEnter
Page downPageDown, ^+VPageDown
Page upPageDown, +^+VPageUp
Redo++Z, +YShift+Ctrl+Z, Ctrl+Y
Replace++FCtrl+H
Select All+ACtrl+A
Show completion suggestions for object at cursor.^+SpaceCtrl+Space
Show type of object at cursor+ICtrl+I
Toggle overwrite/insertInsertInsert
Transpose adjacent characters^+TN/A
Undo+ZCtrl+Z

Other Useful Quick References



'Tools > Sencha' 카테고리의 다른 글

sencha cmd project 생성 및 빌드  (0) 2018.04.20
sencha 4.2.3 설치  (2) 2018.04.18


사전 준비 사항

* SenchaCmd-6.5.3.6-windows-64bit

* ext-6.5.3-trial.zip


1. sencha cmd를 통해 프로젝트 생성 명령을 실행합니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
> sencha -sdk C:\ext-6.5.3-trial\ext-6.5.3 generate app pdm_ui C:\Users\Admin\
Documents\Sencha\test
Sencha Cmd v6.5.3.6
[INF] Copying framework to C:\Users\Admin\Documents\Sencha\test\ext
[INF] Processing Build Descriptor : classic (development environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\bootstrap.js
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\classic.json
[INF] merging 243 input resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\classic\resources
[INF] merged 243 resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\classic\resources
[INF] merging 22 input resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui
[INF] merged 22 resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\config.rb
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\classic.json
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build completed in 2.29 sec.
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\bootstrap.js
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\classic.json
[INF]
[INF] ======================================================================
[INF]
[INF] Processing Build Descriptor : modern (development environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\bootstrap.js
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\modern.json
[INF] merging 381 input resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\modern\resources
[INF] merged 381 resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\modern\resources
[INF] merging 12 input resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui
[INF] merged 1 resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\modern.json
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build completed in 2.035 sec.
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\bootstrap.js
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\modern.json
 
cs



2. 생성된 프로젝트 경로의 app.js 파일이 위치한 곳에서 다음과 같이 빌드 명령을 실행합니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
> sencha app build production
Sencha Cmd v6.5.3.6
[INF] Processing Build Descriptor : classic (production environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with CmdJavascriptCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic\app.js
[INF] merging 243 input resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic\resources
[INF] merged 243 resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic\resources
[INF] merging 22 input resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] merged 22 resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\pdm_ui-example.scss.tmp
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\config.rb
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\pdm_ui-example.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\pdm_ui-example.scss
[LOG] Fashion build completed in 2.086 sec.
[INF] Capturing theme image
[INF] Capture complete
[INF] Slicing images...
[INF] Slicing complete - generated 202 images
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\config.rb
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic.json
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build completed in 1.957 sec.
[INF] Copying page resources to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] Applying version stamps to json resource entries
[INF] Generating file deltas to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic\deltas
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\microloader.js
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\microloader.js
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Building output markup to C:\Users\Admin\Documents\Sencha\test/build/production/pdm_ui/index.html
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\index.html
[INF] generating cache manifest to C:\Users\Admin\Documents\Sencha\test/build/production/pdm_ui/cache.appcache
[INF]
[INF] ======================================================================
[INF]
[INF] Processing Build Descriptor : modern (production environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with CmdJavascriptCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern\app.js
[INF] merging 381 input resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern\resources
[INF] merged 381 resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern\resources
[INF] merging 12 input resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] merged 1 resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern.json
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build completed in 1.7 sec.
[WRN] C1005: Closure Compiler Warning (Unnecessary escape: '\s' is equivalent to just 's') -- unknown-uri:4789:102
[INF] Copying page resources to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] Applying version stamps to json resource entries
[INF] Generating file deltas to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern\deltas
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\microloader.js
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\microloader.js
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Building output markup to C:\Users\Admin\Documents\Sencha\test/build/production/pdm_ui/index.html
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\index.html
[INF] generating cache manifest to C:\Users\Admin\Documents\Sencha\test/build/production/pdm_ui/cache.appcache
 
cs



'Tools > Sencha' 카테고리의 다른 글

Sencha Architecture 단축키  (0) 2018.05.03
sencha 4.2.3 설치  (2) 2018.04.18


1. 해당 파일을 실행



2.



3.



4.



5.



6.



7.



8.



9.



10.



11.



12.



13.



14.



15.



16.



'Tools > Sencha' 카테고리의 다른 글

Sencha Architecture 단축키  (0) 2018.05.03
sencha cmd project 생성 및 빌드  (0) 2018.04.20


1. Winlogbeat를 내려받습니다.



2. 내려받은 압축 파일을 해제합니다.



3. winlogbeat.yml 파일을 적절히 편집합니다.



4. powershell을 실행합니다.



5. winlogbeat 폴더가 위치한 곳으로 이동합니다.

1
2
PS C:\> cd C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64\
 
cs



6. install-service-winlogbeat.ps1 파일을 실행합니다.

1
2
3
4
5
6
PS C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64> .\install-service-winlogbeat.ps1
 
Status   Name               DisplayName
------   ----               -----------
Stopped  winlogbeat         winlogbeat
 
cs



7. winlogbeat 서비스를 테스트합니다.

 : Start-Service winlogbeat

1
2
3
4
5
6
7
8
9
10
11
PS C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64> .\winlogbeat.exe test config -c .\winlogbeat.y
ml -e
2018/03/16 06:55:58.025085 beat.go:436: INFO Home path: [C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64] Config path: [C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64] Data path: [C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64\data] Logs path: [C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64\logs]
2018/03/16 06:55:58.025085 metrics.go:23: INFO Metrics logging every 30s
2018/03/16 06:55:58.026092 beat.go:443: INFO Beat UUID: 5ef661c8-806f-465d-b3db-5f1d4def5309
2018/03/16 06:55:58.029186 beat.go:203: INFO Setup Beat: winlogbeat; Version: 6.1.1
2018/03/16 06:55:58.030192 client.go:123: INFO Elasticsearch url: http://localhost:9200
2018/03/16 06:55:58.030192 module.go:76: INFO Beat name: DESKTOP-AKG019N
2018/03/16 06:55:58.030192 winlogbeat.go:56: INFO State will be read from and persisted to C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64\data\.winlogbeat.yml
Config OK
 
cs



8. winlogbeat 서비스를 실행합니다.

 : Start-Service winlogbeat

1
2
PS C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64> Start-Service winlogbeat
 
cs



9. winlogbeat 서비스를 중지합니다.

 : Stop-Service winlogbeat

1
2
PS C:\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64> Stop-Service winlogbeat
 
cs



'Tools' 카테고리의 다른 글

GnuWin32 zip-3.0 설치  (2) 2018.10.21
Elasticsearch 6.2.2 for Windows 설치  (0) 2018.03.16


1. 해당 버전의 Elasticsearch를 내려받습니다.




2. 내려받은 압축 파일을 해제합니다.




3. bin 폴더의 elasticsearch 배치 파일을 실행합니다.




4. 실행 창에서 powershell을 실행합니다.



5. 다음 명령어를 실행합니다.

 : curl http://localhost:9200/

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PS C:\Users\Admin> curl http://localhost:9200/
 
 
StatusCode        : 200
StatusDescription : OK
Content           : {
                      "name" : "bz3ZZPU",
                      "cluster_name" : "elasticsearch",
                      "cluster_uuid" : "duvvHaBPQx-O5fYbvmZWlg",
                      "version" : {
                        "number" : "6.2.2",
                        "build_hash" : "10b1edd",
                        "build_date" : "2018-...
RawContent        : HTTP/1.1 200 OK
                    Content-Length: 435
                    Content-Type: application/json; charset=UTF-8
 
                    {
                      "name" : "bz3ZZPU",
                      "cluster_name" : "elasticsearch",
                      "cluster_uuid" : "duvvHaBPQx-O5fYbvmZWlg",
                      "versi...
Forms             : {}
Headers           : {[Content-Length, 435], [Content-Type, application/json; charset=UTF-8]
                    }
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : mshtml.HTMLDocumentClass
RawContentLength  : 435
 
cs



'Tools' 카테고리의 다른 글

GnuWin32 zip-3.0 설치  (2) 2018.10.21
Winlogbeat 6.1.1 for Windows 설치 및 구축  (0) 2018.03.16


아래와 같은 에러 발생 시


1
2
3
Description    Resource    Path    Location    Type
The container 'Maven Dependencies' references non existing library 'C:\Users\Admin\.m2\repository\javax\inject\javax.inject\1\javax.inject-1.jar'    WordCount        Build path    Build Path Problem
 
cs



관련 라이브러리가 존재하지 않기 때문에 발생하는 에러로 해당 프로젝트의 Update Project를 실행하여 해결합니다.

 : Alt + F5



* 업데이트를 진행한 후에도 동일한 증상 발생 시 해당 경로의 폴더를 삭제 후 재시도를 합니다.



'Tools > Maven' 카테고리의 다른 글

[에러] An error occurred while filtering resources  (0) 2017.10.30


1. 아래와 같이 tomcat 8에 대한 image 를 내려받습니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ docker pull tomcat:8
8: Pulling from library/tomcat
3e12a4ecg13c: Pull complete
75d44b20a841: Pull complete
a136217a1fa4: Pull complete
8bceb9f57693: Pull complete
268410abd9cf: Pull complete
c4e2fb2d87cf: Pull complete
09123f714a7b: Pull complete
c21de950ce52: Pull complete
9f1d6027a2e7: Pull complete
b712e8d9a90e: Pull complete
8c4ab15d0add: Pull complete
5953d45ec94f: Pull complete
0ba82678ed3b: Pull complete
Digest: sha256:0f12321fd37dcbe2db5f26d16861240c283c774089dd45c9d6008cacb8e8539a
Status: Downloaded newer image for tomcat:8
 
cs



2. docker image 정보를 확인합니다.

1
2
3
4
5
$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
mysql               5.7                 5fac15ab2c34        2 days ago          408MB
tomcat              8                   1269f3761db4        3 weeks ago         560MB
 
cs



3. 아래와 같이 tomcat 을 실행합니다.

1
2
3
$ docker run -d -i -t --name="tomcat8-board" -p 8081:8080 tomcat:8
4cadb567d312a42ba96e04500da758be1231a12359ec67d85082e72b051ea04f
 
cs

* -d: 데몬으로 실행합니다.
* -p 8081:8080: 이미지를 8080으로 실행하지만, 호스트에서 접근 시에 8081로 접근한다는 의미입니다.

* -i: 표준 입력을 활성화하여 컨테이너와 연결되어 있지 않더라도 표준 입력을 유지합니다.



4. docker 프로세스 확인

1
2
3
4
5
$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
4cadb567d312        tomcat:8            "catalina.sh run"        11 minutes ago      Up 11 minutes       0.0.0.0:8081->8080/tcp   tomcat8-board
71a53c718465        mysql:5.7           "docker-entrypoint..."   About an hour ago   Up About an hour    0.0.0.0:3316->3306/tcp   mysql
 
cs

* 위의 정보로 미루어 보아 tomcat:8 은 11분 전에 올라온 것을 확인할 수 있습니다.



5. tomcat container 에 적재할 간단한 war 파일을 준비합니다.

1
2
3
$ ll |grep board
-rw------- 1 user user  22929236 Nov  7 15:02 board.war
 
cs



6. 홈 디렉터리 이하에 board.war 파일을 docker tomcat container 에 복사를 합니다.

1
2
$ docker cp ~/board.war tomcat8-board:/usr/local/tomcat/webapps/
 
cs

* ~/board.war : 로컬 호스트에 홈 디렉터리 이하 board.war 파일입니다.

* tomcat8-board : tomcat:8 컨테이너의 이름입니다.

* /usr/local/tmcat/webapps/ : tomcat8 컨테이너의 웹 애플리케이션이 적재될 경로입니다.



7. tomcat container 셸에 연결을 합니다.

1
2
$ docker exec -it 4ca /bin/bash
 
cs

* 4ca 는 4번의 프로세스 확인에서 "CONTAINER ID"에 해당합니다.

* -it 옵션은 표준 입력을 활성화 및 유지하며 셸을 사용한다는 의미입니다.



8. tomcat container 내부에 복사 여부 확인

1
2
3
# dir /usr/local/tomcat/webapps/
ROOT  board  board.war  docs  examples  host-manager  manager
 
cs



9. tomcat container 의 Web UI



10. 웹 브라우저를 통해 접속을 합니다.

* ex) 192.168.10.10:8081/board/board/



'Tools > Docker' 카테고리의 다른 글

docker mysql 설치  (0) 2017.11.07
docker container 재생 및 실행  (0) 2017.11.02
docker 실행 및 옵션  (0) 2017.11.02
docker 접속  (0) 2017.11.02
Docker Toolbox 설치  (0) 2017.10.31


1. 아래와 같이 docker container 에서 mysql 을 실행하기 위한 명령어를 입력합니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ docker run -d -p 3316:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=true --name mysql mysql:5.7
Unable to find image 'mysql:5.7' locally
5.7: Pulling from library/mysql
85b1f47fba49: Pull complete
5671503d4f93: Pull complete
3b43b3b913cb: Pull complete
4fbb803665d0: Pull complete
05808866e6f9: Pull complete
1d8c65d48cfa: Pull complete
e189e187b2b5: Pull complete
02d3e6011ee8: Pull complete
d43b32d5ce04: Pull complete
2a809168ab45: Pull complete
Digest: sha256:eb9a3bca021ee178b5a69a2443462d156ff5b3d3f739c516b62d9d902ba49132
Status: Downloaded newer image for mysql:5.7
ae42dd88532a5c7a9fa235171c73ec2e1a95212db986fbd2fb22847716584035
 
cs

* MYSQL_ALLOW_EMPTY_PASSWORD 설정값은 비밀번호 없이 root 계정을 만들기 위해 사용합니다.

* local host 의 포트 3316과 docker container 의 포트 3306이 mapping 되어 있음을 확인할 수 있습니다.



2. 위의 설정을 토대로 docker mysql container 에 접속을 시도해보겠습니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ mysql -u root -p --port 3316 --host 192.168.11.31
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.7.20 MySQL Community Server (GPL)
 
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
 
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql>
 
cs

* -u root : 접속하기 위한 계정을 입력합니다. 여기서 접속하기 위한 계정은 root 가 됩니다.

* --port 3316 : 포트를 입력합니다. local host 의 포트를 3316으로 설정했기 때문에 3316으로 접근합니다.

* --host 192.168.11.31 : host ip address 를 입력합니다.



3. 설치 및 접속 후 확인

1
2
3
4
5
6
7
8
9
10
11
mysql> show databases;
+--------------------+
 Database           |
+--------------------+
 information_schema |
 mysql              |
 performance_schema |
 sys                |
+--------------------+
5 rows in set (0.00 sec)
 
cs



'Tools > Docker' 카테고리의 다른 글

docker tomcat 8.5 설치 및 war 적재 후 실행  (0) 2017.11.07
docker container 재생 및 실행  (0) 2017.11.02
docker 실행 및 옵션  (0) 2017.11.02
docker 접속  (0) 2017.11.02
Docker Toolbox 설치  (0) 2017.10.31


1. 재생 및 실행할 컨테이너 목록을 확인합니다.

1
2
3
4
5
6
7
$ docker ps -a
CONTAINER ID        IMAGE                           COMMAND             CREATED             STATUS                           PORTS                                                    NAMES
6cbd98f64315        tomcat:8.5                      "catalina.sh run"   About an hour ago   Up About an hour                 0.0.0.0:8081->8080/tcp                                   tomcat8-board
9c45541de0f7        centos:latest                   "/bin/bash"         2 hours ago         Exited (127) About an hour ago                                                            test
f5ee9e7b31a4        teamlab/pydata-tensorflow:0.1   "/opt/start"        3 days ago          Created                                                                                   quirky_jones
23b119d646f9        teamlab/pydata-tensorflow:0.1   "/opt/start"        3 days ago          Up 15 minutes                    0.0.0.0:6006->6006/tcp, 22/tcp, 0.0.0.0:8888->8888/tcp   fervent_fermi
 
cs

* centos 컨테이너가 약 1시간 전에 종료된 상태이므로 centos 컨테이너로 진행을 해보겠습니다.



2. teamlab/pydata-tensorflow 재시작을 합니다.

1
2
3
$ docker restart 9c4
9c4
 
cs


3. 해당 컨테이너의 상태를 확인합니다.

1
2
3
$ docker ps -a |grep centos
9c45541de0f7        centos:latest                   "/bin/bash"         2 hours ago         Up 43 seconds                                                                test
 
cs

* 실행 전 Exited 상태에서 약 43초 정도에 Up 으로 변경되었음을 확인할 수 있습니다.

* 셸이 실행된 것은 아니므로 다음 단계에서 진행해보겠습니다.



4. 컨테이너로 안으로 접근하기 위해 attach 명령어를 사용합니다.

1
2
3
$ docker attach 9c4
[root@9c45541de0f7 /]#
 
cs



5. centos 컨테이너에서 빠져나옵니다.

1
2
3
# exit
exit
 
cs

* exit 명령어를 사용하거나 "Ctrl + D" 를 통해서도 빠져나올 수 있습니다.



'Tools > Docker' 카테고리의 다른 글

docker tomcat 8.5 설치 및 war 적재 후 실행  (0) 2017.11.07
docker mysql 설치  (0) 2017.11.07
docker 실행 및 옵션  (0) 2017.11.02
docker 접속  (0) 2017.11.02
Docker Toolbox 설치  (0) 2017.10.31


1. docker 이미지를 확인합니다.

1
2
3
4
5
6
7
8
9
10
11
12
$ docker images
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
base_image                  1.0                 f592a52fa392        About an hour ago   722MB
mysql                       5.7                 5fac85ee2c68        2 weeks ago         408MB
ubuntu                      latest              747cb2d60bbe        3 weeks ago         122MB
tomcat                      8                   1269f3761db5        3 weeks ago         560MB
tomcat                      8.5                 1269f3761db5        3 weeks ago         560MB
redis                       latest              1fb7b6c8c0d0        3 weeks ago         107MB
centos                      latest              196e0ce0c9fb        6 weeks ago         197MB
hello-world                 latest              05a3bd381fc2        7 weeks ago         1.84kB
teamlab/pydata-tensorflow   0.1                 7bdf5d7e0191        15 months ago       3.08GB
 
cs

* 위의 목록 중에 ubuntu 이미지를 실행시켜보도록 하겠습니다.


2. run 명령어를 통해 실행을 시키고 그와 동시에 셸로 접속을 합니다.

1
2
3
$ docker run --rm -it ubuntu:latest /bin/bash
root@d21771728837:/#
 
cs

* 각 이미지별로 실행 옵션은 상이할 수 있습니다.

* docker 관련 옵션은 docker --help 명령어를 통해 볼 수 있으며 아래와 같습니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
$ docker --help
 
Usage:  docker COMMAND
 
A self-sufficient runtime for containers
 
Options:
      --config string      Location of client config files (default "/home/user/.docker")
  -D, --debug              Enable debug mode
      --help               Print usage
  -H, --host list          Daemon socket(s) to connect to
  -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default "/home/user/.docker/ca.pem")
      --tlscert string     Path to TLS certificate file (default "/home/user/.docker/cert.pem")
      --tlskey string      Path to TLS key file (default "/home/user/.docker/key.pem")
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit
 
Management Commands:
  config      Manage Docker configs
  container   Manage containers
  image       Manage images
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images (experimental)
  volume      Manage volumes
 
Commands:
  attach      Attach local standard input, output, and error streams to a running container
  build       Build an image from a Dockerfile
  commit      Create a new image from a container's changes
  cp          Copy files/folders between a container and the local filesystem
  create      Create a new container
  diff        Inspect changes to files or directories on a container's filesystem
  events      Get real time events from the server
  exec        Run a command in a running container
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  images      List images
  import      Import the contents from a tarball to create a filesystem image
  info        Display system-wide information
  inspect     Return low-level information on Docker objects
  kill        Kill one or more running containers
  load        Load an image from a tar archive or STDIN
  login       Log in to a Docker registry
  logout      Log out from a Docker registry
  logs        Fetch the logs of a container
  pause       Pause all processes within one or more containers
  port        List port mappings or a specific mapping for the container
  ps          List containers
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  run         Run a command in a new container
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  search      Search the Docker Hub for images
  start       Start one or more stopped containers
  stats       Display a live stream of container(s) resource usage statistics
  stop        Stop one or more running containers
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  top         Display the running processes of a container
  unpause     Unpause all processes within one or more containers
  update      Update configuration of one or more containers
  version     Show the Docker version information
  wait        Block until one or more containers stop, then print their exit codes
 
Run 'docker COMMAND --help' for more information on a command.
 
cs



'Tools > Docker' 카테고리의 다른 글

docker mysql 설치  (0) 2017.11.07
docker container 재생 및 실행  (0) 2017.11.02
docker 접속  (0) 2017.11.02
Docker Toolbox 설치  (0) 2017.10.31
docker log 확인  (0) 2017.10.30

+ Recent posts