Skip to content

Commit

Permalink
bump version to 0.3.0-rc6
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarleanu committed Oct 19, 2021
1 parent 37150dd commit 06cff72
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
18 changes: 7 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04 AS build
FROM ubuntu:21.04 AS build

ARG DEBIAN_FRONTEND=noninteractive

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

FROM ubuntu:20.04 AS release
FROM ubuntu:21.04 AS release
ENV RUST_BACKTRACE=full
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV SSL_CERT_DIR=/etc/ssl/certs
ENV DEBIAN_FRONTEND=noninteractive

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

COPY --from=build /src/dim/target/release/dim /opt/dim/dim
COPY --from=build /src/dim/start.sh /opt/dim/start.sh

RUN mkdir /opt/dim/utils
RUN ln -s /usr/bin/ffmpeg /opt/dim/utils/ffmpeg
RUN ln -s /usr/bin/ffprobe /opt/dim/utils/ffprobe

RUN chmod +x /opt/dim/start.sh
COPY --from=build /src/dim/utils/ffmpeg /opt/dim/utils/ffmpeg
COPY --from=build /src/dim/utils/ffprobe /opt/dim/utils/ffprobe

EXPOSE 8000
VOLUME ["/opt/dim/transcoding", "/opt/dim/config"]
CMD ["/opt/dim/start.sh"]
CMD ["/opt/dim/dim"]
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Dim is a self hosted media manager. With minimal setup, Dim will organize and be

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

## Running from source
### Dependencies
Expand All @@ -20,6 +22,9 @@ Dim is a self hosted media manager. With minimal setup, Dim will organize and be
* rustc (nightly)
* yarn, npm
* libssl-dev
* libva
* libva-dev
* libva-drm
* ffmpeg

You can then clone the repository and build dim with the following commands:
Expand Down
4 changes: 2 additions & 2 deletions dim/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dim"
version = "0.3.0-rc5"
version = "0.3.0-rc6"
build = "src/build.rs"
authors = ["Valerian G. <[email protected]>"]
edition = "2018"
Expand All @@ -23,7 +23,7 @@ serde_json = "^1.0.64"
database = { path = "../database", default-features = false, optional = true }
events = { path = "../events" }
auth = { path = "../auth" }
nightfall = { git = "https://github.com/Dusk-Labs/nightfall", tag = "0.3.7" }
nightfall = { git = "https://github.com/Dusk-Labs/nightfall", tag = "0.3.10" }

lazy_static = "1.4.0"
walkdir = "2.3.1"
Expand Down

0 comments on commit 06cff72

Please sign in to comment.