aws / aws-sam-cli

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
https://aws.amazon.com/serverless/sam/
Apache License 2.0
6.52k stars 1.17k forks source link

Feature request: DockerHub image #4327

Open matfur92 opened 2 years ago

matfur92 commented 2 years ago

Describe your idea/feature/enhancement

I wish SAM CLI would be present as Docker image on Docker Hub.

Proposal

I want to be faster than now. Installation process coul be long or every time I want the last version I cannot spend too much time. With tags, I can stay to a stable version and update when I need or test every time with "latest" version.

Things to consider:

  1. aws-cli already present https://hub.docker.com/r/amazon/aws-cli
    docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --entrypoint /bin/bash amazon/aws-cli
  2. similar project is Maven https://hub.docker.com/_/maven
    docker run -it --rm -v "$PWD":/usr/src/mymaven -v "$HOME/.m2":/root/.m2 -v /var/run/docker.sock:/var/run/docker.sock -w /usr/src/mymaven maven mvn clean install

Additional Details

mndeveci commented 2 years ago

Thanks for the suggestion. We already have SAM CLI available in our build images, which can be found here; https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-image-repositories.html

We also have related runtime's tools available in those images. Please let us know if that would help with your use case.

moelasmar commented 2 years ago

Closing due to inactivity. Feel free to re-open if your issue isn't resolved.

matfur92 commented 1 year ago

Hi, sorry for the delay, but the requested feature is different from the one reported by @mndeveci at https://github.com/aws/aws-sam-cli/issues/4327#issuecomment-1287447545

The request is to have the "sam" command as docker container like https://hub.docker.com/r/amazon/aws-cli

The request is to have docker run --rm -it amazon/sam and with this you can do: docker run --rm -it amazon/sam init docker run --rm -it amazon/sam build

Thanks a lot Matteo

matfur92 commented 1 year ago

Closing due to inactivity. Feel free to re-open if your issue isn't resolved.

Please @moelasmar reopen this issue

moelasmar commented 1 year ago

@matfur92 .. can I ask for the benefits you are looking for?

matfur92 commented 1 year ago

@moelasmar in addition to be aligned at what another AWS project offer (https://hub.docker.com/r/amazon/aws-cli) with this you can: