Skip to content

[Feature Request] Integrate CodeBuild local agent #402

Closed

Description

@alexcasalboni

Description:

What about integrating the new CodeBuild local agent into sam-local?

It could make it easier for a serverless developer to test/debug a buildspec file locally.

Since sam-local already requires Docker, it could also make it a bit more transparent so that you don't need to be a "Docker expert" at all.

Suggested behaviour:

sam build --image ruby:2.3.1

The command should take care of the following steps:

# build docker image
docker build -t aws/codebuild/ruby:2.3.1 .
# pull agent image
docker pull amazon/aws-codebuild-local:latest --disable-content-trust=false
# run buildspec
docker run -it -v /var/run/docker.sock:/var/run/docker.sock -e "IMAGE_NAME=aws/codebuild/ruby:2.3.1" -e "ARTIFACTS=/home/ec2-user/environment/artifacts" -e "SOURCE=/home/ec2-user/environment/sample-web-app" amazon/aws-codebuild-local

(more detailed instructions here)

Activity

  1. added
    type/feature
    on May 11, 2018
  2. added
    stage/needs-feedback
    on May 22, 2018
  3. sanathkr commented on May 22, 2018

    @sanathkr

    This is a good idea! I will keep the issue open here to gather feedback.

  4. added
    blocked/close-if-inactive
    and removed
    stage/needs-feedback
    type/feature
    on Aug 21, 2020
  5. awsjeffg commented on Aug 21, 2020

    @awsjeffg

    While this is an interesting idea, it doesn't seem to be strictly relevant to how SAM cli works today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/close-if-inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions