StructuredPojo
, ToCopyableBuilder<ProjectEnvironment.Builder,ProjectEnvironment>
@Generated("software.amazon.awssdk:codegen") public class ProjectEnvironment extends Object implements StructuredPojo, ToCopyableBuilder<ProjectEnvironment.Builder,ProjectEnvironment>
Information about the build environment of the build project.
Modifier and Type | Class | Description |
---|---|---|
static interface |
ProjectEnvironment.Builder |
Modifier and Type | Method | Description |
---|---|---|
static ProjectEnvironment.Builder |
builder() |
|
String |
computeType() |
Information about the compute resources the build project will use.
|
List<EnvironmentVariable> |
environmentVariables() |
A set of environment variables to make available to builds for this build project.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
image() |
The ID of the Docker image to use for this build project.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
Boolean |
privilegedMode() |
If set to true, enables running the Docker daemon inside a Docker container; otherwise, false or not specified
(the default).
|
static Class<? extends ProjectEnvironment.Builder> |
serializableBuilderClass() |
|
ProjectEnvironment.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
type() |
The type of build environment to use for related builds.
|
public String type()
The type of build environment to use for related builds.
EnvironmentType
public String image()
The ID of the Docker image to use for this build project.
public String computeType()
Information about the compute resources the build project will use. 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.
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
public List<EnvironmentVariable> environmentVariables()
A set of environment variables to make available to builds for this build project.
public Boolean privilegedMode()
If set to true, enables running the Docker daemon inside a Docker container; otherwise, false or not specified (the default). This value must be set to true only if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Note that you must also start the Docker daemon so that your builds can interact with it as needed. One way to do this is to initialize the Docker daemon in the install phase of your build spec by running the following build commands. (Do not run the following build commands if the specified build environment image is provided by AWS CodeBuild with Docker support.)
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=vfs& - timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=vfs& - timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"
public ProjectEnvironment.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ProjectEnvironment.Builder,ProjectEnvironment>
public static ProjectEnvironment.Builder builder()
public static Class<? extends ProjectEnvironment.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.