首页 > 其他 > 详细

[AWS] Lab: Docker with CodeCommit & CodeBuild Part2

时间:2021-04-07 09:09:10      阅读:22      评论:0      收藏:0      [点我收藏+]

Continue with Part 1

Overview 

Instead of manully build Docker image, this time, we use CodeBuild to build the Docker image for us.

技术分享图片

Update buildspec.yml

  • We need to update `buildspec.yml` with the `View Push Commands` information. Then push the updates to CodeCommit.

CodeBuild

  • Create a project

技术分享图片

技术分享图片

技术分享图片

技术分享图片

技术分享图片

 

  • Start Build

If running into problem with runtime: YAML_FILE_ERROR Message: Unknown runtime named ‘docker‘.

You can update buildspec.yml, remove the following code, from V5, default is docker, no need to set config for that.

runtime-versions:
  docker: latest

 

If the problem is permission we need to attach permission to the role it created for us:

技术分享图片

技术分享图片

 

Finally you should see ECS repo that new images appear:

技术分享图片

 


 

 

Tips:

技术分享图片

技术分享图片

[AWS] Lab: Docker with CodeCommit & CodeBuild Part2

原文:https://www.cnblogs.com/Answer1215/p/14626003.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!