drf_course icon indicating copy to clipboard operation
drf_course copied to clipboard

drf_course module 3 not using Docker

Open hooch21 opened this issue 2 years ago • 0 comments

I am following your drf_course. In module_3 you use Docker to access the api:8000/contact/... endpoint. Some of us did not want to install Docker. Can you please tell us how we can test the api in module 3 if we did not install Docker? I started the server and I can access localserver:8000 but I cannot access api:8000...

At the very least, please explain to your audience why you chose to use Docker. I have the Docker installer but Docker looks very 'heavy' and I am not sure I want to install it on my system.

I downloaded and installed Docker. It installed properly. But I did not understand how to view the app and api in Docker. This could have been a really good tutorial, but you assumed way too much. You should have told people what you were doing in Docker. Docker is/was a big problem here but you seem to totally oblivious to that. I cannot go on. I suspect you loose 90% of the people who try this tutorial at this point. You need to fix that.

With a little more Docker experience, I can tell you that the api container is not starting. There is a message in the log file that says the entrypoint.sh file was not found.

Also, the docker-compose.yml file has a version: 3.7. Is that supposed to be the version of Docker that we are using? Will it make a difference? I have downloaded DockerDesktop 4.17.1.

Since I just downloaded docker, I deleted drf_course on my computer and started over. My thinking was, that I could start with module_4. You comments in the steps file made me think that if I started in that module, the directory structure on my computer would be correct. However, the .env file was not there. (At least that is what docker told me when I issued the docker-compose up -d --build command. (I cannot remember in which step we created the .env file)

The .gitignore file contains the .env file so it is not saved in the git repository on github. Actually, there are many many files in the .gitignore file. So it is not possible to start at module_4. It appears you have to start at module_1.

Thanks in advance

hooch21 avatar Apr 16 '23 23:04 hooch21