From c106567d3c0e91bf237eed174b92cc294ec696cf Mon Sep 17 00:00:00 2001 From: Radu Marias Date: Wed, 24 Apr 2024 17:58:50 +0300 Subject: [PATCH] fix docker minor doc changes --- Dockerfile | 20 ++++++++++---------- README.md | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96f3adf8..2f9929a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,18 +9,18 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y RUN . ~/.cargo/env && rustup target add x86_64-unknown-linux-musl # Cache downloaded+built dependencies -COPY Cargo.toml Cargo.lock /usr/src/encryptedfs/ -RUN mkdir /usr/src/encryptedfs/src && \ - echo 'fn main() {}' > /usr/src/encryptedfs/src/main.rs +COPY Cargo.toml Cargo.lock /usr/src/rencfs/ +RUN mkdir /usr/src/rencfs/src && \ + echo 'fn main() {}' > /usr/src/rencfs/src/main.rs -RUN . ~/.cargo/env && cd /usr/src/encryptedfs/ && cargo build --release && \ - rm -Rvf /usr/src/encryptedfs/src +RUN . ~/.cargo/env && cd /usr/src/rencfs/ && cargo build --release && \ + rm -Rvf /usr/src/rencfs/src # Build our actual code -COPY src /usr/src/encryptedfs/src -RUN touch /usr/src/encryptedfs/src/main.rs +COPY src /usr/src/rencfs/src +RUN touch /usr/src/rencfs/src/main.rs RUN . ~/.cargo/env && \ - cd /usr/src/encryptedfs/ && \ + cd /usr/src/rencfs/ && \ cargo build --target x86_64-unknown-linux-musl --release ################ @@ -30,7 +30,7 @@ FROM alpine:3.16.0 AS runtime RUN apk add fuse3 # Copy application binary from builder image -COPY --from=builder /usr/src/encryptedfs/target/x86_64-unknown-linux-musl/release/encryptedfs /usr/local/bin +COPY --from=builder /usr/src/rencfs/target/x86_64-unknown-linux-musl/release/rencfs /usr/local/bin # Run the application -CMD ["encryptedfs", "--help"] +CMD ["rencfs", "--help"] diff --git a/README.md b/README.md index 56705192..5199af1b 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ You can check the available ciphers with `rencfs --help`. Default values are `ChaCha20` and `600_000` respectively. ### Log level + You can specify the log level adding the `--log-level` argument to the command line. Possible values: `TRACE`, `DEBUG`, `INFO` (default), `WARN`, `ERROR`. ```bash @@ -84,6 +85,8 @@ You can specify the log level adding the `--log-level` argument to the command l ``` ## Start it in docker + +Get the image ```bash docker pull xorio42/rencfs ```