forked from jessfraz/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jessica Frazelle <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 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,33 @@ | ||
# To use: | ||
# Needs X11 socket and dbus mounted | ||
# | ||
# docker run -d \ | ||
# -v /etc/machine-id:/etc/machine-id:ro \ | ||
# -v /etc/localtime:/etc/localtime:ro \ | ||
# -v /tmp/.X11-unix:/tmp/.X11-unix \ | ||
# -v /var/run/dbus:/var/run/dbus \ | ||
# -v /var/run/user/$(id -u):/var/run/user/$(id -u) \ | ||
# $(env | cut -d= -f1 | awk '{print "-e", $1}') \ | ||
# -e DISPLAY=unix$DISPLAY \ | ||
# -e DBUS_SESSION_BUS_ADDRESS="unix:path=/var/run/user/1000/bus" \ | ||
# -v /etc/passwd:/etc/passwd:ro \ | ||
# -v /etc/group:/etc/group:ro \ | ||
# -u $(whoami) -w "$HOME" \ | ||
# -v /home/jessie/.Xauthority:/home/jessie/.Xauthority \ | ||
# --name notify-osd \ | ||
# jess/notify-osd | ||
|
||
FROM debian:sid | ||
MAINTAINER Jessie Frazelle <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
at-spi2-core \ | ||
dbus \ | ||
libnotify-bin \ | ||
notify-osd \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY org.freedesktop.Notifications.service /usr/share/dbus-1/services/org.freedesktop.Notifications.service | ||
|
||
ENTRYPOINT ["/usr/lib/x86_64-linux-gnu/notify-osd"] |
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,3 @@ | ||
[D-BUS Service] | ||
Name=org.freedesktop.Notifications | ||
Exec=/usr/lib/x86_64-linux-gnu/notify-osd |