-
Notifications
You must be signed in to change notification settings - Fork 116
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
Build fails with empty logs when using custom docker image #105
Comments
@butaca , can your provide your appId and app region? |
Thanks @nimacks for taking a look into this. region: us-east-2 Please, let me know if you need something else. |
@butaca , can you ensure that your custom build image is complete?
(NPM-based builds)Node.JS+NPM: Our build runner does not install Node, but instead relies on Node and NPM being installed in the image. This is only required for builds that require NPM packages or Node specific commands. For more details see here https://docs.aws.amazon.com/amplify/latest/userguide/custom-build-image.html |
@nimacks I didn’t install node since “This is only required for builds that require NPM packages or Node specific commands” and this is my case. Should I try installing it even though I am not using it in my build? |
I would like to rule out any unknown dependencies on Node.JS, so if you could install and then build that would be great. If that doesn't work then we can rule that out as the root cause. |
@nimacks I added Node and the build is working correctly now. It seems that Node is mandatory after all. Thanks for your help. For future readers, the working image is here: https://github.com/butaca/amplify-hugo |
@nimacks although I managed to reduce the build time form 3 minutes to 1 minutes approximately, I suspect that using alpine instead of amazonlinux:2 should reduce the build time significantly. This is what I tried: https://github.com/butaca/amplify-hugo/blob/cc68609581fb22d1cf7a348b47fcdc57a9f1e711/Dockerfile But I am blind since the logs are empty. It would be great if amplify provided the logs when the build fails. |
@butaca We will look into making logs available to customers so you can have more insight into what's happening. If you're satisfied that you're issue has been resolved, please close this ticket. Thanks. |
@nimacks Thanks for your help. I'm closing it now. I would like to know if possible, if there is a lighter alternative to amazonlinux:2 as a base image. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am trying to create a smaller image to build a hugo site. I tried the following two images:
In both cases the build fails but the logs are empty.
The text was updated successfully, but these errors were encountered: