for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Docker hangs on building a small Dockerfile on macOS, but not on linux (raspbian)

Open louis-marchant opened this issue 8 years ago • 2 comments

  • [x] I have tried with the latest version of my channel (Stable or Edge)
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: 94C3E94B-CC02-4089-BE14-EC6D8F5114C0/20180907143025

Expected behavior

Expect the build to succeed without issue (as it does on a Raspberry pi)

Actual behavior

The build hangs indefinitely at a certain point (see below)

Information

  • macOS Version: High Sierra 10.13.6

Diagnostic logs

Diagnose succeded

(that's all that is in the diagnosis result box, did I miss something...?)

Steps to reproduce the behavior

  1. Build using the below Dockerfile (bottom of this issue)
  2. Hang happens at "Step 4/5: RUN npm install express node-dht-sensor onoff"
  3. Specifically it appears to hang at the "./check-lib.sh" script, which is this file

However, the above doesn't happen on a small raspberry pi that we're using as well. Which confused us. The raspberry pi blazes through the ./check-lib.sh script with no worries.

The below image is the console output from attempting to build on my mac. It hangs here indefinitely and uses 99% of my CPU as well.

image
FROM arm32v6/node:alpine

# Install some extra packages to make sure we can build and "npm install" our dependencies later
RUN apk add --no-cache curl gcc g++ make python2 && \
 mkdir -p /usr/src && \
 curl -s http://www.airspayce.com/mikem/bcm2835/bcm2835-1.56.tar.gz | tar -C /usr/src -xvz && \
 cd /usr/src/bcm2835-1.56 && \
 ./configure --prefix=/usr && \
 make && \
 make install && \
 rm -rf /usr/src/bcm2835-1.56 && \
 apk del curl

WORKDIR /usr/src/

RUN npm install express node-dht-sensor onoff

EXPOSE 8080

louis-marchant avatar Sep 07 '18 14:09 louis-marchant

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Dec 06 '18 02:12 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 30 '20 03:06 docker-robott