Comments (4)
In our daily @garciparedes has pointed out that creating the database on microservices' startup means giving them permission to create databases but also to delete them. This might create problems since a microservice might delete others databases.
from minos-cli.
Maybe just giving creation permission to every microservice might do the trick?
Another options, as we've discussed, is to create databases from an admin microservice or panel.
Any further ideas? @Clariteia/core-devs 🤔
from minos-cli.
Hi @albamig, I agree with you in the sense that having to create databases manually is an awful task, and even more if it requires restarting the database container (like in the case of our docker-compose.yml
examples).
My proposal here is to have an outer configuration layer with that responsibility (as it's not only a microservice setup, but an environment one). Maybe that tool could be able to manage both database creations and also the roles to access them. Thinking about that, I'm getting another interesting use cases for this management tool such as key generation for secure connections among microservices and so on. I think this kind of tasks could fit within the minos-cli
package. 🙂
from minos-cli.
According to the lasts decisions related with this topic (the database creation process should be performed by the microservice generator), I'll proceed transferring to the https://github.com/Clariteia/minos repository
from minos-cli.
Related Issues (20)
- Use Confluent's Kafka image
- Update microservices' Dockerfile to image `0.1.9`
- Fix minos-cli new microservice template HOT 1
- Delete `deploy` from CLI provisionally
- Update README
- add version command
- Create microservices in `microservices` directory
- reformat session instance in query service Repository
- `__pycache__` should not be in templates HOT 1
- Delete `init` command
- The cli create a project with a wrong SQLAlchemy dependency HOT 1
- QueryService does not have the repository injection HOT 1
- The injections of config.yml does not containe the Repository of queryService HOT 1
- Minos Cli set database command generate incorrect external postgres files HOT 1
- Minos Cli `set discovery` command return an incorrect redis configuration in dockecompose HOT 2
- [help wanted] ImportError: cannot import name 'soft_unicode' from 'markupsafe' HOT 1
- Delete `.build_docker_compose.txt` after execution
- Create integration tests
- Command new microservice generate incorrect scaffold HOT 1
- Create `delete` command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minos-cli.