cozy-docker icon indicating copy to clipboard operation
cozy-docker copied to clipboard

Smaller docker images

Open pierreozoux opened this issue 10 years ago • 12 comments

Yep!

Checking this now.

It would be amazing to have smaller images.

I imagine something like:

  • a running cozy
  • a running cozy with ssl
  • a running cozy with ssl and couchdb and emails

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!

pierreozoux avatar May 24 '15 20:05 pierreozoux

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

frankrousseau avatar May 25 '15 07:05 frankrousseau

@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.

spiroid avatar Aug 15 '15 22:08 spiroid

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

pierreozoux avatar Aug 16 '15 08:08 pierreozoux

:)

frankrousseau avatar Aug 17 '15 08:08 frankrousseau

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

Yamakaky avatar Jan 25 '16 17:01 Yamakaky

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

frankrousseau avatar Jan 26 '16 18:01 frankrousseau

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

kosssi avatar Jan 27 '16 08:01 kosssi

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.

Yamakaky avatar Jan 28 '16 08:01 Yamakaky

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

kosssi avatar Jan 28 '16 10:01 kosssi

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.

nledez avatar Jan 28 '16 17:01 nledez

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 avatar Jan 28 '16 19:01 spiroid

@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 :)

spiroid avatar Jan 28 '16 19:01 spiroid