简体   繁体   中英

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 ).

I don't know the CodeBuild Registry Url. How to reference those images (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.

CodeBuild's internal Docker repository used for Curated Images is not publicly accessible. You should build your own base image from the official Dockerfiles .

The AWS CodeBuild provides also a console where you can use these images. I think they use Amazon EC2 Repository to provide these internally, like the one you can use . 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

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/

So you can use it as follows:

FROM sandorzelei/aws-codebuild

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM