Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
  1. 사전 조건
    1. Azure VM & 환경설정 이 필요합니다SRRD Dev Env on Centos 환경설정을 검토 합니다.
  2. Git 프로젝트를 fork 합니다.
  3. Azure VM에 Centos에 git clone 합니다.
  4. mvnw 빌드 합니다.
  5. redis container를 실행합니다.
  6. Spring boot 어플리케이션을 실행 합니다.
  7. curl로 호출해 봅니다.


Code Block
titleworkspace-vm of Centos
[root@workspace-vm workspace]# git clone https://github.com/Sanses/sanse-reactive-link-shortener-sample-app.git
Cloning into 'sanse-reactive-link-shortener-sample-app'...
remote: Enumerating objects: 79, done.
remote: Counting objects: 100% (79/79), done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 79 (delta 17), reused 45 (delta 3), pack-reused 0
Unpacking objects: 100% (79/79), done.
[root@workspace-vm workspace]# 
[root@workspace-vm workspace]# 
[root@workspace-vm workspace]# ls
sanse-reactive-link-shortener-sample-app
[root@workspace-vm workspace]# cd sanse-reactive-link-shortener-sample-app/
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# 
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# 
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# ls -al
total 40
drwxr-xr-x. 6 root root  172 May  7 12:17 .
drwxr-xr-x. 3 root root   54 May  7 12:17 ..
drwxr-xr-x. 8 root root  163 May  7 12:17 .git
-rw-r--r--. 1 root root  268 May  7 12:17 .gitignore
-rw-r--r--. 1 root root   77 May  7 12:17 lombok.config
drwxr-xr-x. 3 root root   21 May  7 12:17 .mvn
-rwxr-xr-x. 1 root root 9113 May  7 12:17 mvnw
-rw-r--r--. 1 root root 5810 May  7 12:17 mvnw.cmd
-rw-r--r--. 1 root root 3116 May  7 12:17 pom.xml
-rw-r--r--. 1 root root  951 May  7 12:17 README.md
drwxr-xr-x. 4 root root   30 May  7 12:17 src
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# 
Code Block
## 프로젝트 빌드
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# ./mvnw clean package
[INFO] Scanning for projects...
~~~~~~~~~~~~~~~~~ 생략 ~~~~~~~~~~~~~~~~~~
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:23 min
[INFO] Finished at: 2019-05-07T12:24:56Z
[INFO] ------------------------------------------------------------------------
Code Block
titleworkspace-vm of Centos
## Redis Container 실행
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# docker run -d -p 6379:6379 --name redis redis
Unable to find image 'redis:latest' locally
latest: Pulling from library/redis
27833a3ba0a5: Pull complete 
cde8019a4b43: Pull complete 
97a473b37fb2: Pull complete 
c6fe0dfbb7e3: Pull complete 
39c8f5ba1240: Pull complete 
cfbdd870cf75: Pull complete 
Digest: sha256:000339fb57e0ddf2d48d72f3341e47a8ca3b1beae9bdcb25a96323095b72a79b
Status: Downloaded newer image for redis:latest
8ebd440fdd83ac7cc6c55cc278aedf690420bc63cf3bb5864db12ed78247e0e8
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# 
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS              PORTS                    NAMES
8ebd440fdd83        redis               "docker-entrypoint.s   About a minute ago   Up About a minute   0.0.0.0:6379->6379/tcp   redis
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# 

...