Skip to content

Commit 06cff72

Browse files
committed
bump version to 0.3.0-rc6
1 parent 37150dd commit 06cff72

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

Dockerfile

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04 AS build
1+
FROM ubuntu:21.04 AS build
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

@@ -22,23 +22,19 @@ WORKDIR /src/dim
2222
RUN sqlite3 -init /src/dim/database/migrations/*.sql /src/dim/dim_dev.db
2323
RUN DATABASE_URL="sqlite:///src/dim/dim_dev.db" cargo build --release
2424

25-
FROM ubuntu:20.04 AS release
25+
FROM ubuntu:21.04 AS release
2626
ENV RUST_BACKTRACE=full
2727
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
2828
ENV SSL_CERT_DIR=/etc/ssl/certs
29+
ENV DEBIAN_FRONTEND=noninteractive
2930

3031
RUN apt-get update && \
31-
apt-get install -y ffmpeg ca-certificates sudo libsqlite3-dev
32+
apt-get install -y ca-certificates sudo libsqlite3-dev libva2 libva-drm2 libharfbuzz0b libfontconfig libfribidi0 libtheora0 libvorbis0a libvorbisenc2
3233

3334
COPY --from=build /src/dim/target/release/dim /opt/dim/dim
34-
COPY --from=build /src/dim/start.sh /opt/dim/start.sh
35-
36-
RUN mkdir /opt/dim/utils
37-
RUN ln -s /usr/bin/ffmpeg /opt/dim/utils/ffmpeg
38-
RUN ln -s /usr/bin/ffprobe /opt/dim/utils/ffprobe
39-
40-
RUN chmod +x /opt/dim/start.sh
35+
COPY --from=build /src/dim/utils/ffmpeg /opt/dim/utils/ffmpeg
36+
COPY --from=build /src/dim/utils/ffprobe /opt/dim/utils/ffprobe
4137

4238
EXPOSE 8000
4339
VOLUME ["/opt/dim/transcoding", "/opt/dim/config"]
44-
CMD ["/opt/dim/start.sh"]
40+
CMD ["/opt/dim/dim"]

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Dim is a self hosted media manager. With minimal setup, Dim will organize and be
1111

1212
## Running with docker
1313
1. `docker run -d -p 8000:8000/tcp --mount type=bind,source=/media,target=/media vgarleanu/dim:latest`
14+
You can also run dim with hardware accelerated transcoding enabled with:
15+
2. `docker run -d -p 8000:8000/tcp --mount type=bind,source=/media,target=/media --device=/dev/dri/renderD128 vgarleanu/dim:latest`
1416

1517
## Running from source
1618
### Dependencies
@@ -20,6 +22,9 @@ Dim is a self hosted media manager. With minimal setup, Dim will organize and be
2022
* rustc (nightly)
2123
* yarn, npm
2224
* libssl-dev
25+
* libva
26+
* libva-dev
27+
* libva-drm
2328
* ffmpeg
2429

2530
You can then clone the repository and build dim with the following commands:

dim/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dim"
3-
version = "0.3.0-rc5"
3+
version = "0.3.0-rc6"
44
build = "src/build.rs"
55
authors = ["Valerian G. <[email protected]>"]
66
edition = "2018"
@@ -23,7 +23,7 @@ serde_json = "^1.0.64"
2323
database = { path = "../database", default-features = false, optional = true }
2424
events = { path = "../events" }
2525
auth = { path = "../auth" }
26-
nightfall = { git = "https://github.com/Dusk-Labs/nightfall", tag = "0.3.7" }
26+
nightfall = { git = "https://github.com/Dusk-Labs/nightfall", tag = "0.3.10" }
2727

2828
lazy_static = "1.4.0"
2929
walkdir = "2.3.1"

0 commit comments

Comments
 (0)