We should be working in a dockerized env that matches prod more than ever with the nature of dataline. Should be easy given the dockerfile we have, we just have to add a docker compose maybe with some volume mounts to mount the code in so we don't have to rebuild the changes?
Actually theres a tiny challenge cause we build the frontend in the prod image, can't really mount a build cause we want changes to propagate
probably need a diff dockerfile
But also we want to see logs more easily while debugging, should be visible in docker logs
I think we don't have to use supervisord in the dev setup just because it's not really doing anything complex
Do we want them both to be on one container? Maybe? I think the backend is def sensitive to mounting issues, the FE not so. What if we just do a docker compose for development, with FE in one container and BE in another? It doesn't matter much I think right? Won't have an effect in terms of being "close to prod"
We can definitely leverage the existing dockerfile and still get a dev environment, just have to specify the "target" in the compose file.
We should be working in a dockerized env that matches prod more than ever with the nature of dataline. Should be easy given the dockerfile we have, we just have to add a docker compose maybe with some volume mounts to mount the code in so we don't have to rebuild the changes?
Actually theres a tiny challenge cause we build the frontend in the prod image, can't really mount a build cause we want changes to propagate
probably need a diff dockerfile
But also we want to see logs more easily while debugging, should be visible in docker logs
I think we don't have to use supervisord in the dev setup just because it's not really doing anything complex
Do we want them both to be on one container? Maybe? I think the backend is def sensitive to mounting issues, the FE not so. What if we just do a docker compose for development, with FE in one container and BE in another? It doesn't matter much I think right? Won't have an effect in terms of being "close to prod"
We can definitely leverage the existing dockerfile and still get a dev environment, just have to specify the "target" in the compose file.