Development & Programming¶
Overview¶
- Python - high-level interpreted programming language
- Docker - Build, ship, and run distributed applications
- Portainer - Docker container management
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.
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.
Source: By www.python.org, GPL
The install option explicitly only installs Python 3.
The pip
resp. pip3
Python package manager and development headers are included.
To use the pip
package manager, a typical usage will be pip3 install -U <module>
.
Wikipedia: https://wikipedia.org/wiki/Python_(programming_language)
Docker¶
Docker is used to build, ship, and run distributed applications.
Source: User:Maklaan
- Based on a Docker blog post
Access logs can be viewed with this command:
journalctl -u docker -u containerd
The Docker configuration files are:
- Docker:
/etc/docker/daemon.json
- containerd:
/etc/containerd/config.toml
Website: 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)
YouTube video tutorial: DietPi Docker Setup on Raspberry Pi 3 B Plus.
Portainer¶
Portainer simplifies your Docker container management via Portainer web interface. It enables faster deploy of the applications and it gives real time visibility.
It starts automatically after installation. View Portainer web interface by opening the browser using next URL:
http://<your.local.ip>:9002
1.If you have basic questions on how to use Portainer, please read the beginner guide: https://codeopolis.com/posts/beginners-guide-to-portainer/.
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
Logitech Media Server already listened to port
9000
, and this is why Portainer has been configured to start using port9002
. For more details on the implementation Portainer in DietPi see the GitHub task: MichaIng/DietPi!3933 ↩