- clone code from this repo
git clone https://github.com/aliraee/tps.git
- build docker image
docker build -t tapsi-interview .
- run django project
docker run --rm -p 8000:8000 --name app tapsi-interview
-
after run container you can open this url http://127.0.0.1:8000/ip/
-
you can enter your desiered IP in HTML Form tab and ping to entered IP. this is simple request data format in raw query
{ "ip" : "192.168.1.1" }
-
for option you can run project test by this command after setting up a running container of this project
docker exec -it app python manage.py test