travis.yml before_install 문의
미해결
따라하며 배우는 도커와 CI환경 [2023.11 업데이트]
9강 travis.yml 파일작성하기에서의 문의 입니다. before_install: 에서 image 빌드를 하는데, ./frontend/Dockerfile.dev를 참고하도록 되어 있습니다. script: 에서 docker를 run을 해주는데요, 이 이미지로 도커를 실행하여 npm run test를 합니다. after_success: 에서 다시 ./frontend Dockerfile 로 docker-frontend 이름으로 이미지를 다시 만드는데요, ./frontend 디렉토리 안에서 Dockerfile과 Dockerfile.dev를 구분해서 만들고, before_install:에서 만드는 이미지와 after_success:에서 만드는 도커 이미지를 다르게 이름을 가져가야할 필요가 있는 지, 있다면 그 이유를 알고 싶습니다. travis-ci에서 docker-front 이미지가 만들어지지 않아서 문의 드립니다. [front-end 이미지 생성안되는 로그] $ docker build --no-cache --pull -t travisci123/docker-frontend ./frontend unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/travis/build/travisci123/docker-multi-app-101/frontend/Dockerfile: no such file or directory [befor_install: 부터 script:까지 로그] 0.00s$ echo "start creating an image with dockerfile" before_install.2 70.74s$ docker build -t travisci123/react-multi-app-101 -f ./frontend/Dockerfile.dev ./frontend before_install.3 0.00s$ echo "start creating an image with dockerfile" before_install.4 67.20s$ docker build --no-cache --pull -t travisci123/react-multi-app-101 -f ./frontend/Dockerfile.dev ./frontend 3.42s$ docker run -e CI=true travisci123/react-multi-app-101 npm run test > frontend@0.1.0 test > react-scripts test PASS src/App.test.js ✓ renders learn react link (2 ms) Test Suites: 1 passed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: 1.61 s Ran all test suites. The command "docker run -e CI=true travisci123/react-multi-app-101 npm run test" exited with 0. 3.42s$ docker run -e CI=true travisci123/react-multi-app-101 npm run test > frontend@0.1.0 test > react-scripts test PASS src/App.test.js ✓ renders learn react link (1 ms) $ docker build --no-cache --pull -t travisci123/docker-frontend ./frontend unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/travis/build/travisci123/docker-multi-app-101/frontend/Dockerfile: no such file or directory
- travis.yml
- travis
- aws
- docker
- github
- cicd
- 데이터 엔지니어링
- travis-ci





