Open texanraj opened 4 years ago
It seems like the build container does not find Dockerfile from the committed source. Could you show me what is in your Codecommit repository?
I'm facing the same issue , build is failing as it is not able to find the path. is there any update to this issue ? Anyway we can update the path to look for the Dockerfile in correct path ?
The Git push mentioned in step 2 under 'Test your pipeline' [1] mention about application project directory and not the skeleton directory. If you push the application repo [1] content into your codecommit repo, that will help to run pipeline without any errors.
[1] https://cdk-eks-devops.workshop.aws/en/60-deploy-app/200-single-region.html [2] https://github.com/yjw113080/aws-cdk-multi-region-sample-app
I'm getting the following error on the CodeBuild step - build-to-ecr
>>>> ignore line numbers Login Succeeded 72 | 73 | [Container] 2020/06/22 23:09:00 Running command IMAGE_TAG=$CODEBUILD_RESOLVED_SOURCE_VERSION 74 | 75 | [Container] 2020/06/22 23:09:00 Phase complete: PRE_BUILD State: SUCCEEDED 76 | [Container] 2020/06/22 23:09:00 Phase context status code: Message: 77 | [Container] 2020/06/22 23:09:00 Entering phase BUILD 78 | [Container] 2020/06/22 23:09:00 Running command docker build -t $ECR_REPO_URI:latest . 79 | unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /codebuild/output/src800944028/src/Dockerfile: no such file or directory 80 | 81 | [Container] 2020/06/22 23:09:00 Command did not exit successfully docker build -t $ECR_REPO_URI:latest . exit status 1 82 | [Container] 2020/06/22 23:09:00 Phase complete: BUILD State: FAILED 83 | [Container] 2020/06/22 23:09:00 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: docker build -t $ECR_REPO_URI:latest .. Reason: exit status 1 84 | [Container] 2020/06/22 23:09:00 Entering phase POST_BUILD 85 | [Container] 2020/06/22 23:09:00 Running command docker push $ECR_REPO_URI:latest 86 | The push refers to repository [121859864674.dkr.ecr.us-east-2.amazonaws.com/cicds-ecrfo-6fmyxd0pr5dm] 87 | An image does not exist locally with the tag: 121859864674.dkr.ecr.us-east-2.amazonaws.com/cicds-ecrfo-6fmyxd0pr5dm 88 | 89 | [Container] 2020/06/22 23:09:00 Command did not exit successfully docker push $ECR_REPO_URI:latest exit status 1 90 | [Container] 2020/06/22 23:09:00 Phase complete: POST_BUILD State: FAILED 91 | [Container] 2020/06/22 23:09:00 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: docker push $ECR_REPO_URI:latest. Reason: exit status 1 92