Skip to content

Avoid Yarn install and trace in Docker assets precompilation#11110

Merged
aduth merged 18 commits intomainfrom
aduth-precompile-assets-without-yarn-install
Aug 20, 2024
Merged

Avoid Yarn install and trace in Docker assets precompilation#11110
aduth merged 18 commits intomainfrom
aduth-precompile-assets-without-yarn-install

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Aug 19, 2024

🛠 Summary of changes

Updates Dockerfiles to avoid unnecessary effort during assets precompilation:

  • Yarn installation
  • Debugging backtrace

assets:precompile will call yarn install by default unless disabled by SKIP_YARN_INSTALL.

See other references:

SKIP_YARN_INSTALL: 'true'

SKIP_YARN_INSTALL=true bundle exec rake assets:precompile

📜 Testing Plan

Verify build passes.

Check logs for "build-idp-image" and "build-review-image" in CI and observe no installation logging during assets precompilation.

changelog: lnternal, Continuous Integration, Improve performance of install step in continuous integration images
@aduth aduth requested a review from mitchellhenke August 19, 2024 14:18
@aduth aduth marked this pull request as draft August 19, 2024 14:56
@aduth aduth marked this pull request as ready for review August 20, 2024 16:04
@aduth aduth merged commit 4a8d45d into main Aug 20, 2024
@aduth aduth deleted the aduth-precompile-assets-without-yarn-install branch August 20, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants