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
For ARM: `docker pull public.ecr.aws/codebuild/local-builds:aarch64`
17
15
18
-
You can verify the SHA matches our [latest release](https://docs.aws.amazon.com/codebuild/latest/userguide/use-codebuild-agent.html#codebuild-agent-sha). Please allow at least an hour after a new version has been pushed for the updated SHA to be reflected in our documentation.
16
+
You can verify the SHA matches our [latest release](https://docs.aws.amazon.com/codebuild/latest/userguide/use-codebuild-agent.html#codebuild-agent-sha). Please allow at least an hour after a new version has been pushed for the updated SHA to be reflected in our documentation.
19
17
20
18
Download and use our codebuild_build.sh script to run your local builds.
-i Used to specify the customer build container image.
26
-
-a Used to specify an artifact output directory.
27
-
28
-
**Optional:**
29
-
-l Used to override the default local agent image. Default is "amazon/aws-codebuild-local:latest".
30
-
-r Used to specify a report output directory.
31
-
-c Use the AWS configuration and credentials from your local host. This includes ~/.aws and any AWS_* environment variables.
32
-
-p Used to specify the AWS CLI Profile.
33
-
-b Used to specify a buildspec override file. Defaults to buildspec.yml in the source directory.
34
-
-e Used to specify a file containing environment variables.
35
-
-m Used to mount the source directory to the customer build container directly.
36
-
-d Used to run the build container in docker privileged mode.
37
-
-s Used to specify a source directory. Defaults to the current working directory.
38
-
* First (-s) is for primary source
39
-
* Use additional (-s) in `<sourceIdentifier>:<sourceLocation>` format for secondary source
40
-
* For `sourceIdentifier`, use a value that is fewer than 128 characters and contains only alphanumeric characters and underscores
22
+
**Required:**
23
+
*`-i` Used to specify the customer build container image.
24
+
*`-a` Used to specify an artifact output directory.
25
+
26
+
**Optional:**
27
+
*`-l` Used to override the default local agent image. Default is "public.ecr.aws/codebuild/local-builds:latest"
28
+
*`-r` Used to specify a report output directory.
29
+
*`-c` Use the AWS configuration and credentials from your local host. This includes ~/.aws and any AWS_* environment variables.
30
+
*`-p` Used to specify the AWS CLI Profile.
31
+
*`-b` Used to specify a buildspec override file. Defaults to buildspec.yml in the source directory.
32
+
*`-e` Used to specify a file containing environment variables.
33
+
*`-m` Used to mount the source directory to the customer build container directly.
34
+
*`-d` Used to run the build container in docker privileged mode.
35
+
*`-s` Used to specify a source directory. Defaults to the current working directory.
36
+
* First `-s` is for primary source
37
+
* Use additional `-s` in `<sourceIdentifier>:<sourceLocation>` format for secondary source
38
+
* For `sourceIdentifier`, use a value that is fewer than 128 characters and contains only alphanumeric characters and underscores
41
39
42
40
**Environment variable file format:**
43
41
* Expects each line to be in VAR=VAL format
@@ -46,4 +44,4 @@ Download and use our codebuild_build.sh script to run your local builds.
46
44
* File can be of type .env or .txt
47
45
* There is no special handling of quotation marks, meaning they will be part of the VAL
48
46
49
-
Note that if you want to use an AWS CodeBuild Curated image, you can build it locally on your machine by cloning this repository and performing a docker build on your choice of image.
47
+
Note that if you want to use an AWS CodeBuild Amazon Linux 2 curated image, you can pull it from [public ECR](https://gallery.ecr.aws/codebuild/amazonlinux2-x86_64-standard). If you want to use an Ubuntu-based curated image, you can build it locally on your machine by cloning this repository and performing a docker build on your choice of image.
0 commit comments