webintoit
(Andrii Davydov)
November 18, 2019, 4:29pm
1
Hello everyone. Just tried to update server build with new version of mediasoup.
Using alpine based dockerfile to build:
FROM node:lts-alpine
...
COPY package.json .npmrc $WORKDIR/
RUN set -ex; \
apk add --no-cache --virtual .build-deps \
build-base \
linux-headers \
python2 \
; \
npm install; \
apk del .build-deps;
...
Nothing happens after this screen
It stay unchanged for 40 minutes and wont to be built.
Sometimes build fails with npm error
command terminated with exit code 137
What was changed in build process, 3.2.x version is building normal
ibc
(Iñaki Baz Castillo)
November 18, 2019, 4:39pm
2
Sorry, impossible to help with such a problem description.
webintoit
(Andrii Davydov)
November 18, 2019, 4:52pm
3
Build process is frozen, nothing happens for 40 minutes and more, tried to build on remote server, and on local docker environment, no results. Will try to collect some debug info.
ibc
(Iñaki Baz Castillo)
November 18, 2019, 5:04pm
5
As you may anticipate, this is not a bug in mediasoup but “whatever” in your Docker stuff. We have definitely built mediasoup on Docker thousands of times.
webintoit
(Andrii Davydov)
November 18, 2019, 5:07pm
6
Sure. It consumes toooo much resources for build in alpine, docker kills the process itself.
ibc
(Iñaki Baz Castillo)
November 18, 2019, 5:15pm
7
I’m afraid you should tune your container to build mediasoup. We cannot reduce the build process more than it is.