반응형 docker2 [Docker]비디오 스트리밍 마이크로서비스 비디오 스트리밍 코드: const express = require("express"); const fs = require("fs"); //내장된 fs 라이브러리를 사용해 Node.js에서 파일 시스템 API를 쓸 수 있다. const path = require("path"); const app = express(); const port = 3000; // // Registers a HTTP GET route for video streaming. // 비디오 스트리밍을 위한 REST API인 HTTP 경로를 정의한다. app.get("/video", (req, res) => { // 브라우저에 전송 할 스트리밍 비디오의 경로 const videoPath = path.join("./videos", "Samp.. Kubernetes 2023. 6. 6. [Docker] SpringBoot jar - 도커 이미지 생성 1. SpringBoot 간단한 코드 작성 package com.example.test; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @SpringBootApplication public class TestApplication { @RequestMapping("/") String home.. Kubernetes 2023. 6. 5. 이전 1 다음 반응형