Skip to content

Commit 9e3741c

Browse files
committed
Periodic update - April 22, 2019
1 parent 1e19035 commit 9e3741c

32 files changed

+435
-281
lines changed

doc_source/build-caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ CodeBuildProject:
8282
Environment:
8383
Type: LINUX_CONTAINER
8484
ComputeType: BUILD_GENERAL1_SMALL
85-
Image: aws/codebuild/ubuntu-base:14.04
85+
Image: aws/codebuild/standard:1.0
8686
Certificate: bucket/cert.zip
8787
# PrivilegedMode must be true if you specify LOCAL_DOCKER_LAYER_CACHE
8888
PrivilegedMode: true
@@ -101,4 +101,4 @@ CodeBuildProject:
101101
- LOCAL_SOURCE_CACHE
102102
```
103103

104-
For more information, see [Create a Build Project \(AWS CloudFormation\)](create-project.md#create-project-cloud-formation)\.
104+
For more information, see [Create a Build Project \(AWS CloudFormation\)](create-project.md#create-project-cloud-formation)\.

doc_source/build-env-ref-available.md

Lines changed: 20 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -2,75 +2,33 @@
22

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

5-
**Note**
6-
If you do not find your image on this page, it most likely contains components that are no longer supported by a vendor\. Images with one or more unsupported components are not available from the CodeBuild console or the CodeBuild SDK\. The images might still be available in the CLI, but they are not supported or updated\.
7-
85

96
****
107

11-
| Platform | Programming language or framework | Runtime version | Image identifier | Definition |
12-
| --- | --- | --- | --- | --- |
13-
| Ubuntu 14\.04 | \(Base image\) | | aws/codebuild/ubuntu\-base:14\.04 | [ubuntu/ubuntu\-base/14\.04](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/ubuntu-base/14.04) |
14-
| Ubuntu 14\.04 | Android | 26\.1\.1 | aws/codebuild/android\-java\-8:26\.1\.1 | [ubuntu/android\-java\-8/26\.1\.1](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/android-java-8/26.1.1) |
15-
| Ubuntu 14\.04 | Docker | 18\.09\.0 | aws/codebuild/docker:18\.09\.0 | [ubuntu/docker/18\.09\.0](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/docker/18.09.0) |
16-
| Ubuntu 14\.04 | Docker | 17\.09\.0 | aws/codebuild/docker:17\.09\.0 | [ubuntu/docker/17\.09\.0](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/docker/17.09.0) |
17-
| Ubuntu 14\.04 | Golang | 1\.11 | aws/codebuild/golang:1\.11 | [ubuntu/golang/1\.11](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/golang/1.11) |
18-
| Ubuntu 14\.04 | Golang | 1\.10 | aws/codebuild/golang:1\.10 | [ubuntu/golang/1\.10](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/golang/1.10) |
19-
| Ubuntu 14\.04 | Java | 11 | aws/codebuild/java:openjdk\-11 | [ubuntu/java/openjdk\-11](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/java/openjdk-11) |
20-
| Ubuntu 14\.04 | Java | 9 | aws/codebuild/java:openjdk\-9 | [ubuntu/java/openjdk\-9](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/java/openjdk-9) |
21-
| Ubuntu 14\.04 | Java | 8 | aws/codebuild/java:openjdk\-8 | [ubuntu/java/openjdk\-8](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/java/openjdk-8) |
22-
| Ubuntu 14\.04 | Node\.js | 10\.14\.1 | aws/codebuild/nodejs:10\.14\.1 | [ubuntu/nodejs/10\.14\.1](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/nodejs/10.14.1) |
23-
| Ubuntu 14\.04 | Node\.js | 8\.11\.0 | aws/codebuild/nodejs:8\.11\.0 | [ubuntu/nodejs/8\.11\.0](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/nodejs/8.11.0) |
24-
| Ubuntu 14\.04 | PHP | 7\.1 | aws/codebuild/php:7\.1 | [ubuntu/php/7\.1](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/php/7.1) |
25-
| Ubuntu 14\.04 | Python | 3\.7\.1 | aws/codebuild/python:3\.7\.1 | [ubuntu/python/3\.7\.1](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/python/3.7.1) |
26-
| Ubuntu 14\.04 | Python | 3\.6\.5 | aws/codebuild/python:3\.6\.5 | [ubuntu/python/3\.6\.5](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/python/3.6.5) |
27-
| Ubuntu 14\.04 | Ruby | 2\.5\.3 | aws/codebuild/ruby:2\.5\.3 | [ubuntu/ruby/2\.5\.3](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/ruby/2.5.3) |
28-
| Ubuntu 14\.04 | \.NET Core | 2\.1 | aws/codebuild/dot\-net:core\-2\.1 | [ubuntu/dot\-net/core\-2\.1](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/dot-net/core-2.1) |
29-
| Windows Server Core 2016 | \(Base Image\) | | aws/codebuild/windows\-base:1\.0 | |
8+
| Platform | Programming language or framework | Image identifier | Definition |
9+
| --- | --- | --- | --- |
10+
| Ubuntu 18\.04 | \(Standard image\) | aws/codebuild/standard:1\.0 | [ubuntu/standard/1\.0](https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/standard/1.0) |
11+
| Windows Server Core 2016 | \(Base Image\) | aws/codebuild/windows\-base:1\.0 | N/A |
3012

31-
CodeBuild also manages the following Docker images that are not in the CodeBuild and CodePipeline consoles\.
13+
The standard image of the Ubuntu 18\.04 platform contains the following programming languages:
3214

3315

3416
****
3517

36-
| Platform | Programming language or framework | Runtime version | Additional components | Image identifier |
37-
| --- | --- | --- | --- | --- |
38-
| 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 |
39-
| 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 |
40-
| 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 |
41-
| 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 |
42-
| 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 |
43-
| 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 |
44-
| 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 |
45-
| 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 |
46-
| 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 |
47-
| 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 |
48-
| 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 |
49-
| 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 |
50-
| 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 |
51-
| 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 |
52-
| 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 |
53-
| 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 |
54-
| 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 |
55-
| 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 |
56-
| 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 |
57-
| 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 |
58-
| 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 |
59-
| 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 |
60-
| 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 |
61-
| 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 |
62-
| 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 |
63-
| 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 |
64-
| 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 |
65-
| 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 |
66-
| 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 |
67-
| 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 |
68-
| 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 |
69-
| 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 |
70-
| 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 |
71-
| 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 |
72-
| 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 |
73-
| For more information about the Docker images that contain `eb-` in their identifier, see [Using the EB CLI with AWS CodeBuild](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli-codebuild.html) 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 CodeBuild and CodePipeline consoles\. |
18+
| Programming language | Runtime version |
19+
| --- | --- |
20+
| Ruby | 2\.x |
21+
| Python | 3\.x |
22+
| PHP | 7\.x |
23+
| Node | 10\.x |
24+
| Java | 8 |
25+
| Golang | 1\.x |
26+
| \.NET Core | 2\.x |
27+
| Docker | 18\.x |
28+
| Android | 28\.x |
29+
30+
**Note**
31+
The base image of the Windows Server Core 2016 platform is available in the US East \(N\. Virginia\), US East \(Ohio\), US West \(N\. California\), and EU \(Ireland\) regions only\.
7432

7533
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](build-spec-ref.md#build-spec-ref-example)\.
7634

@@ -81,23 +39,4 @@ CodeBuild frequently updates the list of Docker images\. To get the most current
8139
```
8240
aws codebuild list-curated-environment-images
8341
```
84-
+ For the AWS SDKs, call the `ListCuratedEnvironmentImages` operation for your target programming language\. For more information, see the [AWS SDKs and Tools Reference](sdk-ref.md)\.
85-
86-
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 appears in the output\. For example, include one or more of the following commands in your build specification:
87-
+ For the Microsoft \.NET Framework, run `reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"`\.
88-
+ For \.NET Core, run `dotnet --version`\.
89-
+ For Apache Ant, run `ant -version`\.
90-
+ For Apache Maven, run `mvn -version`\.
91-
+ For the AWS CLI, run `aws --version`\.
92-
+ For Bundler, run `bundle version`\.
93-
+ For Git, run `git --version`\.
94-
+ For Gradle, run `gradle --version`\.
95-
+ For Java, run `java -version`\.
96-
+ For NPM, run `npm --version`\.
97-
+ For PHP, run `php --version`\.
98-
+ For pip, run `pip --version`\.
99-
+ For Python, run `python --version`\.
100-
+ For RubyGems, run `gem --version`\.
101-
+ For setuptools, run `easy_install --version`\.
102-
103-
The following build command \(entered through the CodeBuild or 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`\.
42+
+ For the AWS SDKs, call the `ListCuratedEnvironmentImages` operation for your target programming language\. For more information, see the [AWS SDKs and Tools Reference](sdk-ref.md)\.

doc_source/build-env-ref-background-tasks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ You can run background tasks in build environments\. To do this, in your buildsp
66
+ Start a background process and wait for it to complete later:
77

88
```
9-
nohup sleep 30 & ; echo $! > pidfile
9+
nohup sleep 30 & echo $! > pidfile
1010
1111
wait $(cat pidfile)
1212
```
1313
+ Start a background process and do not wait for it to ever complete:
1414

1515
```
16-
nohup sleep 30 & ; disown $!
16+
nohup sleep 30 & disown $!
1717
```
1818
+ Start a background process and kill it later:
1919

2020
```
21-
nohup sleep 30 & ; echo $! > pidfile
21+
nohup sleep 30 & echo $! > pidfile
2222
2323
kill $(cat pidfile)
2424
```

doc_source/build-env-ref-env-vars.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AWS CodeBuild provides several environment variables that you can use in your bu
55
+ `AWS_REGION`: The AWS Region where the build is running \(for example, `us-east-1`\)\. This environment variable is used primarily by the AWS SDKs\.
66
+ `CODEBUILD_BUILD_ARN`: The Amazon Resource Name \(ARN\) of the build \(for example, `arn:aws:codebuild:region-ID:account-ID:build/codebuild-demo-project:b1e6661e-e4f2-4156-9ab9-82a19EXAMPLE`\)\.
77
+ `CODEBUILD_BUILD_ID`: The CodeBuild ID of the build \(for example, `codebuild-demo-project:b1e6661e-e4f2-4156-9ab9-82a19EXAMPLE`\)\.
8-
+ `CODEBUILD_BUILD_IMAGE`: The CodeBuild build image identifier \(for example, `aws/codebuild/java:openjdk-8`\)\.
8+
+ `CODEBUILD_BUILD_IMAGE`: The CodeBuild build image identifier \(for example, `aws/codebuild/standard:1.0`\)\.
99
+ `CODEBUILD_BUILD_SUCCEEDING`: Whether the current build is succeeding\. Set to `0` if the build is failing, or `1` if the build is succeeding\.
1010
+ `CODEBUILD_INITIATOR`: The entity that started the build\. If CodePipeline started the build, this is the pipeline's name \(for example, `codepipeline/my-demo-pipeline`\)\. If an IAM user started the build, this is the user's name \(for example, `MyUserName`\)\. If the Jenkins plugin for CodeBuild started the build, this is the string `CodeBuild-Jenkins-Plugin`\.
1111
+ `CODEBUILD_KMS_KEY_ID`: The identifier of the AWS KMS key that CodeBuild is using to encrypt the build output artifact \(for example, `arn:aws:kms:region-ID:account-ID:key/key-ID` or `alias/key-alias`\)\.
@@ -36,7 +36,7 @@ If you use a secondary source, the environment variable for its directory path i
3636
+ `HOME`: This environment variable is always set to `/root`\.
3737

3838
You can also provide build environments with your own environment variables\. For more information, see the following topics:
39-
+ [Use AWS CodePipeline with AWS CodeBuild](how-to-create-pipeline.md)
39+
+ [Use AWS CodePipeline with CodeBuild](how-to-create-pipeline.md)
4040
+ [Create a Build Project](create-project.md)
4141
+ [Change a Build Project's Settings](change-project.md)
4242
+ [Run a Build](run-build.md)

0 commit comments

Comments
 (0)