News for hackers. Stuff that matters.

Sinaptika

Re:How to Write Dockerfiles for Python Web Apps on Tuesday February 27, 2018 @09:15AM (#16473479)
Process reaping and signal forwarding are solved by using tini. You can call if from inside the container, by installing it and then changing the entrypoint/cmd. You can also specify it in your docker run/docker create command by adding "--init" I haven't seen the phusion base images in production in almost a year. Usually when an organization gets more experience in building images, they use better solutions then phusion images.

tldr

Don't use Phusion base images. If you need ssh and logrotate and etc, use lxd or a vm.

Re:How to Write Dockerfiles for Python Web Apps on Tuesday February 27, 2018 @09:03AM (#16473379)
I agree on base image point. Although if we have python apps in the image, it should not matter (both 2-alpine3.7 and 3-alpine3.8 work ok). Systemd vs sysv is not an issue in docker containers since it's (mostly) not used. If you are using an init system, you are probably using tini (included in recent Docker) or supervisord (usually used for older/legacy c/c++ apps).