-
Notifications
You must be signed in to change notification settings - Fork 456
[CDRIVER-6142] Refactor dependency/environment setup in Earthfile #2165
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
Open
vector-of-bool
wants to merge
21
commits into
mongodb:master
Choose a base branch
from
vector-of-bool:CDRIVER-6142-earthfile-refactor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a035401
Consolidate several small scripts into a single __tool
vector-of-bool 5f4b103
Significant Earthfile refactor
vector-of-bool 7b73e94
Update Earthly-generated tasks
vector-of-bool c22a137
Simplify some path handling in Earthfile
vector-of-bool f488eab
Fix: Allow Ccache to cache properly in Earthly targets
vector-of-bool 358a337
Split out an +init target
vector-of-bool ec044b1
Update Earthly target documentation
vector-of-bool e5d322f
Rearrange some Earthly documentation
vector-of-bool 31e88f8
Fix: Wrong build paths to +verify-headers
vector-of-bool bdd5741
Add Ubuntu 24.04
vector-of-bool 71ffffc
Enable building both with/without Snappy in Earthly
vector-of-bool 1f7d32a
Tasks with/without Snappy
vector-of-bool 082ca14
Merge branch 'master' into CDRIVER-6142-earthfile-refactor
vector-of-bool e2308aa
Minor commentary tweaks following PR comments
vector-of-bool 59829fc
Add a trailhead for obtaining the detailed Earthfile documentation
vector-of-bool 9a6eb17
Refactor Earthly C++ installation to rely on the same C compiler param
vector-of-bool 0a5ba4f
Fix environment setup when the C package provides C++
vector-of-bool f0c64eb
Better documentation on the __tool script
vector-of-bool d43510e
Drop use of Yum in __install
vector-of-bool 792509e
Add a __download for checked downloads
vector-of-bool e36ac20
Tweak devdocs convenience destination
vector-of-bool File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| VERSION --arg-scope-and-set --pass-args --use-function-keyword 0.7 | ||
|
|
||
| # Example use: <earthly> +build --from=ubuntu:22.04 --sasl=off --tls=OpenSSL --c_compiler=gcc | ||
| # (For target names, descriptions, and build parameters, run the "doc" Earthly subcommand.) | ||
| # Example use: <earthly> +build --from=ubuntu:22.04 --sasl=off --tls=OpenSSL --compiler=gcc | ||
| # | ||
| # For target names, descriptions, and build parameters, run the "doc" Earthly subcommand. | ||
| # For more detailed documentation, use to the "devdocs" target in this file (ctrl+f "devdocs:"), | ||
| # and read the resulting "Earthly" page that is generated. | ||
|
|
||
| # Allow setting the "default" container image registry to use for image short names (e.g. to Amazon ECR). | ||
| ARG --global default_search_registry=docker.io | ||
|
|
@@ -400,6 +403,29 @@ do-verify-headers-impl: | |
| # by CMake for the VERIFY_INTERFACE_HEADER_SETS target property. | ||
| RUN cmake --build $__build_dir --target all_verify_interface_header_sets | ||
|
|
||
| # devdocs : | ||
| # Builds the developer documentation pages as HTML, and writes the resulting pages into | ||
| # `_build/devdocs` on the host for browsing. | ||
|
||
| # | ||
| # After building the devdocs, you can read them in a browser with the following command: | ||
| # | ||
| # $ python -m http.server --directory _build/devdocs/ | ||
| # | ||
| # Which will start a local HTTP server that serves the documentation pages. | ||
| devdocs: | ||
| FROM +init --from=alpine:3.20 | ||
| # Warmup the UV cache | ||
| RUN uvx --from=sphinx sphinx-build --version | ||
| # Copy in the required files | ||
| COPY VERSION_CURRENT $__source_dir/ | ||
| # Docs in the appropriate subdirectory: | ||
| LET docs_dir = $__source_dir/docs/dev | ||
| COPY --dir docs/dev $docs_dir | ||
| # Build the documentation, using uvx to install Sphinx on-the-fly | ||
| RUN uvx --from=sphinx sphinx-build $docs_dir $docs_dir/_build --builder=dirhtml | ||
| # Copy the build HTML pages to the host | ||
| SAVE ARTIFACT $docs_dir/_build AS LOCAL _build/devdocs | ||
|
|
||
| # run : | ||
| # Run one or more targets simultaneously. | ||
| # | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.