Menu
AWS CodeBuild
User Guide (API Version 2016-10-06)

Docker Images Provided by AWS CodeBuild

AWS CodeBuild manages the following Docker images that are available in the AWS CodeBuild and AWS CodePipeline consoles.

Platform Programming language or framework Runtime version Additional components Image identifier Definition
Ubuntu 14.04 (Base image) AWS CLI, Git 1.9.1 aws/codebuild/ubuntu-base:14.04 ubuntu/ubuntu-base/14.04
Ubuntu 14.04 Android 24.4.1 AWS CLI, Git 1.9.1, Java 8, pip 8.1.2, Python 2.7 aws/codebuild/android-java-8:24.4.1 ubuntu/android-java-8/24.4.1
Ubuntu 14.04 Docker 1.12.1 AWS CLI, Git 1.9.1, pip 8.1.2, Python 2.7 aws/codebuild/docker:1.12.1 ubuntu/docker/1.12.1
Ubuntu 14.04 Golang 1.7.3 AWS CLI, Git 1.9.1, pip 8.1.2, Python 2.7 aws/codebuild/golang:1.7.3 ubuntu/golang/1.7.3
Ubuntu 14.04 Golang 1.6.3 AWS CLI, Git 1.9.1, pip 8.1.2, Python 2.7 aws/codebuild/golang:1.6.3 ubuntu/golang/1.6.3
Ubuntu 14.04 Golang 1.5.4 AWS CLI, Git 1.9.1, pip 8.1.2, Python 2.7 aws/codebuild/golang:1.5.4 ubuntu/golang/1.5.4
Ubuntu 14.04 Java 8 Apache Ant 1.9.6, Apache Maven 3.3.3, AWS CLI, Git 1.9.1, Gradle 2.7, pip 8.1.2, Python 2.7 aws/codebuild/java:openjdk-8 ubuntu/java/openjdk-8
Ubuntu 14.04 Java 7 Apache Ant 1.9.6, Apache Maven 3.3.3, AWS CLI, Git 1.9.1, Gradle 2.7, pip 8.1.2, Python 2.7 aws/codebuild/java:openjdk-7 ubuntu/java/openjdk-7
Ubuntu 14.04 Java 6 Apache Ant 1.9.6, Apache Maven 3.2.5, AWS CLI, Git 1.9.1, Gradle 2.7, pip 8.1.2, Python 2.7 aws/codebuild/java:openjdk-6 ubuntu/java/openjdk-6
Ubuntu 14.04 Node.js 7.0.0 AWS CLI, Git 1.9.1, NPM, pip 8.1.2, Python 2.7 aws/codebuild/nodejs:7.0.0 ubuntu/nodejs/7.0.0
Ubuntu 14.04 Node.js 6.3.1 AWS CLI, Git 1.9.1, NPM, pip 8.1.2, Python 2.7 aws/codebuild/nodejs:6.3.1 ubuntu/nodejs/6.3.1
Ubuntu 14.04 Node.js 5.12.0 AWS CLI, Git 1.9.1, NPM, pip 8.1.2, Python 2.7 aws/codebuild/nodejs:5.12.0 ubuntu/nodejs/5.12.0
Ubuntu 14.04 Node.js 4.4.7 AWS CLI, Git 1.9.1, NPM, pip 8.1.2, Python 2.7 aws/codebuild/nodejs:4.4.7 ubuntu/nodejs/4.4.7
Ubuntu 14.04 Node.js 4.3.2 AWS CLI, Git 1.9.1, NPM, pip 8.1.2, Python 2.7 aws/codebuild/nodejs:4.3.2 ubuntu/nodejs/4.3.2
Ubuntu 14.04 Python 3.5.2 AWS CLI, Git 1.9.1, pip 8.1.2, Python 2.7 aws/codebuild/python:3.5.2 ubuntu/python/3.5.2
Ubuntu 14.04 Python 3.4.5 AWS CLI, Git 1.9.1, pip 8.1.2, Python 2.7 aws/codebuild/python:3.4.5 ubuntu/python/3.4.5
Ubuntu 14.04 Python 3.3.6 AWS CLI, Git 1.9.1, pip 8.1.2, Python 2.7 aws/codebuild/python:3.3.6 ubuntu/python/3.3.6
Ubuntu 14.04 Python 2.7.12 AWS CLI, Git 1.9.1, pip 8.1.2, Python 2.7 aws/codebuild/python:2.7.12 ubuntu/python/2.7.12
Ubuntu 14.04 Ruby 2.3.1 AWS CLI, Bundler 1.13.5, Git 1.9.1, pip 8.1.2, Python 2.7, RubyGems 2.6.7 aws/codebuild/ruby:2.3.1 ubuntu/ruby/2.3.1
Ubuntu 14.04 Ruby 2.2.5 AWS CLI, Bundler 1.13.5, Git 1.9.1, pip 8.1.2, Python 2.7, RubyGems 2.6.7 aws/codebuild/ruby:2.2.5 ubuntu/ruby/2.2.5
Ubuntu 14.04 Ruby 2.1.10 AWS CLI, Bundler 1.13.5, Git 1.9.1, pip 8.1.2, Python 2.7, RubyGems 2.6.7 aws/codebuild/ruby:2.1.10 ubuntu/ruby/2.1.10
Ubuntu 14.04 .NET Core 1.1 aws/codebuild/dot-net:core-1

