-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of bluecherry-client docker scripts
- Loading branch information
Curtis Hall
committed
Sep 6, 2020
1 parent
ce92397
commit bae4430
Showing
6 changed files
with
762 additions
and
2 deletions.
There are no files selected for viewing
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,15 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y wget gnupg | ||
|
||
COPY install-packages.sh . | ||
RUN ./install-packages.sh | ||
|
||
COPY bluecherry.conf /root/.config/bluecherry/ | ||
|
||
RUN export QT_GRAPHICSSYSTEM="native" | ||
|
||
RUN export QT_X11_NO_MITSHM=1 | ||
|
||
CMD /usr/bin/bluecherry-client |
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# bluecherry-client Docker | ||
|
||
Docker recipe for Bluecherry-client. Based on the original work of staal0 - https://github.com/staal0/BluecherryClient-docker | ||
|
||
Notes: | ||
|
||
- This is based on Ubuntu 18.04 and installs the latest Bluecherry client (bluecherry-client) from Bluecherry servers. | ||
|
||
Running the docker: | ||
|
||
|
||
sudo docker build -t bluecherry-client . | ||
|
||
sudo chmod +x run.sh ; ./run.sh |
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
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,27 @@ | ||
#!/bin/bash | ||
|
||
# Bash "strict mode", to help catch problems and bugs in the shell | ||
# script. Every bash script you write should include this. See | ||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ for | ||
# details. | ||
set -euo pipefail | ||
|
||
# Tell apt-get we're never going to be able to give manual | ||
# feedback: | ||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update the package listing, so we know what package exist: | ||
wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add - | ||
wget --output-document=/etc/apt/sources.list.d/bluecherry-bionic.list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-bionic.list | ||
|
||
apt-get update | ||
|
||
# Install security updates: | ||
apt-get -y upgrade | ||
|
||
# Install a new package, without unnecessary recommended packages: | ||
apt-get -y install --no-install-recommends bluecherry-client | ||
|
||
# Delete cached files we don't need anymore: | ||
apt-get clean | ||
rm -rf /var/lib/apt/lists/* |
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,12 @@ | ||
#!/bin/bash | ||
docker run -it \ | ||
--net=host \ | ||
--device=/dev/dri/card0:/dev/dri/card0 \ | ||
--device=/dev/dri/renderD128:/dev/dri/renderD128 \ | ||
--device=/dev/snd/timer:/dev/snd/timer \ | ||
--device=/dev/snd/pcmC0D0p:/dev/snd/pcmC0D0p \ | ||
--device=/dev/snd/controlC0:/dev/snd/controlC0 \ | ||
--device=/dev/snd/seq:/dev/snd/seq \ | ||
--env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --env="QT_GRAPHICSSYSTEM='native'" \ | ||
--ipc host \ | ||
--volume="$HOME/.Xauthority:/root/.Xauthority:rw" bluecherry-client |