Browse Source
Merge pull request #10358 from smatvienko-tb/feature/yarn_install_multi
Parallel and multiarch build on clean environment for yarn install
pull/10366/head
Viacheslav Klimov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with
5 additions and
5 deletions
-
msa/js-executor/docker/Dockerfile
-
msa/js-executor/pom.xml
-
msa/web-ui/docker/Dockerfile
-
msa/web-ui/pom.xml
-
ui-ngx/pom.xml
|
|
|
@ -35,7 +35,7 @@ COPY src/server.js ./ |
|
|
|
RUN chmod a+x /tmp/*.sh \ |
|
|
|
&& mv /tmp/start-js-executor.sh /usr/bin \ |
|
|
|
&& chown -R node:node ${pkg.installFolder} \ |
|
|
|
&& yarn install --production && yarn cache clean --all |
|
|
|
&& yarn install --production --non-interactive --network-concurrency 4 --network-timeout 100000 --mutex network && yarn cache clean --all |
|
|
|
|
|
|
|
USER node |
|
|
|
|
|
|
|
|
|
|
|
@ -81,7 +81,7 @@ |
|
|
|
<goal>yarn</goal> |
|
|
|
</goals> |
|
|
|
<configuration> |
|
|
|
<arguments>install</arguments> |
|
|
|
<arguments>install --non-interactive --network-concurrency 4 --network-timeout 100000 --mutex network</arguments> |
|
|
|
</configuration> |
|
|
|
</execution> |
|
|
|
<execution> |
|
|
|
|
|
|
|
@ -34,7 +34,7 @@ COPY src/server.js ./ |
|
|
|
RUN chmod a+x /tmp/*.sh \ |
|
|
|
&& mv /tmp/start-web-ui.sh /usr/bin \ |
|
|
|
&& chown -R node:node ${pkg.installFolder} \ |
|
|
|
&& yarn install --production && yarn cache clean --all |
|
|
|
&& yarn install --production --non-interactive --network-concurrency 4 --network-timeout 100000 --mutex network && yarn cache clean --all |
|
|
|
|
|
|
|
USER node |
|
|
|
|
|
|
|
|
|
|
|
@ -90,7 +90,7 @@ |
|
|
|
<goal>yarn</goal> |
|
|
|
</goals> |
|
|
|
<configuration> |
|
|
|
<arguments>install</arguments> |
|
|
|
<arguments>install --non-interactive --network-concurrency 4 --network-timeout 100000 --mutex network</arguments> |
|
|
|
</configuration> |
|
|
|
</execution> |
|
|
|
<execution> |
|
|
|
|
|
|
|
@ -66,7 +66,7 @@ |
|
|
|
<goal>yarn</goal> |
|
|
|
</goals> |
|
|
|
<configuration> |
|
|
|
<arguments>install</arguments> |
|
|
|
<arguments>install --non-interactive --network-concurrency 4 --network-timeout 100000 --mutex network</arguments> |
|
|
|
</configuration> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
|