[英]Build a Docker image on top of CodeBuild Docker Image
As AWS CodeBuild provides "Docker" curated images ( http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html ), I'd like to reuse one of those to build my custom CodeBuild Image ( http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker-custom-image.html ). 由于AWS CodeBuild提供了“Docker”策划图像( http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html ),我想重用其中一个来构建我的自定义CodeBuild Image( http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker-custom-image.html )。
I don't know the CodeBuild Registry Url. 我不知道CodeBuild注册表URL。 How to reference those images (FROM) ?
如何引用这些图像(FROM)?
I could rebuild myself the image I need ( https://github.com/aws/aws-codebuild-docker-images ) and host it in a private ECR but it's wasting time and storage. 我可以重建自己需要的图像( https://github.com/aws/aws-codebuild-docker-images )并将其托管在私有ECR中,但这会浪费时间和存储空间。
CodeBuild's internal Docker repository used for Curated Images is not publicly accessible. CodeBuild用于Curated Images的内部Docker存储库不可公开访问。 You should build your own base image from the official Dockerfiles .
您应该从官方Dockerfiles构建自己的基本映像。
The AWS CodeBuild provides also a console where you can use these images. AWS CodeBuild还提供了一个可以使用这些映像的控制台。 I think they use Amazon EC2 Repository to provide these internally, like the one you can use .
我认为他们使用Amazon EC2 Repository在内部提供这些,就像您可以使用的那样 。 but there isn't a public registry (or I already haven't found).
但是没有公共注册处(或者我还没有找到)。
You can find these images to create Docker machines using the build spec defined by Amazon 您可以使用Amazon定义的构建规范找到这些映像来创建Docker机器
http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html
I found this public image but is not official: 我发现这张公共图片但不是正式的:
https://hub.docker.com/r/sandorzelei/aws-codebuild/ https://hub.docker.com/r/sandorzelei/aws-codebuild/
So you can use it as follows: 所以你可以按如下方式使用它:
FROM sandorzelei/aws-codebuild
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.