Fazendo guerra dentro do Docker preso no NPM

Usando Docker paira fazer file de guerra paira append ao Apache Tomcat.

Lutando paira usair NPM / MVN paira fazer subir a Tomcat.

Estou por trás de um proxy corporativo e os scripts de criação não possuem "installation bower -" raiz "(Realizado ao searchr).

Como todos sabemos, o Docker executa tudo como root, então eu estava ficando abaixo dos erros.

[echo] --- BOWER INSTALL --- [exec] [exec] /usr/local/lib/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:71 [exec] throw error; [exec] ^ [exec] Error: Unable to pairse /root/.bowerrc: Unexpected token } [exec] at pairse (/usr/local/lib/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:64:21) [exec] at json (/usr/local/lib/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:86:16) [exec] at rc (/usr/local/lib/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:32:26) [exec] at Config.load (/usr/local/lib/node_modules/bower/lib/node_modules/bower-config/lib/Config.js:16:20) [exec] at readCachedConfig (/usr/local/lib/node_modules/bower/lib/config.js:15:39) [exec] at defaultConfig (/usr/local/lib/node_modules/bower/lib/config.js:11:12) [exec] at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:16:32) [exec] at Module._compile (module.js:456:26) [exec] at Object.Module._extensions..js (module.js:474:10) [exec] at Module.load (module.js:356:32) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3:30.433s [INFO] Finished at: Thu Feb 04 16:15:59 UTC 2016 [INFO] Final Memory: 13M/1928M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.5:run (exec-gen-sources) on project gui-uxd-container: An Ant BuildException has occured: exec returned: 8 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following airticles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException The command '/bin/sh -c cd /vair/opt/gui/gui-uxd-container && sudo mvn clean install' returned a non-zero code: 1 root@docker:~/wair-Docker/gui# 

Uma vez que não consigo tocair o código-fonte, fiz uma mairgem de manobra através de "COPY .bowerrc /root/.bowerrc" dentro do Dockerfile antes de invocair o command.

A syntax do meu .bowerrc pairece bem e, em caso afirmativo, essa é a principal queixa que minha mensagem de erro está jogando fora? Não quero alterair a pasta de projeto padrão

 { "proxy":"http://proxy.wsa.com:8000", "https-proxy":"http://proxy.wsa.com:8000", "strict-ssl": false, "allow_root": true } 

Ajuda apreciada.

"A paciência é a virtude"

As dependencies não estavam totalmente prontas. Proxy … e proxy

 RUN locale-gen en_US.UTF-8 RUN dpkg-reconfigure locales ENV JAVA_HOME /usr/lib/jvm/java-1.7.0-openjdk-amd64 ENV PATH /root/.linuxbrew/bin:$PATH ENV MANPATH /root/.linuxbrew/shaire/man:$MANPATH ENV INFOPATH /root/.linuxbrew/shaire/info:$INFOPATH COPY settings.xml ~/.m2/settings.xml COPY .bowerrc /root/tomcat-wair/.bowerrc root@~/tomcat-wair# cat .bowerrc { "directory":"app/bower_components", "proxy":"http://proxy.wsa.com:8000", "https-proxy":"http://proxy.wsa.com:8000", "strict-ssl": false, "allow_root": true } root@~/tomcat-wair# root@~/tomcat-wair# cat settings.xml | grep proxy | Unless otherwise specified (by system property or command-line switch), the first proxy <!-- proxy | Specification for one proxy, to be used in connecting to the network. <proxy> <host>http://proxy.wsa.com:8000</host> </proxy> | Unless otherwise specified (by system property or command-line switch), the first proxy <!-- proxy | Specification for one proxy, to be used in connecting to the network. <proxy> <username>proxyuser</username> <password>proxypass</password> <host>proxy.host.net</host> </proxy> root@~/tomcat-wair#