-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improve docker-compose example to bypass setup command #33
Comments
Why do we need to duplicate it and cannot use |
I wanted to reduce number of steps for users but I see the corruption point, I'll revert my last change. Speaking of setup, let me question the existence of |
I think these are two semantically different tasks: launching something and deploying infrastructure for something. I personally would not expect something to deploy entities when I intend to launch it. Another questions that we want to raise - how many things we want to auto-deploy (api keys, meta schemas, empty draft etc)? At what point it will become completely opaque to user what they have just deployed during first launch? What happens if at some point we decide to add a non-idempotent entity? Also, how much manual labor does it add to execute one command? As a middle-ground however there's this ticket: #10 However, I think it makes sense to turn the error message for non-existing table into a guide on what to do. |
I agree with the idea that these tasks have different semantics while I personally would like to see auto deployment of tables since it isn't usage or user specific and same thing for all usages. I'd not auto-deploy super api key for security concerns. Even though this step isn't much manual labor, this approach can accumulate itself and result in a future version of this project where each semantically different task requires another command to run. I'm not sure how many different semantics we can possible have here but a point to think about. I liked #10 . It really looks like a middle ground for this discussion. From the original ticket:
I think there is another option here; drop tables if exists and create them from scratch. I don't strongly advocate none of the options but curious to see why you preferred the other way. |
I did some work improving the docker-compose setup. See this branch. Instead of fixing The remaining problem is the user needs to manually add an api key, by executing some sql in the postrgres container. I added instructions to the readme for how to do this, but it's a bit hacky. A nicer option is to extend the An alternative solution is to add a new command wdyt? |
I like what you did, @istreeter! And think |
We need to run
setup
command and insert a super API key before we can start using the server. We can improve UX of Iglu Server in docker-compose world by replicatingsetup
command withininit.sql
.The text was updated successfully, but these errors were encountered: