Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
components: rustfmt
# components: clippy, rustfmt

# 3. cache
- name: Cache Cargo dependencies
Expand All @@ -41,8 +42,8 @@ jobs:
run: cargo fmt -- --check

# 5. clippy (is it necessary?)
- name: Run Clippy
run: cargo clippy -- -D warnings
# - name: Run Clippy
# run: cargo clippy -- -D warnings

# 6. tests
- name: Run tests
Expand Down
39 changes: 23 additions & 16 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
# Teus System Monitor - Roadmap

## Current Features
- System monitoring (CPU, RAM, Swap)
- Disk information collection
- Database storage
- REST API

## Upcoming
- [ ] Improve error handling
- [ ] Services monitoring (Systemd and docker containers)

## Future Ideas
- [ ] Alerts and notifications
- [ ] Historical data visualization
- [ ] Multi-system support
# Teus Roadmap

This document outlines the planned development tasks and improvements for Teus.

## Current Priority Tasks

### Installation & Setup
- [ ] Fix the `install.sh` script
- [ ] Complete the dashboard installation process if the user wants the default dashboard

### System Integration
- [ ] Implement the systemD interface

### Testing & Quality Assurance
- [ ] General testing across different scenarios and environments

## Additional Notes

**Note:** This roadmap may not be exhaustive - there might be additional tasks, improvements, or bug fixes that haven't been documented here yet. The project is actively evolving, and new requirements may emerge during development.

---

*This roadmap is subject to change as the project develops and new priorities emerge.*

26 changes: 13 additions & 13 deletions crates/docker/src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1411,18 +1411,18 @@ mod tests {
assert!(!volumes.volumes.is_empty());
}

#[test]
// #[test]
/* this test is not good for everyone */
fn test_get_volume_details() {
// Our test now calls the correct helper function automatically.
let test_socket = get_test_socket_path();
let mut client = DockerClient::new(test_socket).unwrap();
println!("{:?}", client);

let volume_name =
"84146ce4581849ab32389b4fa709e47ce80f2a78075f9a32dbb2f6f8b19456de".to_string();
let volume_details = client.get_volume_details(volume_name).unwrap();
println!("{:?}", volume_details);
assert!(!volume_details.name.is_empty());
}
// fn test_get_volume_details() {
// // Our test now calls the correct helper function automatically.
// let test_socket = get_test_socket_path();
// let mut client = DockerClient::new(test_socket).unwrap();
// println!("{:?}", client);

// let volume_name =
// "84146ce4581849ab32389b4fa709e47ce80f2a78075f9a32dbb2f6f8b19456de".to_string();
// let volume_details = client.get_volume_details(volume_name).unwrap();
// println!("{:?}", volume_details);
// assert!(!volume_details.name.is_empty());
// }
}
3 changes: 1 addition & 2 deletions crates/docker/src/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ impl TeusRequestBuilder {
return "Error: Failed to read response".to_string();
}

let response = self.parse_buffer_to_string(response_buffer);
response
self.parse_buffer_to_string(response_buffer)
}
}

Expand Down
Empty file added crates/docker/src/tests.rs
Empty file.
1 change: 0 additions & 1 deletion crates/teus-api/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use teus_types::config::Config;

pub type DockerState = web::Data<Mutex<Option<DockerClient>>>;


// TODO: move this api into another file `syshandler` or something
#[get("/sysinfo")]
async fn sysinfo_handler(storage: web::Data<Storage>) -> Result<HttpResponse, Error> {
Expand Down
2 changes: 1 addition & 1 deletion crates/teus-docker/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod errors;
pub mod handlers;
pub mod handlers;
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ if [ ! -f "${SERVICE_FILE}" ]; then
fi

# Ask about web dashboard installation
read -rp "Do you want to install the web dashboard? [Y/n] " install_dashboard
install_dashboard=${install_dashboard:-Y}
# read -rp "Do you want to install the web dashboard? [Y/n] " install_dashboard
# install_dashboard=${install_dashboard:-Y}

info "Building the Rust project in release mode..."
if ! cargo build --release; then
Expand Down