From bbd1b7eafcb819cb9ddd1f2176aecc7c80bba03d Mon Sep 17 00:00:00 2001 From: Volker Date: Fri, 28 Oct 2016 22:36:01 -0400 Subject: [PATCH 1/2] CMD => ENTRYPOINT Use ENTRYPOINT instead of CMD to allow command line arguments handed over on execution --- keepass2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepass2/Dockerfile b/keepass2/Dockerfile index f192536..068310d 100644 --- a/keepass2/Dockerfile +++ b/keepass2/Dockerfile @@ -28,4 +28,4 @@ RUN apt-get update && apt-get install -y \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* -CMD ["/usr/bin/keepass2"] +ENTRYPOINT ["/usr/bin/keepass2"] From f9b1205a5f973149613ba2210e3fdb23d145d84d Mon Sep 17 00:00:00 2001 From: Volker Date: Sat, 29 Oct 2016 13:09:23 -0400 Subject: [PATCH 2/2] Update usage description of slack & keepass2 (#203) * Update usage section to allow command line arguments CMD was changed to ENTRYPOINT, the USAGE section didn't reflect this change * Update usage to reflect a recent usage bug fix Aligned usage description to include a recently found bugfix. Added & adjusted other possible command line options. --- keepass2/Dockerfile | 2 +- slack/Dockerfile | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/keepass2/Dockerfile b/keepass2/Dockerfile index 068310d..dfe59b8 100644 --- a/keepass2/Dockerfile +++ b/keepass2/Dockerfile @@ -9,7 +9,7 @@ # -v /home/$USER/DB.kdbx:/root/DB.kdbx \ # -v /tmp/.X11-unix:/tmp/.X11-unix \ # -e DISPLAY=$DISPLAY \ -# keepass2 +# keepass2 "$@" # # ISSUES: # # 'Gtk: cannot open display: :0' diff --git a/slack/Dockerfile b/slack/Dockerfile index f0f80d1..b92c185 100644 --- a/slack/Dockerfile +++ b/slack/Dockerfile @@ -4,10 +4,15 @@ # -v /etc/localtime:/etc/localtime:ro \ # -v /tmp/.X11-unix:/tmp/.X11-unix \ # -e DISPLAY=unix$DISPLAY \ -# --device /dev/snd:/dev/snd \ -# --device /dev/dri:/dev/dri \ +# --device /dev/snd \ +# --device /dev/dri \ +# --device /dev/video0 \ +# --group-add audio \ +# --group-add video \ +# -v "${HOME}/.slack:/root/.config/Slack" \ +# --ipc="host" \ # --name slack \ -# jess/slack +# jess/slack "$@" FROM debian:stretch MAINTAINER Jessie Frazelle