-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Docker production environment #1006
Comments
An example about how I imagine a Fidus Writer production environment is given with moritzfl/docker-fiduswriter#10
Later one could also integrate https://github.com/migonzalvar/dj-email-url |
Hey, Besides Docker, Fidus Writer is mainly distributed using Ubuntu Snap and we are maintaining startup scripts, etc. for that. There isn't really a need to make major changes to anything in configuration.py for that to work. I am not entirely sure what you are asking for, but it sounds like you are talking about packaging Fidus Writer in some other way and that is fine and can be done in another repository (also in this org, for example), but I don't see any need for changing this repository fundamentally at this stage because it works just fine as it is for Ubuntu Snap. Does that make sense? Or maybe I just didn't understand your proposal @almereyda ? |
Indeed, the example given is a Docker Compose setup in a third-party repository that exemplifies how one can implement the 12factors.net design into a complete environment. It could very well live as There are two changes in the remote, that I would like to propose and put for discussion here. These are their rationales:
Under these assumptions, is it possible for you and your team to consider supporting a production-ready Docker release directly in the codebase? |
Hey, I'd like to not put it into the main repository as I really do not want to make this Docker dependent which will make the repository more complicated than what it needs to be. I understand Docker is useful for some people in some situations, but not everyone all the time. For example, for me with the Ubuntu Snap packaging approach it seems a lot easier to maintain 300+ servers in sync with the newest Fidus Writer version than anything I have ever experienced doing with Docker. I have to use Docker for other projects, and for me it just always eats up more time trying to figure out what broke last than what Docker possible can have helped me gain. |
As for your comments 1. and 2. @almereyda :
|
Thank you for the details about your Snap packaging. I wasn't aware of it. To run the container sufficiently, instead of relying on the hardcoded The last iteration of that setup is available through https://github.com/moritzfl/docker-fiduswriter/pull/10/files and works sufficently in a production environment scheduled with Docker Compose through libre.sh. It could possibly also be orchestrated with Docker Swarm. The image file should as well run in Kubernetes with minimum effort, which is not an issue here anymore. |
Maybe I was not reading this correctly. I never understood completely that you were offering to have an official docker repository in this organisation, which you brought up twice. Sorry for the debate caused. This is now https://github.com/fiduswriter/fiduswriter-docker |
Yes, it would be greatly appreciated if you could help with that package! |
It's on my radar now, and I will update our instance to it, providing comments and rectifications where needed. I'm still sorry for having misunderstood you back then. |
The Docker environment introduced with https://github.com/moritzfl/docker-fiduswriter that runs on SQLite allows local testing and has configuration facilities.
Considering to run an instance of Fidus Writer on our own, we would like to describe a production deployment in code and seek which design patterns can be employed to work towards the https://12factors.net. moritzfl/docker-fiduswriter#9
This would include to prefer reading the application configuration from environment variables, instead of configuration files, and show exemplary how a third-party database can be employed.
The text was updated successfully, but these errors were encountered: