-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Docker images to Alpine Linux #843
Comments
If |
Alpine indeed provides system and PHP packages with good granularity (1 extension => 1 package) The generated images are more lightweight (I've managed to go down to 75 MiB by replacing supervisor with S6), which means they take less storage space, and by extension use less RAM when running Docker appliances :) |
Closes shaarli#843 Changed: - switch base image from Debian:Jessie to Alpine:3.5 - switch to PHP 7.0 - switch from supervisord to s6 to manage services WIP: - production/master image TODO: - thorough testing of Shaarli pages and features - production/stable image - development image FIXME: - file uploads (PHP+nginx config) - theme selection (invalid paths detected) See: - https://alpinelinux.org/ - https://wiki.alpinelinux.org/wiki/Nginx_with_PHP - http://www.skarnet.org/software/s6/ - http://www.skarnet.org/software/s6/s6-svscan.html - http://www.skarnet.org/software/s6/s6-svc.html - http://www.skarnet.org/software/s6/s6-svstat.html Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Closes shaarli#843 Changed: - switch base image from Debian:Jessie to Alpine:3.5 - switch to PHP 7.0 - switch from supervisord to s6 to manage services WIP: - production/master image TODO: - thorough testing of Shaarli pages and features - production/stable image - development image FIXME: - theme selection (invalid paths detected) See: - https://alpinelinux.org/ - https://wiki.alpinelinux.org/wiki/Nginx_with_PHP - http://www.skarnet.org/software/s6/ - http://www.skarnet.org/software/s6/s6-svscan.html - http://www.skarnet.org/software/s6/s6-svc.html - http://www.skarnet.org/software/s6/s6-svstat.html Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Closes shaarli#843 Changed: - switch base image from Debian:Jessie to Alpine:3.5 - switch to PHP 7.0 - switch from supervisord to s6 to manage services WIP: - production/master image TODO: - thorough testing of Shaarli pages and features - production/stable image - development image FIXME: - theme selection (invalid paths detected) See: - https://alpinelinux.org/ - https://wiki.alpinelinux.org/wiki/Nginx_with_PHP - http://www.skarnet.org/software/s6/ - http://www.skarnet.org/software/s6/s6-svscan.html - http://www.skarnet.org/software/s6/s6-svc.html - http://www.skarnet.org/software/s6/s6-svstat.html Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Changed: - Update Docker image list - Update Docker documentation structure Removed: - Delete Dockerfile and resources for the `dev` image - Cleanup `doc/` resources Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Closes shaarli#843 Changed: - switch base image from Debian:Jessie to Alpine:3.5 - switch to PHP 7.1 - switch from supervisord to s6 to manage services WIP: - production/master image TODO: - thorough testing of Shaarli pages and features - production/stable image - development image FIXME: - theme selection (invalid paths detected) See: - https://alpinelinux.org/ - https://wiki.alpinelinux.org/wiki/Nginx_with_PHP - http://www.skarnet.org/software/s6/ - http://www.skarnet.org/software/s6/s6-svscan.html - http://www.skarnet.org/software/s6/s6-svc.html - http://www.skarnet.org/software/s6/s6-svstat.html Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Closes shaarli#843 Changed: - switch base image from Debian:Jessie to Alpine:3.6 - switch to PHP 7.1 - switch from supervisord to s6 to manage services WIP: - `master` image TODO: - thorough testing of Shaarli pages and features - `stable` image FIXME: - theme selection (invalid paths detected) See: - https://alpinelinux.org/ - https://wiki.alpinelinux.org/wiki/Nginx_with_PHP - http://www.skarnet.org/software/s6/ - http://www.skarnet.org/software/s6/s6-svscan.html - http://www.skarnet.org/software/s6/s6-svc.html - http://www.skarnet.org/software/s6/s6-svstat.html Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Added: - Makefile target to run commands in a Docker test context - Docker images to run Shaarli test suites: - Alpine 3.6 - Debian 8 & 9 - Ubuntu 16.04 TODO: - Add/update usage documentation Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Added: - Makefile target to run commands in a Docker test context - Docker images to run Shaarli test suites: - Alpine 3.6 - Debian 8 & 9 - Ubuntu 16.04 TODO: - Add/update usage documentation Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Added: - Makefile target to run commands in a Docker test context - Docker images to run Shaarli test suites: - Alpine 3.6 - Debian 8 & 9 - Ubuntu 16.04 TODO: - Add/update usage documentation Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Added: - Makefile target to run commands in a Docker test context - Docker images to run Shaarli test suites: - Alpine 3.6 - Debian 8 & 9 - Ubuntu 16.04 TODO: - Add/update usage documentation Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Added: - Makefile target to run commands in a Docker test context - Docker images to run Shaarli test suites: - Alpine 3.6 - Debian 8 & 9 - Ubuntu 16.04 TODO: - Add/update usage documentation Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Added: - Makefile target to run commands in a Docker test context - Docker images to run Shaarli test suites: - Alpine 3.6 - Debian 8 - Debian 9 - Ubuntu 16.04 - Documentation Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Added: - Makefile target to run commands in a Docker test context - Docker images to run Shaarli test suites: - Alpine 3.6 - Debian 8 - Debian 9 - Ubuntu 16.04 - Documentation Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Closes shaarli#843 Changed: - switch base image from Debian:Jessie to Alpine:3.6 - switch to PHP 7.1 - switch from supervisord to s6 to manage services WIP: - `master` image TODO: - thorough testing of Shaarli pages and features - `stable` image FIXME: - theme selection (invalid paths detected) See: - https://alpinelinux.org/ - https://wiki.alpinelinux.org/wiki/Nginx_with_PHP - http://www.skarnet.org/software/s6/ - http://www.skarnet.org/software/s6/s6-svscan.html - http://www.skarnet.org/software/s6/s6-svc.html - http://www.skarnet.org/software/s6/s6-svstat.html Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Closes shaarli#843 Changed: - switch base image from Debian:Jessie to Alpine:3.6 - switch to PHP 7.1 - switch from supervisord to s6 to manage services WIP: - `master` image TODO: - thorough testing of Shaarli pages and features - `stable` image FIXME: - theme selection (invalid paths detected) See: - https://alpinelinux.org/ - https://wiki.alpinelinux.org/wiki/Nginx_with_PHP - http://www.skarnet.org/software/s6/ - http://www.skarnet.org/software/s6/s6-svscan.html - http://www.skarnet.org/software/s6/s6-svc.html - http://www.skarnet.org/software/s6/s6-svstat.html Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#843 Changed: - switch base image from Debian:Jessie to Alpine:3.6 - switch to PHP 7.1 - switch from supervisord to s6 to manage services See: - https://alpinelinux.org/ - https://wiki.alpinelinux.org/wiki/Nginx_with_PHP - http://www.skarnet.org/software/s6/ - http://www.skarnet.org/software/s6/s6-svscan.html - http://www.skarnet.org/software/s6/s6-svc.html - http://www.skarnet.org/software/s6/s6-svstat.html Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Motivations
Our Docker images are currently based on the
debian:jessie
base image, and weight around 300 MiB.This is due to several reasons:
Alpine Linux is a lightweight and minimalist distribution tat revolves around:
The base image weights 4 MiB and comes with usage documentation to create lightweight service images.
Related articles/posts:
Proposed setup for Shaarli images
Note: Supervisor comes with a lot of Python dependencies (with respect to the expected image size) and might be replaced with runit to spare a few MiBs :)
Early results
I've started to fiddle with a new image, here are the early results (before attempting Dockerfile voodoo):
The text was updated successfully, but these errors were encountered: