-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add docker-compose for development #5
base: master
Are you sure you want to change the base?
Conversation
I think maybe it would be nicer if there was some kind of CLI command available that could do something similar to this for you, except using the already provided distro code etc. So one for example could do:
This way the entire process is pretty straight forward:
(heck, the |
The reason I'm suggesting a solution like this is because the process of installing a package for viewing (especially if prebuilt or distributed on ex npm) or development purposes already is relatively simple. And if the idea is to simplify it even more, then some kind of automation is the simplest solution and does not require to add anything into the packages themselves (which means more maintenance and chances of breakage). It's possible to do this inside Docker as well, or even provide a way to quicky run a demo of any app by doing for example:
This just does the steps described above. But for a development environment then using the provided distro is pretty much the way to go :) |
Hi, Thanks for the response:) I do agree with the overall idea of adding a command to What I want to propose is sth like this:
The above instructions are pretty straightforward and can be done by only executing one command: If you agree with the general idea, I will start working on it in the |
One drawback to your suggestion is that you'll end up with a lot of osjs installations (hence lots of node modules). Also, copying things into Just a note; it's possible to define custom discovery paths.
But this is what happens in your step 1, isn't it ?! The idea behind the "distro" repo as I call it is to use it as an environment for everything. If it's configured to run as a monorepo you can have a single source of Though, I definitely see the value of being able to spin up almost like a sandboxed environment for package development. So maybe there's a solution in the middle of both of the suggestions. |
Hi,
This PR will add a
docker-compose.yml
for local development. It is best if anyone could see their application right inside the OSJS when they are developing their app, and changes were live. So I added adocker-compose
to achieve so. Also, everyone can see a demo of others' apps with only one command (docker compose up
).