Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
## Docker 이미지로 어플리케이션 실행
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# docker run -d -p 808080:8080 --link redis sooabia/reactor-demo:1.0
4cef1da580aad24a586f307b31a54a202912617d09f7996777b7b2fc56dfe717
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# 

## 어플리케이션 호출
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# curl -XPOST http://localhost:8080/link -H "Content-Type: application/json" -d '{"link":"http://wiki.thesanseiisanse.com"}'
{"shortenedLink":"http://localhost:8080/link/gjCiOz"}
Code Block
## Docker container 정리
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# docker rm $(docker ps -a | awk '{print$1}') --force
4cef1da580aa
8ebd440fdd83
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES