angular - Gitlab CI never finishes node build -


i using gitlab-ci try build angular application, when add ng build step. using docker runner.

my .gitlab-ciyml looks this:

stages:   - build image: tvl/gitlab-node-runner:latest build:   stage: build   script:     - 'npm install' #    - 'ng build --prod'     - 'pwd'     - 'pwd'     - 'pwd'     - 'pwd' 

the pwd lines added debug. when add ng build --prod step, finishes job (it runs commands , builds), build never finished - say, status in gitlab indicates 'running 1930 minutes , 5 seconds'. had additional commands deploy docker, , these run , container spun up.

[sic]   68% building modules 487/487 modules 0 active        79% module , chunk tree optimization                    80% module reviving 81% module order optimization    82% module id optimization         83% chunk reviving 84% chunk order optimization    85% chunk id optimization               86% hashing 87% module assets processing  88% chunk assets processing 89% additional chunk assets processing                          90% recording 91% additional asset processing    92% chunk asset optimization       94% asset optimization           95% emitting             hash: 9f92d63fba4ffca06ebd time: 20203ms chunk    {0} polyfills.2d45a4c73c85e24fe474.bundle.js (polyfills) 158 kb {4} [initial] [rendered] chunk    {1} main.d8efb39cb35fc9a55d36.bundle.js (main) 69.2 kb {3} [initial] [rendered] chunk    {2} styles.dbfc2b033acc59bb319f.bundle.css (styles) 69 bytes {4} [initial] [rendered] chunk    {3} vendor.0d3d64c793f45b4d7693.bundle.js (vendor) 1.9 mb [initial] [rendered] chunk    {4} inline.164b3a3f930a3c22cf14.bundle.js (inline) 0 bytes [entry] [rendered] $ pwd /builds/smarthome/asgard2 $ pwd /builds/smarthome/asgard2 $ pwd /builds/smarthome/asgard2 $ pwd /builds/smarthome/asgard2 

does have idea why or how debug it?

for reference, node runner created this:

from node run echo deb http://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list && \ apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118e89f3a912897c070adbf76221572c52609d && \ apt-get update && \ apt-get install -y docker-engine run npm install -g @angular/cli 

i fixed issue. changed build command to:

ng build --progress=false 

this causes angular cli produce less output. i'm not sure why gitlab-cli hangs due this.


Comments