Skip to content

Why should I avoid Entryscript in my docker compose

apayetRun edited this page Jul 17, 2023 · 1 revision

Why should I avoid Entryscript in my docker compose

I see many people using entryscript to configure the installation of some docker container.

Can do the job, but when error occurs, it is difficult to handle properly. Or this solution needing tricks for solving the problem.

You decide to separate services, and, thats a good Idea. If you choose to do it on build: each step of you build is segmented into a new container. Divide and conquer paradigm.

But if you doing an entrypoint.sh that do a lot of statement you loose this advantage, that can be qualified as an anti-pattern.

What happen when do configuration on build (video demo)

What happen on build

Clone this wiki locally