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

  • Docker containers on AWS
  • AWS Cloudwatch logs with Docker Container - NoCredentialProviders: no valid providers in chain
  • Docker container out of sync with host
  • Jenkins amazon-ecr plugin issue
  • Kubernetes run on AWS
  • Elastic Beanstalk Single-Container Docker current container name
  • 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.

  • connecting to exposed docker container
  • How do I hook up a Node/React application to a remote Informix server?
  • how to use digitallyseamless/nodejs-bower-grunt-runtime:compass-support in wercker?
  • Can't connect to docker from docker-compose
  • Docker for traditional web application with load balancing?
  • Cant load data onto Jupyter docker
  • 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.