카타코더 Weave - Visualise Containers Using Weave Scope

Jmnote (토론 | 기여)님의 2019년 3월 24일 (일) 21:43 판 (→‎Sample Application)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

카타코더 Weave - Visualise Containers Using Weave Scope
카타코더 Weave - Weave Scope
카타코더 Weave
# 🔗 제목
카타코더 Weave e
🡵 카타코더 Weave - Create Multi-Host Networks Using Weave Net
🡵 카타코더 Weave - Visualise Containers Using Weave Scope
🡵 카타코더 Weave - Installing Weave Scope on Kubernetes

2 Deploy Application[ | ]

$ docker run -d --name redis redis
4c854cf291ae19ce24b533253612783fc47fa5618dd2fd0c378d2cf270e418ee
$ docker run -d --link redis:redis katacoda/redis-node-docker-example
a720d65751827070670d128d9649407dd7c9d045d143f42ee5f1fa61397ad088

3 Launch Scope[ | ]

$ scope launch
Unable to find image 'weaveworks/scope:1.6.5' locally
1.6.5: Pulling from weaveworks/scope
019300c8a437: Pull complete
c43acb0378da: Pull complete
a80c942267bc: Pull complete
d2fce4cb1694: Pull complete
a6abab25d397: Pull complete
279c4121e3f4: Pull complete
9fa23034dd9f: Pull complete
597eea2280da: Pull complete
69f828530b80: Pull complete
e957c5137988: Pull complete
4bd72719a6d1: Pull complete
Digest: sha256:1725a1b4a2147609c56ae33d11d6b1cd72bb5326a1f9d2ce4d5c0b4c47dffd28
Status: Downloaded newer image for weaveworks/scope:1.6.5
7c54d78912d6bebcf79ccc81a08b4c68794b262b72c0473bc94e0b64073a726c
Scope probe started
The Scope App is not responding. Consult the container logs for furtherdetails.

4 Visualise using Scope[ | ]

  • 웹브라우저에서 Weave Scope UI 확인
$ docker run -d --link redis:redis katacoda/redis-node-docker-example
f966fd7b7d63e584e4fc277a3794a58b6999ae0721de7ad2b8ee4a19dfc9185d

5 Inspecting Containers[ | ]

  • 웹브라우저에서 Weave Scope UI 확인

6 Sample Application[ | ]

$ cat docker-compose-weavesock.yml
# minimal compose for a simulation of https://github.com/weaveworks/weaveDemo

version: '2'

services:
  front_end:
    image: rade/dummi
    container_name: front_end
    command: -l login catalogue orders
  edge_router:
    image: rade/dummi
    container_name: edge_router
    command: front_end
  catalogue:
    image: rade/dummi
    container_name: catalogue
    command: -l
  accounts:
    image: rade/dummi
    container_name: accounts
    command: -l accounts-db
  accounts-db:
    image: rade/dummi
    container_name: accounts-db
    command: -l
  cart:
    image: rade/dummi
    container_name: cart
    command: -l cart-db
  cart-db:
    image: rade/dummi
    container_name: cart-db
    command: -l
  orders:
    image: rade/dummi
    container_name: orders
    command: -l orders-db accounts cart payment shipping
  orders-db:
    image: rade/dummi
    container_name: orders-db
    command: -l
  shipping:
    image: rade/dummi
    container_name: shipping
    command: -l rabbitmq
  queue-master:
    image: rade/dummi
    container_name: queue-master
    command: -l rabbitmq
  queue-worker:
    image: rade/dummi
    container_name: queue-worker
    command: -l rabbitmq
  rabbitmq:
    image: rade/dummi
    container_name: rabbitmq
    command: -l
  payment:
    image: rade/dummi
    container_name: payment
    command: -l
  login:
    image: rade/dummi
    container_name: login
    command: -l
$ docker-compose -f docker-compose-weavesock.yml up -d
Creating network "tutorial_default" with the default driver
Pulling front_end (rade/dummi:)...
latest: Pulling from rade/dummi
e110a4a17941: Pull complete
e2b3efbf327e: Pull complete
Digest: sha256:945ae850e59ed5f40f05e566277fc6eaf113a6e2e8d596de691dbbfaaed8455d
Status: Downloaded newer image for rade/dummi:latest
Creating queue-master ... done
Creating cart         ... done
Creating orders       ... done
Creating edge_router  ... done
Creating accounts-db  ... done
Creating payment      ... done
Creating cart-db      ... done
Creating front_end    ... done
Creating rabbitmq     ...
Creating accounts     ... done
Creating queue-worker ... done
Creating rabbitmq     ... done
Creating orders-db    ...
Creating login        ... done
Creating shipping     ...
WARNING: Connection pool is full, discarding connection: docker
WARNING: Connection pool is full, discarding connection: docker
WARNING: Connection pool is full, discarding connection: docker
Creating catalogue    ... done
Creating shipping     ... done
  • 웹브라우저에서 Weave Scope UI 확인
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}