Hanging during Docker webpack build
See original GitHub issueI’m attempting to setup Superset on an AWS t3.micro instance. When running:
cd incubator-superset/contrib/docker && \
docker-compose run --rm superset ./docker-init.sh
The command hangs during the webpack build phase.
Expected results
The build will complete.
Actual results
The command hangs with the following output:
# ...
> https://www.justgiving.com/refugee-support-europe
added 2514 packages in 31.406s
> superset@0.999.0-dev build /home/superset/superset/assets
> NODE_ENV=production webpack --mode=production --colors --progress
clean-webpack-plugin: /home/superset/superset/assets/dist has been removed.
Starting type checking service...
Using 1 worker with 2048MB memory limit
90% chunk assets processing
Screenshots
N/A
How to reproduce the bug
- Clone repository
- Run:
cd incubator-superset/contrib/docker
- Run:
docker-compose run --rm superset ./docker-init.sh
- See hanging build.
Environment
(please complete the following information):
- OS:
Ubuntu Xenial 16.04
- superset version:
master
- python version:
n/a
- node.js version:
n/a
- npm version:
n/a
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Hanging during Docker webpack build · Issue #7381 - GitHub
The command hangs during the webpack build phase. Expected results. The build will complete. Actual results. The command hangs with the ...
Read more >node webpack hangs. How to debug? - docker - Stack Overflow
There is a known issue when a NodeJs process hangs while you run it from the root user. As I know, there is...
Read more >Docker build hangs - General Discussions
It seems like the docker build image is not allowed access through whatever default networking setup is there after installation. Weird.
Read more >Running WebpackDevServer in Docker - DEV Community
Sometimes we want to run webpack-dev-server in a Docker container. The reason might be like following. Want to use a specific Node.js version ......
Read more >Building Docker Images Faster for Webpack - Okteto
BuildKit enables us to configure cache folders for the RUN instructions in our Dockerfile.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, to whomsoever it may help, I was able to get it working after increasing the total runtime memory available to docker from 2GB to 4GB.
Reference: https://docs.docker.com/docker-for-mac/
Issue-Label Bot is automatically applying the label
#bug
to this issue, with a confidence of 0.65. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.