-
Notifications
You must be signed in to change notification settings - Fork 297
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
Docker: switch to Alpine Linux #846
Conversation
The main image ( There are some quirks highlighted by UTs that I suspect are due to musl-libc behaving a bit differently from glibc, this concerns path concatenation and globbing so far. |
60fcfd9
to
a887a52
Compare
a887a52
to
5a9e5f4
Compare
Similar errors from Debian8, Debian9 and Alpine36 (Ubuntu16 is fine):
|
The This can be avoided by improving the robustness of Related (?) resources: |
Relates to shaarli#846 PHP's `gzinflate()` fails with an error when being passed an empty string See: - https://bugs.php.net/bug.php?id=71395 Signed-off-by: VirtualTam <[email protected]>
Relates to shaarli#845 Relates to shaarli#846 Relates to shaarli#909 Signed-off-by: VirtualTam <[email protected]>
Relates to shaarli#846 PHP's `gzinflate()` fails with an error when being passed an empty string See: - https://bugs.php.net/bug.php?id=71395 Signed-off-by: VirtualTam <[email protected]>
5a9e5f4
to
62ec648
Compare
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 <[email protected]>
Signed-off-by: VirtualTam <[email protected]>
62ec648
to
e3a3cc0
Compare
PR rebased and in review \o/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, will unable to test this in the coming days though. Did you notice a performance increase?
No hurry, I'd greatly appreciate usage feedback before merging!
Well, my, lemme check my Shaarli bookmark mining farm... Images are shrinked to a minimal size, and the memory footprint is significantly smaller. Here's a rough comparison, using :
Note: output truncated for readability $ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
shaarli stable dd0b1834fa93 24 hours ago 318MB
shaarli/shaarli latest c3ffba699be1 24 hours ago 293MB
shaarli master d24339645fed 24 hours ago 69MB $ docker ps
CONTAINER ID IMAGE COMMAND
bd4df1fc76ca shaarli/shaarli:latest "/usr/bin/supervis..."
cb5a76b665f0 shaarli:stable "/usr/bin/supervis..."
1a358ebff5cb shaarli:master "/bin/s6-svscan /e..." $ docker stats --no-stream
CONTAINER CPU % MEM USAGE / LIMIT NET I/O BLOCK I/O PIDS
bd4df1fc76ca 0.03% 54.92MiB / 15.62GiB 704kB / 1.79MB 1.87MB / 30.8MB 9
cb5a76b665f0 0.03% 54.25MiB / 15.62GiB 714kB / 1.49MB 32.4MB / 438kB 9
1a358ebff5cb 0.00% 28.89MiB / 15.62GiB 41.8kB / 2.16MB 24.5MB / 69.6kB 11 |
Closes #843
Changed:
Done:
WIP:
See: