refactor: rename project
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1070,7 +1070,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
|
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sb-ruleset-sync"
|
name = "sbrs"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "sb-ruleset-sync"
|
name = "sbrs"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
sb-ruleset-sync:
|
sbrs:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./docker/Dockerfile
|
dockerfile: ./docker/Dockerfile
|
||||||
container_name: sb-ruleset-sync
|
container_name: sbrs
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -42,7 +42,7 @@ RUN addgroup -S -g ${PGID} app && \
|
|||||||
adduser -S -u ${PUID} -G app -h /app app
|
adduser -S -u ${PUID} -G app -h /app app
|
||||||
|
|
||||||
# Copy the compiled binary from the builder stage
|
# Copy the compiled binary from the builder stage
|
||||||
COPY --from=builder /app/target/release/sb-ruleset-sync /usr/local/bin/ruleset-sync
|
COPY --from=builder /app/target/release/sbrs /usr/local/bin/ruleset-sync
|
||||||
|
|
||||||
# Copy the entrypoint script
|
# Copy the entrypoint script
|
||||||
COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use sb_ruleset_sync::cli::Args;
|
use sbrs::cli::Args;
|
||||||
use tracing::error;
|
use tracing::error;
|
||||||
use tracing_subscriber::fmt::time::LocalTime;
|
use tracing_subscriber::fmt::time::LocalTime;
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ async fn main() -> Result<()> {
|
|||||||
|
|
||||||
// We construct a filter that applies the log level to our crate,
|
// We construct a filter that applies the log level to our crate,
|
||||||
// but keeps other crates at a higher level (e.g., info) to reduce noise.
|
// but keeps other crates at a higher level (e.g., info) to reduce noise.
|
||||||
let filter = format!("sb_ruleset_sync={}", log_level);
|
let filter = format!("sbrs={}", log_level);
|
||||||
|
|
||||||
tracing_subscriber::fmt()
|
tracing_subscriber::fmt()
|
||||||
.with_env_filter(filter)
|
.with_env_filter(filter)
|
||||||
@ -28,7 +28,7 @@ async fn main() -> Result<()> {
|
|||||||
.init();
|
.init();
|
||||||
|
|
||||||
// 3. Execute the main application logic.
|
// 3. Execute the main application logic.
|
||||||
if let Err(e) = sb_ruleset_sync::run(args).await {
|
if let Err(e) = sbrs::run(args).await {
|
||||||
// Log the final error in a structured way before exiting.
|
// Log the final error in a structured way before exiting.
|
||||||
error!(error = ?e, "Application failed");
|
error!(error = ?e, "Application failed");
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
|
Reference in New Issue
Block a user