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

  • AWS EBS volume attachement using snapshot
  • Connecting to RDS Mysql from docker container with WordPress
  • Choosing the right AWS Services and software tools
  • Auth0 OWIN API not validating JWT token when published via Docker Container on AWS EC2
  • Docker shutdown hook or support for graceful exit
  • AWS EC2 Task/Service container with java command in the container definitions
  • 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.

  • What is the default location for included files when building a docker image?
  • docker-compose to access port on host machine
  • Best way to extend Dockerfile to pull deps/env vars from common/shared repositories
  • HTTPS URL Redirecting not working with HaProxy
  • Running a Shell script from php
  • intel pin with 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.