AWS CodeBuild also manages the following Docker images that are not in the AWS CodeBuild and AWS CodePipeline consoles.

Platform Programming language or framework Runtime version Additional components Image identifier
Amazon Linux 2016.03, 64-bit v2.3.2 Golang 1.6 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-go-1.6-amazonlinux-64:2.3.2
Amazon Linux 2016.03, 64-bit v2.1.6 Golang 1.5.3 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Golang 1.5.3 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.4.3 Java 1.8.0 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-java-8-amazonlinux-64:2.4.3
Amazon Linux 2016.03, 64-bit v2.1.6 Java 1.8.0 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-java-8-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Java 1.8.0 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-java-8-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.4.3 Java 1.7.0 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-java-7-amazonlinux-64:2.4.3
Amazon Linux 2016.03, 64-bit v2.1.6 Java 1.7.0 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-java-7-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Java 1.7.0 Apache Maven 3.3.3, Apache Ant 1.9.6, Gradle 2.7 aws/codebuild/eb-java-7-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v4.0.0 Node.js 6.10.0 Git 2.7.4, npm 2.15.5 aws/codebuild/eb-nodejs-6.10.0-amazonlinux-64:4.0.0
Amazon Linux 2016.03, 64-bit v2.1.3 Node.js 4.4.6 Git 2.7.4, npm 2.15.5 aws/codebuild/eb-nodejs-4.4.6-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.1.6 Python 3.4.3 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-3.4-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Python 3.4.3 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-3.4-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.3.2 Python 3.4 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-3.4-amazonlinux-64:2.3.2
Amazon Linux 2016.03, 64-bit v2.1.6 Python 2.7.10 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-2.7-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Python 2.7.10 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-2.7-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.3.2 Python 2.7 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-2.7-amazonlinux-64:2.3.2
Amazon Linux 2016.03, 64-bit v2.1.6 Python 2.6.9 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-2.6-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Python 2.6.9 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-2.6-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.3.2 Python 2.6 meld3 1.0.2, pip 7.1.2, setuptools 18.4 aws/codebuild/eb-python-2.6-amazonlinux-64:2.3.2
Amazon Linux 2016.03, 64-bit v2.1.6 Ruby 2.3.1 Bundler, RubyGems aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Ruby 2.3.1 Bundler, RubyGems aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.3.2 Ruby 2.3 Bundler, RubyGems aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.3.2
Amazon Linux 2016.03, 64-bit v2.1.6 Ruby 2.2.5 Bundler, RubyGems aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Ruby 2.2.5 Bundler, RubyGems aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.3.2 Ruby 2.2 Bundler, RubyGems aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.3.2
Amazon Linux 2016.03, 64-bit v2.1.6 Ruby 2.1.9 Bundler, RubyGems aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Ruby 2.1.9 Bundler, RubyGems aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.3.2 Ruby 2.1 Bundler, RubyGems aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.3.2
Amazon Linux 2016.03, 64-bit v2.3.2 Ruby 2.0 Bundler, RubyGems aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.3.2
Amazon Linux 2016.03, 64-bit v2.1.6 Ruby 2.0.0 Bundler, RubyGems aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Ruby 2.0.0 Bundler, RubyGems aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.1.6 Ruby 1.9.3 Bundler, RubyGems aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.6
Amazon Linux 2016.03, 64-bit v2.1.3 Ruby 1.9.3 Bundler, RubyGems aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.3
Amazon Linux 2016.03, 64-bit v2.3.2 Ruby 1.9 Bundler, RubyGems aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.3.2

For more information about the Docker images that contain eb- in their identifier, see Supported Platforms and Platform History in the AWS Elastic Beanstalk Developer Guide. Docker images that contain eb- in their identifier are available for use in Elastic Beanstalk; but are not available in the AWS CodeBuild and AWS CodePipeline consoles.

You can use a build specification to install other components (for example, the AWS CLI, Apache Maven, Apache Ant, Mocha, RSpec, or similar) during the install build phase. For more information, see Build Spec Example.

AWS CodeBuild frequently updates the list of Docker images. To get the most current list, do one of the following:

To confirm the version of a component installed on a Docker image, you can run a command during a build. The version number for the component will appear in the output. For example, include one or more of the following commands in your build specification:

  • For Apache Ant, run ant -version.

  • For Apache Maven, run mvn -version.

  • For the AWS CLI, run aws --version.

  • For Bundler, run bundle version.

  • For Git, run git --version.

  • For Gradle, run gradle --version.

  • For Java, run java -version.

  • For NPM, run npm --version.

  • For pip, run pip --version.

  • For Python, run python --version.

  • For RubyGems, run gem --version.

  • For setuptools, run easy_install --version.

The following build command (entered through the AWS CodeBuild or AWS CodePipeline console as part of a build project's settings) returns the versions of the AWS CLI, Git, pip, and Python on a Docker image that has these components installed: aws --version && git --version && pip --version && python --version.