cozy-labs / cozy-docker

Dockerfile to build an official Cozy image
44 stars 26 forks source link

Smaller docker images #6

Open pierreozoux opened 9 years ago

pierreozoux commented 9 years ago

Yep!

Checking this now.

It would be amazing to have smaller images.

I imagine something like:

I really love the way discourse is handling things: https://github.com/discourse/discourse_docker/

I'll PR this week if I have time!

Cheers!

frankrousseau commented 9 years ago

Thank you @pierreozoux for reporting. I let @Kloadut and @nledez see what we can do for that one. And yes, feel free to contribute :)

spiroid commented 9 years ago

@frankrousseau, @pierreozoux: i started some work to have smaller docker images, see : https://forum.cozy.io/t/docker-smaller-images/1162.

Any feedback and contribution are appreciated :) thx.

pierreozoux commented 9 years ago

Yes, didn't have time at the end :/ Thanks a lot @spiroid! I'll comment on the forum :)

frankrousseau commented 9 years ago

:)

Yamakaky commented 8 years ago

You could also use alpine linux as a base image, it would really slime down the size of the containers.

frankrousseau commented 8 years ago

@nledez @kosssi What do you thing about Alpine images?

kosssi commented 8 years ago

I love it :heart: It's optimization so we can do it after but all my cloud docker is make with Alpine ;)

Yamakaky commented 8 years ago

I was thinking: you should not force the user to use the containers. Fox example, on my server, there is already nginx, I don't need another. Maybe then keep the full container and propose slim containers as began by @spiroid with a Compose file. It would be easier to integrate cozy in an existing stack.

kosssi commented 8 years ago

Yes it's the idea but for now it's not so easy to split ;)

nledez commented 8 years ago

Hello @Yamakaky,

For now the Docker image exist to simplify testing.

We work on docker-compose, but it's not ready for publish. We focus on a better Debian packaging.

And for alpine subject. This is a wonderfull distribution for simple apps. But Cozy may have some dependencies who come from external apps.

We take the party to support only Debian & Ubuntu for the momment.

And we plan to publish a docker-compose with separated services. We can't anounce a release date. But I can be very happy if community create one before.

spiroid commented 8 years ago

hello @Yamakaky, @nledez

If you're interested in splitting the docker image in smaller images, we already initiated the work with several cozy-* images. I also created a repository with a docker-compose file to tie them together : https://github.com/spiroid/cozy

It is working and i use it for my personal cozy instance. For now it really lacks documentation and is clearly my next task.

You could also have a look at that forum page : https://forum.cozy.io/t/docker-smaller-images/1162 that i'll keep updated when new featues / fixes will be added.

spiroid commented 8 years ago

@Yamakaky : you can clearly run this stack without the nginx part by removing it from the docker-compose file.

I'll add a docker-compose file to run the stack without nginx :)