Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Dockerfile #60

Open
Immortalin opened this issue Jul 28, 2018 · 4 comments
Open

Create a Dockerfile #60

Immortalin opened this issue Jul 28, 2018 · 4 comments

Comments

@Immortalin
Copy link

Cmail looks really nice :) Thanks for building it, a dockerfile would make deployment significantly easier.

@cbdevnet
Copy link
Member

Thanks for your interest! I'm not that big a fan of docker, but it shouldn't be too hard to do :)
I'll look into it

@cbdevnet cbdevnet self-assigned this Jul 28, 2018
@cbdevnet cbdevnet changed the title Docker Create a Dockerfile Jul 28, 2018
@Immortalin
Copy link
Author

@cbdevnet why do you not like docker? It's similar to cmail in spirit, makes concepts introduced by stuff like BSD jails much more accessible etc.

@cbdevnet
Copy link
Member

cbdevnet commented Jul 29, 2018

I mostly think its an overhyped, over-commercialised wrapper over concepts that work pretty well on their own (namespaces, etc), but I accept the reality that people seem to like it :).

I guess it has too much of the "framework" feel to it, which I am especially weary of in software development ;)

@cbdevnet
Copy link
Member

cbdevnet commented Aug 1, 2018

There is now a dockerfile in the docker/ directory within the repo. I have only done cursory testing, but the daemons are built and run at least.

There is still a problem generating the temporary snakeoil TLS key material within docker build, we should probably pull in / generate an external OpenSSL configuration for that (you can sidestep it by passing in a certificate from the host). Might be nice to integrate a semi-automatic Lets Encrypt process somehow.

The service supervisor is currently a crude bash script, this could probably be done nicer.

The core database is mounted into the container via a volume, we might need to see what the best route for interaction with the admin tools is in this case (Run bash in container? Pass arguments to docker run? Modify db on host?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants