sm_build | R Documentation |
AWS CodeBuild
to build docker images and push them to Amazon ECR
This function takes a directory containing a
dockerfile, and builds it on
AWS CodeBuild
. The resulting image is
then stored in AWS ECR
for later use.
sm_build(
repository = NULL,
compute_type = c("BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM",
"BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"),
role = NULL,
dir = ".",
bucket = NULL,
vpc_id = NULL,
subnet_ids = list(),
security_group_ids = list(),
log = TRUE,
...
)
repository |
(character): The |
compute_type |
(character): The |
role |
(character): The |
dir |
(character): Directory to build |
bucket |
(character): The S3 bucket to use for sending data to |
vpc_id |
(character): The Id of the |
subnet_ids |
(list): List of |
security_group_ids |
(list): List of security group ids for
the |
log |
(logical): Show the logs of the running |
... |
docker build parameters
https://docs.docker.com/engine/reference/commandline/build/#options
(NOTE: use "_" instead of "-" for example: docker optional parameter
|
invisible character vector of AWS ECR
image uri
.
## Not run:
# Execute on current directory.
sm_build()
# Execute on different directory.
sm_build(dir = "my-project")
# Add extra docker arguments
sm_build(
file = "/path/to/Dockerfile",
build_arg = "foo=bar"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.