-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 build image buffers output from docker until it's finished #6576
Comments
@kwanxyz I guess I mentioned the same issues in this issue (6507). Are they same? |
@fade2black yes, same issue. It's super annoying since my image takes a while to build, around 10 minutes. And sometimes the build process would fail but I wouldn't know of the failure since I get no output during the build process, |
@kwanxyz yes, the same is here. It fails, and you don't know the reason. Really annoying. Then you have to build it using docker command without sam and see what happens. This issue is already around at least for 3-4 months. |
@fade2black I contacted aws support and they are seeing the same problem using the latest sam cli. |
@kwanxyz I hope they'll assign this issue the highest priority, otherwise it is really annoying. |
Hi @kwanxyz, thanks for reporting the issue. As @fade2black mentioned, this seems similar to the issue 6507. I am closing this issue since it's a duplicate. Please track the other issue for updates and we will prioritize fixing the bug. |
|
Description:
sam build appears to be hanging when building the docker image. There is no output during the build process and this makes it appear as the sam build process is frozen and not responding when an image takes a long time to build. The output does eventually get displayed when the build process completes. I can see the docker output when I ran docker build. I have also confirmed this behavior with aws support team.
This does not happen when using my old intel mac.
Steps to reproduce:
Create a sam project in python with an docker image
Run command "sam build"
Observed result:
Docker build outputs are missing until the image build is completed.
Expected result:
Docker build outputs during the build process
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:I am on M2 macbook pro running apple silicon,
SAM CLI, version 1.107.0
Docker Desktop 4.26.0
{
"version": "1.107.0",
"system": {
"python": "3.8.13",
"os": "macOS-13.5-arm64-arm-64bit"
},
"additional_dependencies": {
"docker_engine": "24.0.7",
"aws_cdk": "Not available",
"terraform": "Not available"
},
"available_beta_feature_env_vars": [
"SAM_CLI_BETA_FEATURES",
"SAM_CLI_BETA_BUILD_PERFORMANCE",
"SAM_CLI_BETA_TERRAFORM_SUPPORT",
"SAM_CLI_BETA_RUST_CARGO_LAMBDA"
]
}
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: