diff options
author | Julien Barbot <julien@barbot.org> | 2018-09-20 17:20:24 +0200 |
---|---|---|
committer | Julien Barbot <julien@barbot.org> | 2018-09-21 17:28:14 +0200 |
commit | 592a556b75ff6c8528e05dae5ec72ca88c7f52cd (patch) | |
tree | a50fb13176639f7b19a03067a336d274d036e174 | |
parent | 20fdd615eeb9b4fa1594273b1fa3d7eca8992c8b (diff) |
Don't build pnda components in parallel
Building components in parallel requires a lot of memory,
especially when gobblin and flink are built at the same time.
To prevent memory issues, we disable parallel builds.
Change-Id: I98c19025a5a1d8002ee1d45a139f40599725ddd3
Signed-off-by: Julien Barbot <julien@barbot.org>
Issue-ID: DCAEGEN2-367
Signed-off-by: Julien Barbot <julien@barbot.org>
-rw-r--r-- | pnda-mirror-container/Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pnda-mirror-container/Dockerfile b/pnda-mirror-container/Dockerfile index c6b8f30..3fdcfee 100644 --- a/pnda-mirror-container/Dockerfile +++ b/pnda-mirror-container/Dockerfile @@ -19,6 +19,9 @@ FROM centos:7.5.1804 as build ARG PNDARELEASE=develop +# Can be HDP or CDH +ARG HADOOPDIST=HDP + RUN yum clean all && rm -rf /var/cache/yum/* && yum install gettext git -y @@ -32,7 +35,7 @@ RUN ./install-build-tools.sh RUN yum install bzip2 make which -y RUN source ./set-pnda-env.sh \ - && ./build-pnda.sh BRANCH $PNDARELEASE HDP + && PARALLEL="--jobs 1" ./build-pnda.sh BRANCH $PNDARELEASE $HADOOPDIST FROM nginx:alpine |