Skip to content
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

Alpine Linux Packages #218

Closed
faabiosr opened this issue Apr 8, 2016 · 5 comments
Closed

Alpine Linux Packages #218

faabiosr opened this issue Apr 8, 2016 · 5 comments

Comments

@faabiosr
Copy link

faabiosr commented Apr 8, 2016

Guys, you have created an image docker cool, but I have a question.

Why not use the Alpine Linux PHP7 packages instead of compiling the package in the dockerfile script?

@yosifkit
Copy link
Member

yosifkit commented Apr 8, 2016

We compile for two reasons:

  1. installing the way upstream recommends/endorses
    • upstream PHP only releases source so that is what is used
    • we do it because most packagers add opinionated bits to their releases (generally, not specifically talking about php in alpine as I have not used it)
  2. parity with the other versions (ie the debian images)

@faabiosr
Copy link
Author

faabiosr commented Apr 9, 2016

OK! No problem!

I think you should take a look at the packages created for PHP7 and PHP5.6 that are in Alpine, so we can build a single package with the best of everything.

Please if you have a few hours left, look to the PHP7 package was made on the link below:
http://git.alpinelinux.org/cgit/aports/tree/testing/php7/APKBUILD?id=6565601b6386afe267f8c2f6809f29765b2a4cca

@ghost
Copy link

ghost commented Apr 14, 2016

I was wondering the same. Installing the correct build-time dependencies, building the extensions, then cleaning everything and removing the build-time dependencies again is a PITA.

@ghost ghost mentioned this issue Apr 14, 2016
@yosifkit
Copy link
Member

@fabiorphp, thanks for the link. Unfortunately, we can't get any size benefit to building it like alpine does. They build php into about 60 different packages so that you can apk add just the shared libraries that you need. They also put the source files into a -dev package so that it can be fetched for linking when building your own dependencies that are not one of the sub-packages that they provide.

@shouze
Copy link
Contributor

shouze commented Jun 29, 2016

@fabiorphp maybe this issue can be closed? Alpine images size has already been reduced by #239 and it will be continued in #245.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants