summaryrefslogtreecommitdiff
path: root/docker/README.rst
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-09-24 15:09:58 -0400
committerKali Kaneko <kali@leap.se>2015-09-24 15:09:58 -0400
commit08694af26b7b3d2e480c8379745dd5234315c87d (patch)
treeb38ce71cc7073bb573db97ca0dfc0c6ba0aa860f /docker/README.rst
parentddc30afd194bb31a24cf5097fba8680721834b1f (diff)
parentaa31828fca8bb64ace56f6f3b2b94f90ffced3c2 (diff)
Merge tag '0.9.0rc3' into debian/experimental
Tag leap.bitmask version 0.9.0rc3
Diffstat (limited to 'docker/README.rst')
-rw-r--r--docker/README.rst49
1 files changed, 49 insertions, 0 deletions
diff --git a/docker/README.rst b/docker/README.rst
new file mode 100644
index 00000000..dcad0ac6
--- /dev/null
+++ b/docker/README.rst
@@ -0,0 +1,49 @@
+Bitmask and Docker
+==================
+
+Here we have several tools that leverages docker to ease Bitmask testing.
+
+``bitmask-docker.sh`` is a helper script to ``build`` and ``run`` the bitmask app,
+here is an example usage::
+
+ $ ./bitmask-docker build # build docker image
+ $ ./bitmask-docker init ro bitmask-nightly.json # initialize all the stuff needed
+ # ....
+ $ ./bitmask-docker.sh run
+
+
+``bitmask-nightly.json`` is the version specifier for each bitmask component that
+will be used to run bitmask.
+
+``Dockerfile`` is the file used to build the docker image that will run bitmask.
+
+``leap_bootstrap.sh`` is the script that takes care of cloning repos, installing
+python dependencies, running bitmask, etc.
+
+
+debian/
+-------
+
+``apt-bitmask.sh`` script that installs bitmask from the debian packages.
+
+``bitmask-on-docker.sh`` installs bitmask and runs it in a dummy X server,
+waits a little and takes a screenshot.
+
+``leap-experimental.key`` is needed by ``apt-bitmask.sh`` to ``apt-key add``
+and verify apt sources.
+
+``run-docker-for-bitmask.sh`` is a helper script that runs an ubuntu/debian
+container ready to run the ``apt-bitmask.sh`` command, it does (among other
+stuff) X11 forwarding to display Bitmask UI on the host linux.
+
+An example usage::
+
+ $ ./run-docker-for-bitmask.sh
+ non-network local connections being added to access control list
+ root@hostname:/# cd /host/
+ root@hostname:/host# ./apt-bitmask.sh unstable
+ # [... not so relevant output ...]
+ root@hostname:/host# apt-get install -y lxpolkit # install a small polkit agent
+ # [... not so relevant output ...]
+ root@hostname:/host# lxpolkit & # run the polkit agent in the background, ignore the "No session for pid 6034" error.
+ root@hostname:/host# bitmask -d # tadaa, you have bitmask running in a container!