public static interface ProjectEnvironment.Builder extends SdkPojo, CopyableBuilder<ProjectEnvironment.Builder,ProjectEnvironment>
Modifier and Type | Method and Description |
---|---|
ProjectEnvironment.Builder |
certificate(String certificate)
The certificate to use with this build project.
|
ProjectEnvironment.Builder |
computeType(ComputeType computeType)
Information about the compute resources the build project uses.
|
ProjectEnvironment.Builder |
computeType(String computeType)
Information about the compute resources the build project uses.
|
ProjectEnvironment.Builder |
environmentVariables(Collection<EnvironmentVariable> environmentVariables)
A set of environment variables to make available to builds for this build project.
|
ProjectEnvironment.Builder |
environmentVariables(Consumer<EnvironmentVariable.Builder>... environmentVariables)
A set of environment variables to make available to builds for this build project.
|
ProjectEnvironment.Builder |
environmentVariables(EnvironmentVariable... environmentVariables)
A set of environment variables to make available to builds for this build project.
|
ProjectEnvironment.Builder |
image(String image)
The ID of the Docker image to use for this build project.
|
ProjectEnvironment.Builder |
privilegedMode(Boolean privilegedMode)
Enables running the Docker daemon inside a Docker container.
|
ProjectEnvironment.Builder |
type(EnvironmentType type)
The type of build environment to use for related builds.
|
ProjectEnvironment.Builder |
type(String type)
The type of build environment to use for related builds.
|
copy
applyMutation, build
ProjectEnvironment.Builder type(String type)
The type of build environment to use for related builds.
type
- The type of build environment to use for related builds.EnvironmentType
,
EnvironmentType
ProjectEnvironment.Builder type(EnvironmentType type)
The type of build environment to use for related builds.
type
- The type of build environment to use for related builds.EnvironmentType
,
EnvironmentType
ProjectEnvironment.Builder image(String image)
The ID of the Docker image to use for this build project.
image
- The ID of the Docker image to use for this build project.ProjectEnvironment.Builder computeType(String computeType)
Information about the compute resources the build project uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 15 GB memory and 8 vCPUs for builds.
computeType
- Information about the compute resources the build project uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 15 GB memory and 8 vCPUs for builds.
ComputeType
,
ComputeType
ProjectEnvironment.Builder computeType(ComputeType computeType)
Information about the compute resources the build project uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 15 GB memory and 8 vCPUs for builds.
computeType
- Information about the compute resources the build project uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 15 GB memory and 8 vCPUs for builds.
ComputeType
,
ComputeType
ProjectEnvironment.Builder environmentVariables(Collection<EnvironmentVariable> environmentVariables)
A set of environment variables to make available to builds for this build project.
environmentVariables
- A set of environment variables to make available to builds for this build project.ProjectEnvironment.Builder environmentVariables(EnvironmentVariable... environmentVariables)
A set of environment variables to make available to builds for this build project.
environmentVariables
- A set of environment variables to make available to builds for this build project.ProjectEnvironment.Builder environmentVariables(Consumer<EnvironmentVariable.Builder>... environmentVariables)
A set of environment variables to make available to builds for this build project.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #environmentVariables(List)
.environmentVariables
- a consumer that will call methods on List.Builder
#environmentVariables(List)
ProjectEnvironment.Builder privilegedMode(Boolean privilegedMode)
Enables running the Docker daemon inside a Docker container. Set to true only if the build project is be used to build Docker images, and the specified build environment image is not provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon fail. You must also start the Docker daemon so that builds can interact with it. One way to do this is to initialize the Docker daemon during the install phase of your build spec by running the following build commands. (Do not run these commands if the specified build environment image is provided by AWS CodeBuild with Docker support.)
If the operating system's base image is Ubuntu Linux:
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
If the operating system's base image is Alpine Linux, add the -t
argument to
timeout
:
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout 15 -t sh -c "until docker info; do echo .; sleep 1; done"
privilegedMode
- Enables running the Docker daemon inside a Docker container. Set to true only if the build project is
be used to build Docker images, and the specified build environment image is not provided by AWS
CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the
Docker daemon fail. You must also start the Docker daemon so that builds can interact with it. One way
to do this is to initialize the Docker daemon during the install phase of your build spec by running
the following build commands. (Do not run these commands if the specified build environment image is
provided by AWS CodeBuild with Docker support.)
If the operating system's base image is Ubuntu Linux:
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
If the operating system's base image is Alpine Linux, add the -t
argument to
timeout
:
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout 15 -t sh -c "until docker info; do echo .; sleep 1; done"
ProjectEnvironment.Builder certificate(String certificate)
The certificate to use with this build project.
certificate
- The certificate to use with this build project.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.