2015-06-05 20:55:25 +02:00
|
|
|
# DESCRIPTION: Create keepass2 container with its dependencies
|
|
|
|
# AUTHOR: Christian Koep <christian.koep@fom-net.de>
|
2015-05-22 19:50:11 +02:00
|
|
|
# USAGE:
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Build keepass2 image
|
|
|
|
# docker build -t keepass2 .
|
2015-05-22 19:50:11 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Run the container and mount your keepass2 database file
|
2015-06-05 20:55:25 +02:00
|
|
|
# docker run -it \
|
|
|
|
# -v /home/$USER/DB.kdbx:/root/DB.kdbx \
|
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e DISPLAY=$DISPLAY \
|
|
|
|
# keepass2
|
2015-05-22 19:50:11 +02:00
|
|
|
#
|
|
|
|
# ISSUES:
|
2015-06-05 19:24:11 +02:00
|
|
|
# # 'Gtk: cannot open display: :0'
|
|
|
|
# Try to set 'DISPLAY=your_host_ip:0' or run 'xhost +' on your host.
|
2016-10-25 22:37:56 +02:00
|
|
|
# (see: https://stackoverflow.com/questions/28392949/running-chromium-inside-docker-gtk-cannot-open-display-0)
|
2015-05-22 19:50:11 +02:00
|
|
|
#
|
|
|
|
|
2016-08-03 09:45:33 +02:00
|
|
|
FROM debian:sid
|
2015-05-22 19:50:11 +02:00
|
|
|
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
2015-06-05 20:55:25 +02:00
|
|
|
|
2016-07-18 12:07:08 +02:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2015-06-05 20:55:25 +02:00
|
|
|
|
2015-05-22 19:50:11 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-06-05 19:24:11 +02:00
|
|
|
keepass2 \
|
2015-06-07 02:48:44 +02:00
|
|
|
xdotool \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-06-05 20:55:25 +02:00
|
|
|
|
2016-10-29 04:36:01 +02:00
|
|
|
ENTRYPOINT ["/usr/bin/keepass2"]
|