switch to git2 to reduce amount of deps
This commit is contained in:
parent
6cfaf61246
commit
25562cdc6a
6 changed files with 94 additions and 1531 deletions
1608
Cargo.lock
generated
1608
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -5,7 +5,7 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.5.29", features = ["derive"] }
|
clap = { version = "4.5.29", features = ["derive"] }
|
||||||
gix = "0.70.0"
|
git2 = "0.20.0"
|
||||||
serde = "1.0.217"
|
serde = "1.0.217"
|
||||||
serde_derive = "1.0.217"
|
serde_derive = "1.0.217"
|
||||||
toml = "0.8.20"
|
toml = "0.8.20"
|
||||||
|
|
|
@ -5,6 +5,7 @@ ARG GID="1000"
|
||||||
WORKDIR /usr/src/refractr
|
WORKDIR /usr/src/refractr
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN apt update && apt install pkg-config libssl-dev -y
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
RUN cargo install --locked --path .
|
RUN cargo install --locked --path .
|
||||||
|
|
||||||
|
|
4
build
4
build
|
@ -1,12 +1,12 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Create all the different builds for refractr
|
# Create all the different builds for refractr
|
||||||
set -x
|
|
||||||
version=$(cat Cargo.toml | grep -m1 version | awk -F' ' '{print $3}' | sed 's|"||g')
|
version=$(cat Cargo.toml | grep -m1 version | awk -F' ' '{print $3}' | sed 's|"||g')
|
||||||
|
|
||||||
# docker builds
|
# docker builds
|
||||||
cargo clean
|
cargo clean
|
||||||
docker build -t refractr:$version .
|
docker build -t refractr:$version .
|
||||||
docker tag refractr:$version refractr:$latest
|
docker tag refractr:$version refractr:latest
|
||||||
|
|
||||||
# rust build
|
# rust build
|
||||||
cargo build
|
cargo build
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
mod common;
|
mod common;
|
||||||
mod config;
|
mod config;
|
||||||
|
mod refractr;
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
9
src/refractr.rs
Normal file
9
src/refractr.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
// fn set_up_work_dir(work_dir: String) -> PathBuf {
|
||||||
|
// if
|
||||||
|
// }
|
||||||
|
|
||||||
|
pub fn start() -> std::io::Result<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue