-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "encryptedfs" | ||
description = "An encrypted file system that mounts with FUSE on Linux. It can be used to create encrypted directories." | ||
version = "0.1.22" | ||
version = "0.1.23" | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
authors = ["Radu Marias <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
################ | ||
##### Builder | ||
FROM alpine:3.16.0 as builder | ||
|
||
RUN apk add binutils build-base ca-certificates curl file g++ gcc libressl-dev make patch postgresql rust | ||
|
||
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 | ||
|
||
RUN . ~/.cargo/env && cd /usr/src/encryptedfs/ && cargo build --release && \ | ||
rm -Rvf /usr/src/encryptedfs/src | ||
|
||
# Build our actual code | ||
COPY src /usr/src/encryptedfs/src | ||
RUN touch /usr/src/encryptedfs/src/main.rs | ||
RUN . ~/.cargo/env && \ | ||
cd /usr/src/encryptedfs/ && \ | ||
cargo build --target x86_64-unknown-linux-musl --release | ||
|
||
################ | ||
##### Runtime | ||
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 | ||
|
||
# Run the application | ||
CMD ["encryptedfs", "--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters