summaryrefslogtreecommitdiff
path: root/docker/debian/bitmask-on-docker.sh
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2015-09-09 13:24:45 -0300
committerKali Kaneko <kali@leap.se>2015-09-09 13:53:51 -0400
commitbf0378257afcb8fa2542e5cf904691ec5fdd74b1 (patch)
tree75f40e2d5544632a0eae7137ca394181f36ab369 /docker/debian/bitmask-on-docker.sh
parentb567cded32e58388f4c88ea04e15bdc86e585a13 (diff)
[feat] use docker to test .deb packages
Add scripts to easily test (stable or unstable) debian packages. - Resolves: #6715
Diffstat (limited to 'docker/debian/bitmask-on-docker.sh')
-rwxr-xr-xdocker/debian/bitmask-on-docker.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/docker/debian/bitmask-on-docker.sh b/docker/debian/bitmask-on-docker.sh
new file mode 100755
index 00000000..c3e42b22
--- /dev/null
+++ b/docker/debian/bitmask-on-docker.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Helper script to install, run and do a screenshot of bitmask
+
+# You can use this as follows:
+# $ docker run -t -i --rm -v `pwd`:/host/ ubuntu:14.04 /bin/bash
+# $ cd /host/
+# $ ./bitmask-on-docker.sh stable
+
+[[ -z $1 ]] && exit 1
+
+./apt-bitmask.sh $1 # this does an `apt-get update`
+apt-get -y install xinit xvfb imagemagick lxpolkit
+
+startx -- `which Xvfb` :1 -screen 0 1024x768x24 &
+sleep 1
+
+DISPLAY=:1 lxpolkit &
+sleep 0.5 # bitmask needs polkit to work
+
+DISPLAY=:1 bitmask &
+sleep 2 # wait for bitmask to start
+
+DISPLAY=:1 import -window root bitmask.png