Skip to content

Commit 431269c

Browse files
authored
Add debian Dockerfile (#62)
Add Debian Dockerfiles for building and or running qvh easily
1 parent fad26ea commit 431269c

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

docker/Dockerfile.debian

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM debian:latest
2+
#Gstreamer dependencies take quite some time to install so I separate them
3+
RUN apt-get update && apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
4+
#Other dependencies
5+
RUN apt-get update && apt install -y wget zip libusb-1.0
6+
7+
RUN wget https://github.com/danielpaulus/quicktime_video_hack/releases/download/v0.2-beta/bin.zip
8+
9+
RUN unzip bin.zip
10+
RUN chmod +x /bin/linux/qvh

docker/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Dockerfiles
2+
3+
Here you can see how to get everything running easily.
4+
I have created separate Dockerfiles for building and for running.
5+
6+
### For building qvh use the Dockerfile in /build like so:
7+
8+
#### 1. Build Image:
9+
10+
- `docker build -f build/Dockerfile.debian -t "qvhbuild:$(git branch --show-current)" --build-arg GIT_BRANCH=$(git branch --show-current) .`
11+
12+
#### 2. Get shell in container
13+
14+
- `docker run -it qvhbuild:$(git branch --show-current) bash`
15+
16+
### For running qvh use the Dockerfile like so:
17+
18+
#### 1. Build Image for Running:
19+
20+
- `docker build -f Dockerfile.debian -t "qvhrun:$(git branch --show-current)" .`
21+
22+
#### 2. Get shell in container
23+
24+
- mount your host usb devices into the container and get a shell with the following command:
25+
- `docker run --privileged -v /dev/bus/usb:/dev/bus/usb -it qvhrun:$(git branch --show-current) bash`
26+
- use the `/bin/linux/qvh` binary to execute qvh

docker/build/Dockerfile.debian

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM debian:latest
2+
RUN apt-get update && apt install -y git wget libgstreamer-plugins-base1.0-dev libusb-1.0
3+
RUN wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
4+
RUN tar -xvf go1.13.3.linux-amd64.tar.gz
5+
RUN mv go /usr/local
6+
ENV GOROOT=/usr/local/go
7+
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
8+
ARG GIT_BRANCH=master
9+
RUN git clone --depth 1 https://github.com/danielpaulus/quicktime_video_hack -b ${GIT_BRANCH}
10+
11+

0 commit comments

Comments
 (0)