Skip to main content

Docker

Docker is an Open Source container virtualization tool. It is ideal for running applications on any computer without extensive installation, configuration, or performance overhead.

Note: Docker is not required to build or run the application. The output binaries are also run on metal without Docker or .NET installed

We are aware Docker is not widely used by end users despite its many advantages. For this reason, we aim to provide native binaries for common operating systems.

Why are we using Docker?

Containers are nothing new; Solaris Zones have been around for about 15 years, first released publicly in 2004. The chroot system call was introduced during development of Version 7 Unix in 1979. It is used ever since for hosting applications exposed to the public Internet.

Modern Linux containers are an incremental enhancement. A main advantage of Docker is that application images can be easily made available to users via Internet. It provides a common standard across most operating systems and devices, which saves our team a lot of time that we can then spend more effectively, for example, providing support and developing one of the many features that users are waiting for.

Human-readable and versioned Dockerfiles as part of our public source code also help avoid "works for me" moments and other unwelcome surprises by enabling teams to have the exact same environment everywhere in development, staging, and production.

Last but not least, virtually all file format parsers have vulnerabilities that just haven't been discovered yet. This is a known risk that can affect you even if your computer is not directly connected to the Internet. Running apps in a container with limited host access is an easy way to improve security without compromising performance and usability.

Running Docker Images

Assuming you have Docker installed and want to test Debian 12 "Bookworm", you can simply run this command to open a terminal:

docker run --rm -v ${PWD}:/test -w /test -ti debian:bookworm bash

This will mount the current working directory as /test. Of course, you can also specify a full path instead of ${PWD}.

The available Ubuntu, Debian and Starsky images can be found on Docker Hub:

Additional packages can be installed via apt:

apt update
apt install -y exiftool libheif-examples

Continuous Integration / Deployment

Build and push of an updated container image to Docker Hub for stable releases and are automatically performed by Github Actions CI

The latest development version is available as ghcr.io/qdraw/starsky:master on Github Actions Hub.

Multi-Stage Build

When creating new images, Docker supports so called multi-stage builds, that means you can compile an application like Starsky in a container that contains all development dependencies (like source code, debugger, compiler,...) and later copy the binary to a fresh container. This way we could reduce the compressed container size from ~1 GB to less than 200 MB.

Kubernetes

External Resources