티스토리 뷰
cloud run의 가격 정책은 다음과 같다.

https://cloud.google.com/run/pricing?hl=ko
가격 책정 | Cloud Run | Google Cloud
Cloud Run 가격 책정 검토
cloud.google.com
요청 200만 개/월 까지는 무료로 책정이 된다. 간단한 토이/사이드 프로젝트면 해당 서비스를 충분히 무료로 이용 가능해 보인다.
다음 부터는 cloudRun 서비스 배포 방법이다.
# Use an official Node.js runtime as the base image
FROM node:18.14.2
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install project dependencies
RUN npm install
# Copy the rest of the project files to the working directory
COPY . .
# Expose a port (if your Node.js server listens on a specific port)
EXPOSE 3000
# Specify the command to run your server
CMD ["npm", "run", "start"]
DockerFile을 만들어 node.js를 도커라이징 한다.
그후 google container에 docker를 pull 해야 한다.
docker push asia-northeast3-docker.pkg.dev/내 프로젝트/저장소/이미지:tag
해당 이미지는 google console 배포하거나 명령어를 사용해도 된다.
명령어
https://cloud.google.com/sdk/gcloud/reference/run/deploy
gcloud run deploy | Google Cloud CLI Documentation
cloud.google.com
콘솔

서비스 만들기

저장소에서 이미지 선택

서비스 이름 및 지역 설정

이후 만들기 버튼을 클릭하면 서비스가 생성된다.
github ci/cd 나 클라우드런의 '지속적 배포' 기능을 사용하면 훨씬 수월하게 배포가 가능할 것이다.
(다음 게시글)
4 편 https://ljy1011.tistory.com/115
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- [leetcode] 394. decode string
- react 3d text
- ts glsl
- react three fiber
- eslint
- react fiber 3d
- vue react
- leva
- [leetcode] 394. decode string js
- react leva
- vue3
- 394. decode string javascript
- react three fiber leva
- attempted import error: bvh_struct_definitions' is not exported from './gpu/bvhshaderglsl.js' (imported as 'bvhshaderglsl').
- Vue.js
- react vue
- react ref reative
- vue ref
- react 3d 에니메이션
- vue
- webpack glsl
- 394 decode string
- three.js leva
- vue reactive
- typescript gsls
- react 3d
- next.js import glsl
- 394. decode string js
- react glsl
- react 3d animation
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함