-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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 when using docker compose up #29282
Comments
Hey there, @kitchenchem224! I'm here to help you with any issues you're experiencing while using our repository. Let's work together to get this sorted out. To resolve the error "failed to solve: process '/bin/sh -c npm run ${BUILD_CMD}' did not complete successfully: exit code: 1" when running Here is how you can set the correct Node.js version:
Additionally, ensure that the ARG NPM_BUILD_CMD="build"
...
ENV BUILD_CMD=${NPM_BUILD_CMD}
...
RUN npm run ${BUILD_CMD} After ensuring the correct Node.js version is in use and the |
I am on the correct node version and the dockerfile is correct. I am still getting the error. |
To further troubleshoot the issue, let's ensure that all necessary dependencies are installed and check for any specific errors during the build process.
If the above steps do not resolve the issue, please provide the specific error logs or details about the failure during the |
Ahh... @mistercrunch and I have been discussing this a bit. I'm 99.99% certain you're just hitting a Docker memory limit, and the error doesn't make that clear. I'm curious your settings, but you're probably <12 GB ram. Bumping to 12-ish should work, and 16GB should be quite safe. We still have yet to find an ideal way to make this safer/stabler with some kind of resource-checking script when starting things up. |
Thanks for the reply @rusackas @mistercrunch . I was able to get it running yesterday. I changed my docker resource allocation to a little less generous than yours. I also enabled Kubernetes and set my |
Sidetrack but I'm still thinking it'd be great to have some some of |
Today I was trying to run Upgraded it to 16GB (13.5 GB free at time of build) and it completed successfully in 9 min. So we have a data point that 6.5 GB RAM free is insufficient and two data points that 12 GB and 13.5 GB free is adequate. |
Might be able to get away with some swapping too (?) Clearly would impact build times - and more so on non-SSD drives. This may help a little too on the development environment side of the house -> #30021, it still builds the JS, but only once (skips the docker build) and runs only |
Bug description
I am using linux fedora 39 x86-64. I forked superset, cloned it onto my local machine, and ran docker compose up. The build process gets to step 7 before failing with the error:
failed to solve: process "/bin/sh -c npm run ${BUILD_CMD}" did not complete successfully: exit code: 1
I got the same error on ubuntu 24.04 and ubuntu 22.04 via wsl.
How to reproduce the bug
follow these docs
fork repository
clone it
cd superset
docker compose up
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.10
Node version
18 or greater
Browser
Not applicable
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: