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
parent
commit
92cd231034
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      msa/js-executor/docker/Dockerfile
  2. 2
      msa/js-executor/pom.xml
  3. 2
      msa/web-ui/docker/Dockerfile
  4. 2
      msa/web-ui/pom.xml
  5. 2
      ui-ngx/pom.xml

2
msa/js-executor/docker/Dockerfile

@ -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

2
msa/js-executor/pom.xml

@ -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>

2
msa/web-ui/docker/Dockerfile

@ -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

2
msa/web-ui/pom.xml

@ -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>

2
ui-ngx/pom.xml

@ -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>

Loading…
Cancel
Save