-
Notifications
You must be signed in to change notification settings - Fork 67
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
OJS installed by default or better not? #24
Comments
@marcbria , i think you're confusing the docker image with de compose file, the image by default is 0, the compose file where we need to create an environment for example as quick as possible for the user is set to 1. Remember that the docker-compose file serves as an example on how to setup the env for the user. So if the variable is not defined over the docker-compose the default will be used, in this case, will be 0. But yes, i think we need add that variable to the .ENV of the compose file. The README represents the container, not the docker-compose. I think i'll create and examples folder as quick as i'm able to, because letting the docker-compose in the root of project is going to confuse the users. What you think? |
Which of those 3 will be the usual target? |
Heres what i think, the three target are the usual usage, but only the tester will need the data to "test" the OJS. The good thing about the docker-compose is that the developer and the devops (production) will be able to customize the initialization to his own need. So by my opinio we should let OJS_CLI_INSTALL=0 over the Dockfile, and the OJS_CLI_INSTALL=1 over the compose file, because at the docker-compose we're most using this to test or to first bootstrap the project. For example, i'm working as a sysadmin / devops at my institution, i use this docker-compose only as reference, because i have to re-declare it over my container management infraestructure, and than customize with my own certs, traefik-rules, etc... I'm sugest to let the things as they are now, and we focus over the PWD for end-user testing purposes. The developer normally has its own data so i don't think we should need the example data for it. Thanks @marcbria |
You convinced me. About the demo scenario do you want me to ask for the demo mysqldump and files? |
@marcbria , if you could ask that it would be great, i'm just testing PWD and now it seems to work, enabling and environment to user test with data would be great. |
Ok. Let's keep this issue open to remember.
What url? I call it as you pointed in #12 but it's not working to me. :-( |
Using the URL below: https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/lucasdiedrich/ojs/test/docker-compose.yml I really doesn't know, but i think we will not be able to setup and PWD with data, but i can test it if i have the data. |
I will dig into this... |
In last releases, OJS_CLI_INSTALL variable is set to 1 by default.
README.md says it's 0.
I'm unsure if need to be 1 or 0 by default... I don't have an strong opinion about this. :-(
With a preinstalled image you don't need to worry about database configuration and you can start playing with the tool in seconds. In the other hand, your site will be installed with default info (insecure) and you will have the blur sensation you missed something. It's nice for developing or demo sites, but not for production.
With a non-installed image you will need to deal with the installation form (set db/usr/pwd/driver correctly), that it's not obvious for newcomers and make repetitive tasks, but you have more control about the process. It's good production, but not for developers.
Probably it's better going conservative here and set it to 0, to avoid facilitate people go to production without changing pwds and so on? It's up to you @lucasdiedrich
I'm thinking here that would be nice a third status... a "demo mode" with a jounral and articles preinstalled. It will be really useful for testing and those who like tot test ojs. If you like the idea I can ask for a "demo" database dump (please, open a new issue to keep things sorted :-D)
Any way, we need to ensure:
OJS_CLI_INSTALL: ${OJS_CLI_INSTALL:-0}
If you want a PR, you only need to ask.
The text was updated successfully, but these errors were encountered: