dashboard

Web-Terminal Developer Guide

개요

전체 주요 프로세스

termianl process

Linux unshare 명령을 활용

서버 개발

컨테이너 디버깅 환경 설정

using VSCode

  1. “VSCode → Main Menu → Run → Add Configuration → Docker:Debug in Container” 선택
  2. 아래와 같이 입력
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Launch remote",
      "type": "go",
      "request": "attach",
      "mode": "remote",
      "remotePath": "",
      "port": 5555,
      "host": "127.0.0.1",
      "showLog": true,
      "trace": "log"
    }
  ]
}

이미지 빌드 및 실행

using docker-compose

 $ docker-compose -f src/app/terminal/dc-debug.yaml up --build

디버깅 (활용 예시)

$ curl http://localhost:3003/healthy

클라이언트 개발

개발용 서버 컨테이너 실행

$ docker run --rm -d --privileged -p 3003:3003 --name terminal \
    -v "${HOME}/.kube:/app/.kube"\
    ghcr.io/kore3lab/kore-board.terminal:latest --kubeconfig=/app/.kube/config --corsonoff=off

클라이언트 활용 (예제 코드)

</html> ```