Build with Docker (#562)
This commit is contained in:
parent
74e4ab5263
commit
277bb8b39a
|
@ -43,6 +43,12 @@ Next install Rust from site https://rustup.rs/
|
|||
After that the latest GTK 3 runtime must be installed from https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases
|
||||
-->
|
||||
|
||||
### Docker
|
||||
|
||||
```shell
|
||||
docker build ./misc/docker/ --tag cargo-gtk
|
||||
```
|
||||
|
||||
## Compilation
|
||||
|
||||
Czkawka can be installed with Debug or Release build.
|
||||
|
@ -65,6 +71,17 @@ cargo run --release --bin czkawka_gui
|
|||
cargo run --release --bin czkawka_cli
|
||||
```
|
||||
|
||||
## Compilation with Docker
|
||||
|
||||
```shell
|
||||
docker run -t --rm --volume $PWD:/app --workdir /app cargo-gtk cargo build --release --bin czkawka_gui
|
||||
```
|
||||
|
||||
Run the binary:
|
||||
|
||||
```shell
|
||||
target/release/czkawka_gui
|
||||
```
|
||||
|
||||
## Additional features
|
||||
For now, finding broken audio files is temporary disabled by default, because it crashes when audio libraries are not found on the computer.
|
||||
|
@ -73,4 +90,4 @@ I'm waiting for ability to disable audio playback feature, so after that I will
|
|||
To enable checking for broken audio files, just add ` --all-features`
|
||||
```
|
||||
cargo run --all-features --bin czkawka_cli -- broken -d /home/rafal/ -f "results.txt"
|
||||
```
|
||||
```
|
||||
|
|
12
misc/docker/Dockerfile
Normal file
12
misc/docker/Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM debian:11
|
||||
|
||||
# curl is needed by Rust update tool
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y curl build-essential libgtk-3-dev \
|
||||
&& apt-get clean ; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # Download the latest stable Rust
|
||||
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
RUN cargo --version
|
Loading…
Reference in a new issue