-
Notifications
You must be signed in to change notification settings - Fork 7
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
Dockerise to make it nice #296
Comments
Hi @bizmate, first of all, thank you for the contribution, |
Also as a separate feedback, the steps used in the README do not necessarily seem to fully work and there is a lot of manual parts, ie it is great that the Netlify or other hosting solutions are mentioned but this is neither local nor it does work (based on what i tried) by just cloning the template. However if you have docker you can just copy the template, get the environment variables and deploy with just make up. Anyhow feel free to discard it in case you think it is an overhead |
Sorry if the steps were not working properly for you, did you try the quick setup option? it basically sets everything up for you and provides you with a ready |
I appreciate your reply and no need to be sorry, it is a learning process but I think some of its focus could be on the Wix side rather than the tooling itself and if you and Wix think that docker is not a good choice you should not embrace it. The part that did not work is actually to get node running on the localhost consistently and get a version that would be compatible/support. With docker you do not have that problem but i admin this specific implementation is not tested on Windows, I run both Linux and Mac and works on both. Also the manual part of Netlify does not work, I think you actually need to have an account there and deploy somehow the app... I did not troubleshoot it. It takes me far less time to run it locally with Docker
I included the steps actually as extra as carefully mentioned in the README, none of the manual steps are actually removed. If the extra lines of docker make you think it is taking over then you should not embrace as mentioned in the previous comment but simply it makes the process of running npm install/run and the mapping of a domain to its local environment much quicker with the help of ngrok. The ngrok part is also quite important as I think the app URLs with HTTPS pointing to localhost might not work. See this on Discord https://discord.com/channels/1114269395317968906/1321409153385758772/1321490912760692849
I think you are getting a bit confused there with the docker example in the NextJS document. That example builds an image on the basis of the use of a Dockerfile as mentioned in that repo. That file will not allow to develop locally as there is no volume. Once that image is build it will run on your machine or you can indeed deploy it on a solution but the code will be built in the image and if you make a change locally it will not reflect on the image as there is no volume mount. The use of docker compose in the PR is usually more suited for local development but also it can easily be customised with multiple docker compose files, or k8s deployment files, to also easily deploy on a UAT up to prod. BTW again no stress if you are not familiar with Docker or if the Wix team is not happy with it but if you have any questions also feel free to msg me on discord. |
As per title, it might make it much easier for devs to get it up with docker locally, I ll create an informal PR and link it to this from my fork. I hope it is welcome
The text was updated successfully, but these errors were encountered: