diff --git a/Cargo.lock b/Cargo.lock index fcf5c89..5b96d86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1046,7 +1046,7 @@ dependencies = [ [[package]] name = "kordophoned" -version = "1.0.0" +version = "1.0.1" dependencies = [ "anyhow", "async-trait", diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..19840b8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM fedora:40 + +RUN dnf update -y && \ + dnf install -y \ + curl \ + gcc \ + gcc-c++ \ + make \ + openssl-devel \ + sqlite-devel \ + dbus-devel \ + systemd-devel \ + rpm-build \ + && dnf clean all + +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +ENV PATH="/root/.cargo/bin:${PATH}" + +RUN cargo install cargo-generate-rpm + +WORKDIR /workspace + +COPY . . + +CMD ["make", "rpm"] + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a3936f0 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ + +.PHONY: all +all: + cargo build + +.PHONY: release +release: + cargo build --release + +.PHONY: rpm +rpm: + cargo build --release --workspace + strip -s target/release/kordophoned + strip -s target/release/kpcli + cargo generate-rpm -p kordophoned +