Last active
February 15, 2021 20:05
-
-
Save wolkenarchitekt/49f89b65486b4fb681ea89a79a92edcf to your computer and use it in GitHub Desktop.
Raspberri Pi: Docker vs SystemD services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Advantages Docker: | |
* Same config for development and production | |
* Manage dev/prod environment cleanly only via docker-compose files | |
* No configmanagement necessary - just pass environment variables | |
Disadvantages Docker: | |
* Rebuilding images takes long on Raspberry PI | |
* Building ARM Docker images on non-Raspberry PI build host is complex | |
* Cannot host private Docker images on docker hub for free - need to run own Docker image hub | |
Advantages SystemD: | |
* Integrates cleanly and natively into Debian system | |
* Fast to roll out updated config using config management - only config diff is applied | |
* Better tooling to analyze and log running SystemD services | |
* Better and more fine-granular service dependencies | |
Disadvantages SystemD: | |
* Configuration inconsistencies between development (Docker) and production (SystemD+Config management) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment