Skip to content

Development & Programming

Overview

How do I run DietPi-Software and install optimised software?

To install any of the DietPi optimised software listed below run from the command line:

dietpi-software

Choose Software Optimised and select one or more items. Finally click on Install. DietPi will do all the necessary steps to install and start these software items.

DietPi-Software menu

To see all the DietPi configurations options, review DietPi Tools section.

Return to the Optimised Software list

Python

Python is a text based interpreted programming language with object oriented programming options for general purpose applications.

Python logo

Source: By www.python.org, GPL

The install option explicitly installs only Python 3.
The pip/pip3 Python package manager and development headers are included.

To use the pip package manager, a typical usage will be pip3 install -U <module>.


Website: https://www.python.org
Official documentation, from beginner to advanced: https://www.python.org/doc/
Wikipedia: https://wikipedia.org/wiki/Python_(programming_language)

Docker

In 2013, Docker introduced containers. These are a standardized unit of software that allows developers to isolate their application from the environment. Docker is de facto standard to build and share containerized apps - from single board computers (SBC), to desktop or cloud.

A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.

Docker functional block diagram

Source: User:Maklaan - Based on a Docker blog post

Docker logs can be accessed using next command:

journalctl -u docker -u containerd

The location of the Docker configuration files:

  • Docker: /etc/docker/daemon.json
  • containerd: /etc/containerd/config.toml

Official documentation: https://docs.docker.com/get-started/overview
Configuration file: https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file
Logging: https://docs.docker.com/config/containers/logging/configure
Wikipedia: https://wikipedia.org/wiki/Docker_(software)

For a quick intro, see DietPi Docker Setup on Raspberry Pi 3 B Plus:

Docker Compose

Docker Compose is a Docker tool used to define and run multi-container applications. With Compose, you use a YAML file to create and configure your application’s services from this configuration file.

docker-compose is an excellent tool for development, testing, continuous integration (CI) workflows, and staging environments.

docker compose

Docker (individual container) vs. Docker-Compose (several containers) - source: A beginner’s guide to Docker

The tool is available soon after the installation. In case you need to upgrade it, here is the command:

sudo pip3 install docker-compose --upgrade

Official documentation: https://docs.docker.com/compose
Getting started: https://docs.docker.com/compose/gettingstarted
Sample apps with Compose: https://docs.docker.com/compose/samples-for-compose/
Release notes: https://docs.docker.com/compose/release-notes/
Wikipedia: https://wikipedia.org/wiki/Docker_(software)

Portainer

Portainer simplifies your Docker container management via Portainer web interface. It enables faster deploy of the applications and it gives real time visibility.

Portainer screenshot

The web interface is accessible via port 9002:

Update to latest version:

dietpi-software reinstall 185

Official documentation: https://documentation.portainer.io
Source code: portainer/portainer
Open-source license: zlib

Return to the Optimised Software list


  1. Logitech Media Server already listened to port 9000, and this is why Portainer has been configured to start using port 9002. For more details on the implementation Portainer in DietPi see the GitHub task: MichaIng/DietPi!3933