2015-06-09 15:25:36 +02:00
|
|
|
# To use:
|
|
|
|
# Needs X11 socket and dbus mounted
|
2016-01-09 03:57:39 +01:00
|
|
|
#
|
2015-06-09 15:25:36 +02:00
|
|
|
# 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" \
|
2017-06-19 11:07:47 +02:00
|
|
|
# -v $HOME/.Xauthority:$HOME/.Xauthority \
|
2015-06-09 15:25:36 +02:00
|
|
|
# --name notify-osd \
|
|
|
|
# jess/notify-osd
|
|
|
|
|
2017-11-30 16:44:55 +01:00
|
|
|
FROM debian:buster
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-06-09 15:25:36 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
at-spi2-core \
|
|
|
|
dbus \
|
2016-01-09 03:57:39 +01:00
|
|
|
dbus-x11 \
|
2015-06-19 00:24:58 +02:00
|
|
|
libgl1-mesa-dri \
|
|
|
|
libgl1-mesa-glx \
|
2015-06-09 15:25:36 +02:00
|
|
|
libnotify-bin \
|
|
|
|
notify-osd \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2016-01-09 03:57:39 +01:00
|
|
|
ENV HOME /home/user
|
|
|
|
RUN useradd --create-home --home-dir $HOME user \
|
|
|
|
&& mkdir -p $HOME/.cache/dconf \
|
|
|
|
&& mkdir -p $HOME/.dbus \
|
|
|
|
&& chown -R user:user $HOME
|
|
|
|
|
2015-06-09 15:25:36 +02:00
|
|
|
COPY org.freedesktop.Notifications.service /usr/share/dbus-1/services/org.freedesktop.Notifications.service
|
|
|
|
|
2016-01-09 03:57:39 +01:00
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
USER user
|
2015-06-09 15:25:36 +02:00
|
|
|
ENTRYPOINT ["/usr/lib/x86_64-linux-gnu/notify-osd"]
|