Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: re-split build vs configure #878

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

featheredtoast
Copy link
Member

Allow for assets to be precompiled fully in a build image.

The only remaining things for configure is update themes, maxmind download, and css compiling.

Moves ~30 seconds of work from a configure step to a build step, allowing for very quick precompile-on-boot times.

Dev:

  • Update web template test from golang to be a symlink.
  • Ensure restarting of the unicorn service on migrate/precompile failure

@featheredtoast featheredtoast force-pushed the update-build-compile-steps branch from b678c85 to ce87230 Compare October 7, 2024 22:28
@featheredtoast featheredtoast changed the title DEV: re-split build vs compile DEV: re-split build vs configure Oct 11, 2024
@featheredtoast
Copy link
Member Author

@tgxworld this one allows for precompiling of most assets without connecting to any DBs, leading to very little downtime or changes in base configure stages.

This means the resulting docker layer is much thinner and those booting up from cold boot (with an image only run with build) will also be online much faster.

featheredtoast added a commit to discourse/launcher that referenced this pull request Nov 15, 2024
No need to pass SKIP_EMBER_CLI_COMPILE=1 if build/compile split calls different
asset:precompile tasks.

Depends on discourse/discourse_docker#878
@featheredtoast featheredtoast force-pushed the update-build-compile-steps branch from ce87230 to 37670c0 Compare November 15, 2024 22:47
Allow for assets to be precompiled fully in a build image.

The only remaining things for configure is update themes, maxmind download, and css compiling.
@featheredtoast featheredtoast force-pushed the update-build-compile-steps branch from 37670c0 to 03ceb98 Compare November 15, 2024 22:48
@featheredtoast
Copy link
Member Author

The main piece of this work is in the templates. launcher related patches now here: discourse/launcher#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant