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
You will run a docker run command and set three environment variables:
15
14
15
+
You can verify the SHA matches our [latest release](https://docs.aws.amazon.com/codebuild/latest/userguide/samples.html). Please allow at least an hour after a new version has been pushed for the updated SHA to be reflected in our documentation.
16
+
17
+
You will run a docker run command and set three environment variables. Please note the fourth variable is optional:
16
18
1. IMAGE_NAME: your curated environment image
17
-
2. SOURCE: your local source directory
18
-
3. ARTIFACTS: an artifact output directory
19
+
2. SOURCE: the absolute path of your local source directory
20
+
3. ARTIFACTS: the absolute path of an artifact output directory
21
+
4. BUILDSPEC: The path to your buildspec in your source directory
19
22
20
23
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.
21
24
22
25
Command:
23
26
24
-
docker run -it -v /var/run/docker.sock/var/run/docker.sock -e "IMAGE_NAME=<Build image>" -e "ARTIFACTS=<Absolute path to your artifact output folder>" -e "SOURCE=<Absolute path to your source directory>" amazon/aws-codebuild-local
27
+
docker run -it -v /var/run/docker.sock/var/run/docker.sock -e "IMAGE_NAME=<Build image>" -e "ARTIFACTS=<Absolute path to your artifact output folder>" -e "SOURCE=<Absolute path to your source directory>" -e "BUILDSPEC=<Relative path to your buildspec override> amazon/aws-codebuild-local
0 commit comments