You can choose any other images with different databases (see above).
In this instruction thingsboard/tb-postgres image will be used. Note: Not recommended for any evaluation or production usage and is used only for development purposes and automatic tests. Thingsboard/tb - single instance of ThingsBoard with embedded HSQLDB database. The most performant and recommended option but requires at least 4GB of RAM. Thingsboard/tb-cassandra - single instance of ThingsBoard with Cassandra database. Recommended option for small servers with at least 1GB of RAM and minimum load (few messages per second). Thingsboard/tb-postgres - single instance of ThingsBoard with PostgreSQL database. Runningĭepending on the database used there are three type of ThingsBoard single instance docker images: This same technique should work nicely with any other GUI application under Linux - I will mostly use if for running tests of QGIS based plugins and for using QGIS in my docker orchestrated environments.Don’t forget to add your linux user to the docker group. Here is a nice picture of QGIS (from a Linux container) running on my OSX desktop: You need to determine the IP address of your OSX machine and use it instead of the IP address listed after DISPLAY in the above command. You can mix in any standard docker options there - in this case I created shared volume between my OSX home directory and a /home/timlinux directory in the container.
Lastly I ran the QGIS docker container like this: docker run -rm -e DISPLAY=192.168.0.3:0 \ -i -t -v /Users/timlinux:/home/timlinux \ kartoza/qgis-desktop qgis Next I started kinematic, and pressed SHIFT-COMMAND-T to open a docker terminal. In X11 preferences in XQuartz, in the security tab, check both boxes: Next I started XQuartz (you can close the XTerm window that opens by default). It will run in the foreground waiting for connections and then pass them over to XQuartz. I started socat like this: socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" Start socat (in my testing it had to be done first).Ok so there are four steps we need to do to run our Linux app: Once the image is downloaded we are done with the basic setup and can kick over to running our Linux GUI application (obviously QGIS in this example). Now grab my QGIS desktop image for docker: docker pull kartoza/qgis-desktop I installed kinematic and then simply hit shift-command-t in order to get a bash shell with docker available in it. However there is a very nice (currently beta) docker client being developed for OSX called kinematic. Unfortunately docker does not run natively on OSX, and the whole boot2docker setup is probably quite difficult to explain to people. Just grab the package at and do the usual OSX procedure for installing it.
Next we are going to install XQuartz - which basically gives you an X11 display client on your OSX desktop. Now install socat - a command line tool that lets you redirect sockets in unix like OS's - thankfully it runs in OSX too as it is a really neat tool! brew install socat Ok first install brew (an apt-like package manager for OSX).
One thing I was curious about was whether it would be possible to run native GUI (X11) applications from inside docker and have them show up on my OSX desktop. Well that is what happened to me, so I decided to give working with OSX a try on this laptop with the help of docker for running all those essential apps that I use for development. Ok so here is the scenario: You just got a nice new MacBook 15" Retina computer thinking it would work as nicely for Linux as your 13" MacBook did and then you discover that the hybrid Intel/Nvidia card support in Linux is a show stopper and the WebCam does not work under Linux.