-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into etolbakov/grafana-tracing-support
- Loading branch information
Showing
172 changed files
with
15,231 additions
and
9,047 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "Quickwit", | ||
"image": "mcr.microsoft.com/devcontainers/rust:latest", | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": [ | ||
"CONTRIBUTING.md" | ||
] | ||
}, | ||
"vscode": { | ||
"extensions": [ | ||
"rust-lang.rust-analyzer" | ||
] | ||
} | ||
}, | ||
"hostRequirements": { | ||
"cpus": 4, | ||
"memory": "16gb" | ||
}, | ||
"runArgs": [ | ||
"--init" | ||
], | ||
"mounts": [ | ||
{ | ||
"source": "/var/run/docker.sock", | ||
"target": "/var/run/docker.sock", | ||
"type": "bind" | ||
} | ||
], | ||
"features": { | ||
"docker-from-docker": { | ||
"version": "latest", | ||
"moby": true | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "18" | ||
}, | ||
"ghcr.io/devcontainers/features/aws-cli:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/protoc:1": {} | ||
}, | ||
"postCreateCommand": ".devcontainer/post-create.sh" | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
# Define success and error color codes | ||
SUCCESS_COLOR="\e[32m" | ||
ERROR_COLOR="\e[31m" | ||
RESET_COLOR="\e[0m" | ||
|
||
# Define success tracking variables | ||
rustupToolchainNightlyInstalled=false | ||
cmakeInstalled=false | ||
|
||
|
||
# Define installation functions | ||
|
||
#Installing manually for now until we figure out why "ghcr.io/devcontainers-community/features/cmake": {} is not working | ||
install_cmake() { | ||
echo -e "Installing CMake..." | ||
sudo apt-get update | ||
sudo apt-get install -y cmake > /dev/null 2>&1 | ||
if [[ "$(cmake --version)" =~ "cmake version" ]]; then | ||
echo -e "${SUCCESS_COLOR}CMake installed successfully.${RESET_COLOR}" | ||
cmakeInstalled=true | ||
else | ||
echo -e "${ERROR_COLOR}CMake installation failed. Please install it manually.${RESET_COLOR}" | ||
fi | ||
} | ||
|
||
install_rustup_toolchain_nightly() { | ||
echo -e "Installing Rustup nightly toolchain..." | ||
rustup toolchain install nightly > /dev/null 2>&1 | ||
rustup component add rustfmt --toolchain nightly > /dev/null 2>&1 | ||
if [[ "$(rustup toolchain list)" =~ "nightly" && "$(rustup component list --toolchain nightly | grep rustfmt)" =~ "installed" ]]; then | ||
echo -e "${SUCCESS_COLOR}Rustup nightly toolchain and rustfmt installed successfully.${RESET_COLOR}" | ||
rustupToolchainNightlyInstalled=true | ||
else | ||
echo -e "${ERROR_COLOR}Rustup nightly toolchain and/or rustfmt installation failed. Please install them manually.${RESET_COLOR}" | ||
fi | ||
} | ||
|
||
# Install tools | ||
install_cmake | ||
install_rustup_toolchain_nightly | ||
|
||
# Copy our custom welcome message to replace the default github welcome message | ||
sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt | ||
|
||
|
||
# Check the success tracking variables | ||
if $rustupToolchainNightlyInstalled && $cmakeInstalled; then | ||
echo -e "${SUCCESS_COLOR}All tools installed successfully.${RESET_COLOR}" | ||
else | ||
echo -e "${ERROR_COLOR}One or more tools failed to install. Please check the output for errors and install the failed tools manually.${RESET_COLOR}" | ||
fi |
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
👋 Welcome to the project! | ||
All the necessary tools have already been installed for you 🎉. | ||
You can go ahead and start hacking! Happy coding💻. | ||
|
||
Here are some useful commands you can run: | ||
|
||
🔧 `make test-all` - starts necessary Docker services and runs all tests. | ||
🔧 `make -k test-all docker-compose-down` - the same as above, but tears down the Docker services after running all the tests. | ||
🔧 `make fmt` - runs formatter, this command requires the nightly toolchain to be installed by running `rustup toolchain install nightly`. | ||
🔧 `make fix` - runs formatter and clippy checks. | ||
🔧 `make typos` - runs the spellcheck tool over the codebase. (Install by running `cargo install typos`) | ||
🔧 `make build-docs` - builds docs. | ||
🔧 `make docker-compose-up` - starts Docker services. | ||
🔧 `make docker-compose-down` - stops Docker services. | ||
🔧 `make docker-compose-logs` - shows Docker logs. | ||
|
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -136,12 +136,14 @@ Our business model relies on our commercial license. There is no plan to become | |
|
||
We are always thrilled to receive contributions: code, documentation, issues, or feedback. Here's how you can help us build the future of log management: | ||
|
||
- Check out the [GitHub issues labeled "Good first issue"](https://github.com/quickwit-oss/quickwit/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) for a great place to start. | ||
- Familiarize yourself with our [Contributor Covenant Code of Conduct](https://github.com/quickwit-oss/quickwit/blob/0add0562f08e4edd46f5c5537e8ef457d42a508e/CODE_OF_CONDUCT.md). | ||
- Delve into our [contributing guide](CONTRIBUTING.md). | ||
- [Create a fork of Quickwit](https://github.com/quickwit-oss/quickwit/fork) and submit your pull request! | ||
|
||
✨ And to thank you for your contributions, claim your swag by emailing us at [email protected]. | ||
- Start by checking out the [GitHub issues labeled "Good first issue"](https://github.com/quickwit-oss/quickwit/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). These are a great place for newcomers to contribute. | ||
- Read our [Contributor Covenant Code of Conduct](./CODE_OF_CONDUCT.md) to understand our community standards. | ||
- [Create a fork of Quickwit](https://github.com/quickwit-oss/quickwit/fork) to have your own copy of the repository where you can make changes. | ||
- To understand how to contribute, read our [contributing guide](./CONTRIBUTING.md). | ||
- Set up your development environment following our [development setup guide](./CONTRIBUTING.md#development). | ||
- Once you've made your changes and tested them, you can contribute by [submitting a pull request](./CONTRIBUTING.md#submitting-a-pr). | ||
|
||
✨ After your contributions are accepted, don't forget to claim your swag by emailing us at [email protected]. Thank you for contributing! | ||
|
||
# 💬 Join Our Community | ||
|
||
|
This file contains 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
This file contains 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,11 @@ | ||
version: 0.6 | ||
node_id: searcher-1 | ||
listen_address: 127.0.0.1 | ||
rest_listen_port: 7280 | ||
rest: | ||
listen_port: 7280 | ||
ingest_api: | ||
max_queue_memory_usage: 4GiB | ||
max_queue_disk_usage: 8GiB | ||
peer_seeds: | ||
- 127.0.0.1:7290 # searcher-2 | ||
- 127.0.0.1:7300 # searcher-3 |
This file contains 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,8 @@ | ||
version: 0.6 | ||
node_id: searcher-2 | ||
listen_address: 127.0.0.1 | ||
rest_listen_port: 7290 | ||
rest: | ||
listen_port: 7290 | ||
peer_seeds: | ||
- 127.0.0.1:7280 # searcher-1 | ||
- 127.0.0.1:7300 # searcher-3 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.