인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

rhkdtjd124829's profile image
rhkdtjd124829

asked

Learn Docker and CI environment by following [2023.11 update]

Generating API key for AWS access for Travis CI

앗.. 에러가 나네요 ㅠㅠ

Written on

·

345

·

Edited

1

원인이 무엇인지 모르겠네요 ㅠㅠ

버전인 이걸로 만들었습니다...

cicd데이터 엔지니어링travis-ciawsgithubdocker

Answer 2

1

rhkdtjd124829님의 프로필 이미지
rhkdtjd124829
Questioner

월드컵전 5시간 삽질 후 자문 자답....

에러 검색을 최근 이벤트쪽에서 찾으면 아무것도 나오지 않는다. 오류 로그 보는 방법 로그 -> 로그요청 -> 마지막 100줄 후 다운로드하면 에러들이 줄줄이 나오는데 나같은 경우엔

2022/12/02 12:24:06.826917 [ERROR] An error occurred during execution of command [app-deploy] - [Docker Specific Build Application]. Stop running the command. Error: Command /bin/sh -c docker-compose config failed with error exit status 1. Stderr:The Compose file './docker-compose.yml' is invalid because:
services.frontend.build contains unsupported option: 'image'

이러한 오류가 눈에 들어왔고, docker-compose.yml파일에서 문제가 생긴걸로 파악이 되었습니다. 그래서 에러 코드를 구글에 검색 해보니 build: 와 image는 같은 선상이라는 내용이 나왔다.

나의 docker-compose.yml 파일은 강사님의 코드를 보고 따라 치다보니 오타가 발생 하였다.

services: 
  frontend:      
    build:        
      image: 내이름/docker-frontend       
      context: ./frontend
    volumes:
      - /app/node_modules
      - ./frontend: /app
....

다음과 같이 수정하니 배포가 너무 잘된다... 감격 ㅠㅠ

services:
  frontend:
    image: 내이름/node-frontend
    volumes:
      - /app/node_modules
      - ./frontend: /app
...

나의 삽질 5시간... 헛되지 않았기를

0

johnahn님의 프로필 이미지
johnahn
Instructor

자세한 설명과 공유 감사합니다 !!!

 

rhkdtjd124829's profile image
rhkdtjd124829

asked

Ask a question