You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc_source/build-env-ref-available.md
+20-81Lines changed: 20 additions & 81 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,75 +2,33 @@
2
2
3
3
AWS CodeBuild manages the following Docker images that are available in the CodeBuild and AWS CodePipeline consoles\.
4
4
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
-
8
5
9
6
****
10
7
11
-
| Platform | Programming language or framework | Runtime version | Image identifier | Definition |
| 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\.
74
32
75
33
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)\.
76
34
@@ -81,23 +39,4 @@ CodeBuild frequently updates the list of Docker images\. To get the most current
81
39
```
82
40
aws codebuild list-curated-environment-images
83
41
```
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)\.
Copy file name to clipboardExpand all lines: doc_source/build-env-ref-env-vars.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ AWS CodeBuild provides several environment variables that you can use in your bu
5
5
+`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\.
6
6
+`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`\)\.
7
7
+`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`\)\.
9
9
+`CODEBUILD_BUILD_SUCCEEDING`: Whether the current build is succeeding\. Set to `0` if the build is failing, or `1` if the build is succeeding\.
10
10
+`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`\.
11
11
+`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
36
36
+`HOME`: This environment variable is always set to `/root`\.
37
37
38
38
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)
40
40
+[Create a Build Project](create-project.md)
41
41
+[Change a Build Project's Settings](change-project.md)
0 commit comments