Open desaintmartin opened 1 year ago
Name | Link |
---|---|
Latest commit | 29108917d22da78b87290d34b0ff2e6bd056da6b |
Latest deploy log | https://app.netlify.com/sites/selfoss/deploys/65441d7039c136000849f091 |
A few months later, let me try to answer.
Still the main obstacle is that I do not understand how users that want Docker expect to use the image so I have no way of evaluating whether the PR fits that.
I understand this issue. Maybe I can just say that I'm a Kubernetes contributor (see my profile) and my production clusters manage ~15000 running containers right now, if that helps. Of course I don't want to pretend to be someone here! ;)
Do people just run
docker
commands manually? Or use something like docker-compose? How do they handle updates? What are security considerations? How do people configure software? How do they manage data backups?
It really depend, some use docker-compose, some use raw docker/containerd commands, some use Kubernetes either directly or through Helm, some use home NAS like synology to manage containers for them, but all of them use container image definition.
I'm going to update a bit the PR to be more up-to-date and take into account your suggestions!
Notes:
php:8.2-apache
image, built on top of debian:12-slim
, is 710MB (!!), final image is 770MB so 60MB more than upstream image, which is not bad, relatively speaking (absolutely speaking, this is huge, but this seems to be how it works today).docker build --tag selfoss:docker-beta .
docker run --rm --name my-selfoss -p 80:80 -v data:/var/www/html/data selfoss:docker-beta
Hello @jtojnar, would you have any time to review this PR?
Here is a first try of https://github.com/fossar/selfoss/issues/1350 as a simpler alternative / first step than https://github.com/fossar/selfoss/pull/1170
Here are some notes:
If you think this could easily be done, feel free to point me to the right direction, but I was not able to properly separate build from serve (due to always needing to build extensions...)edit: https://hub.docker.com/_/composer/ recommends doing what is done in this pr, so everything seems ok, and I now delete development packages.What do you think?
Potential next steps if this gets merged: