Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sam deploy using orbstack does not work #6272

Closed
georgettica opened this issue Nov 15, 2023 · 4 comments
Closed

sam deploy using orbstack does not work #6272

georgettica opened this issue Nov 15, 2023 · 4 comments

Comments

@georgettica
Copy link

Description

if I have a sam cli application that builds a docker and the docker backend is orbstack (https://github.com/orbstack/orbstack).
my OS is macos.

for comparison it does work well with podman (https://github.com/containers/podman) as the docker backend

Steps to reproduce

install orbstack
create a sam cli that uses a Dockerfile
sam build && sam deploy

Observed result

could not find docker

Expected result

build and deploy passes

Additional environment details

  1. OS: MacOS
  2. If using the SAM CLI, sam --version: SAM CLI, version 1.100.0
  3. AWS region: us-east-1
@georgettica georgettica added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Nov 15, 2023
@aaythapa
Copy link

aaythapa commented Nov 15, 2023

Hi there, this looks like a SAM CLI issue. Transferring to their repo.

@aaythapa aaythapa transferred this issue from aws/serverless-application-model Nov 15, 2023
@mildaniel
Copy link
Contributor

mildaniel commented Nov 21, 2023

Hi @georgettica, thanks for creating this issue. You might need to set the DOCKER_HOST environment variable to point to the orbstack socket. See #5646 (comment)

After setting the environment variable, I was able to run sam build -u and sam local invoke using an orbstack backend. Let me know if this works for you.

@mildaniel mildaniel added type/question and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Nov 21, 2023
@georgettica
Copy link
Author

I got it via
docker context inspect | jq -r '.[].Endpoints.docker.Host'

Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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

No branches or pull requests

3 participants