Installation
There are two primary ways to install and run Argus: using Docker (recommended for most users) or by building from source (ideal for developers and contributors).
Using Docker (Recommended)
The quickest and most reliable way to get Argus running is with Docker and Docker Compose. This approach isolates dependencies and simplifies the setup process.
Prerequisites
- Docker: Install Docker Engine and Docker Compose.
- Git: To clone the repository.
Setup
-
Clone the repository:
git clone https://github.com/isSerge/argus-rs cd argus-rs
-
Configure Secrets: Argus uses a
.env
file to manage secrets for actions. Copy the example file to create your own.cp .env.example .env
Now, open the
.env
file and fill in the required tokens and webhook URLs for the actions you plan to use. -
Create Data Directory: The Docker Compose setup is configured to persist the application's database in a local
data
directory.mkdir -p data
With these steps complete, you are ready to run the application. See the Quick Start guide for instructions on how to run your first monitor.
Building from Source (for local development)
This method is for users who want to build the project from source code, for example, to contribute to development or to run it without Docker.
Prerequisites
Before you begin, ensure you have the following tools installed on your system:
-
Rust: Argus is built in Rust. If you don't have the Rust toolchain installed, you can get it from the official rust-lang.org website. The standard installation via
rustup
is recommended.# Example installation command (see website for latest) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Git: You will need Git to clone the repository.
-
sqlx-cli
: Argus usessqlx
for database migrations. You'll need to install the companion CLI tool to prepare the database. You can install it usingcargo
:cargo install sqlx-cli
Compiling
Once the prerequisites are in place, you can clone the repository and build the project.
-
Clone the repository:
git clone https://github.com/isSerge/argus-rs cd argus-rs
-
Build the project in release mode:
This command compiles an optimized binary for production use.
cargo build --release
The final binary will be located at
target/release/argus
.
Next Steps
With Argus successfully compiled, the next step is to set up your configuration files and prepare the database. This is covered in the Quick Start guide.