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

  • botocore.exceptions.EndpointConnectionError from inside Mac Docker container
  • Creating kubernetes cluster inside an existing VPC in AWS
  • How to launch my docker container automatically on ECS?
  • How to logging in Amazon Web Service ( AWS )?
  • How do you deploy properly to AWS with Elastic beanstalk and Dockerrun.aws.json?
  • Provide environment variables to elastic beanstalk docker deployment
  • 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.

  • Docker receiving multicast traffic
  • Not able to use .env file with docker-compose
  • How to list docker images in insecure-registry
  • From inside the docker container i want to copy the file in to the host machine
  • How to run bower install inside a Dockerfile?
  • Docker Compose - adding identifier to network name
  • 3 Solutions collect form web for “Build a Docker image on top of CodeBuild Docker Image”

    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
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.