-
Notifications
You must be signed in to change notification settings - Fork 17
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
Simpler Dockerfiles, with more platforms #43
Conversation
gquintard
commented
May 3, 2019
- add ubuntu and centos images
- leverage the upstream packages for rpm and deb platforms
- for alpine, us the aports
- simplify update.sh
e00ecd5
to
682f7d5
Compare
Unnecessary. Docker official images only use Debian and Alpine. |
thanks, I didn't know that, I'll nuke them then |
- leverage the upstream packages for debian - for alpine, us the aports - simplify update.sh
Sorry, I'm gonna close this. This is not gonna get us any closer to having an official Docker image. It has too many problems. |
Can you explain which ones? |
I guess not. |
done | ||
RUN apt-get update && \ | ||
apt-get install -y curl && \ | ||
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish%%VARNISH_VERSION%%/script.deb.sh | bash && \ |
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.
Take for example, this part. We need (mostly) reproducible builds.
https://github.com/docker-library/official-images/blob/master/README.md#repeatability
Easy to change:
we can even embark the gpgkey so we don't have to download it.
so your issue is not really about the fact that we are using Would it make you happier if we got the package source from packagecloud and if we rebuilt it locally? If the alpine approach works for you, we can do the same thing with debian. I believe it's a waste of CPU power, but you get your package built from source, I get simpler Dockerfiles, and we all get proper packages |
That's what we already do in #42? 😄 I don't build from source anymore for Debian, except for multiarch. |
To be honest, I have no idea what happens it #42. the code is crazy |
It's adapted from https://github.com/docker-library/postgres/blob/master/Dockerfile-debian.template It's the one @tianon pointed us to. So we're in good hands. As official as it can get, learning from well-made Docker official images. |
What about this: https://gist.github.com/gquintard/e3fd273388d7d685338306f975b9b73d ? I don't understand why you would go for the monstrosity that is https://github.com/docker-library/postgres/blob/master/Dockerfile-debian.template when you can have a maintainable and legible Dockerfile. I'm far from being a Docker genius, but the |