Evedel / bow

Docker Registry Frontend/ Docker Registry UI
https://hub.docker.com/r/evedel/bow/
GNU General Public License v3.0
81 stars 7 forks source link

make bow docker images smaller #12

Closed JermineHu closed 6 years ago

JermineHu commented 6 years ago

Used alpine image will make this docker image smaller

Evedel commented 6 years ago

Hi @JermineHu, thank you for a pr! This is a good idea to have a light version. I definitely want to keep both images altogether, though. As because of layers system the overcome of debian vs alpine is based mostly on which base image is used for the rest of infrastructure. If you don't mind, I'll have a look on it at this weekends, to see what is the best way to keep them both, probably this will be some sort of subtags with base image name on dockerhub.

JermineHu commented 6 years ago

Many versions of the docker image fully agree! I prefer smaller an image!I have already submitted second pr,This time PR you are free

Evedel commented 6 years ago

Sure, the smaller the better, but I prefer to keep backward compatibility, as well, if there is no urgent reason to do opposite things. This is why I will stick with debian image at bow:latest, and will add subname bow/alpine:latest for other base images, so people can choose whatever they like more.

The second, because of the layer system, it doesn't matter what the base image is, while it is the same base image across all the infrastructure. You'll only need to get diff layer (app layer in this case) which has the same size in both cases.

JermineHu commented 6 years ago

Yes ,I know the docker images used layer system. I agree that multiple versions are suitable for different scenarios .