Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. build:
  2. @echo "----------------------------------------------------------------"
  3. @echo "Update of djangowebexpe image"
  4. @echo "----------------------------------------------------------------"
  5. docker build --no-cache . --tag djangowebexpe
  6. @echo "----------------------------------------------------------------"
  7. @echo "Image is now build you can run instance using 'make run'
  8. @echo "----------------------------------------------------------------"
  9. run:
  10. @echo "----------------------------------------------------------------"
  11. @echo "Process to run new instance"
  12. @echo "----------------------------------------------------------------"
  13. docker-compose up
  14. @echo "----------------------------------------------------------------"
  15. @echo "Your docker instance is now launched with name 'webexpeinstance'"
  16. @echo "Your website is now accessible at http://localhost:8000"
  17. @echo "----------------------------------------------------------------"
  18. stop:
  19. @echo "----------------------------------------------------------------"
  20. @echo "Process to stop current instance"
  21. @echo "----------------------------------------------------------------"
  22. docker stop webexpeinstance
  23. @echo "----------------------------------------------------------------"
  24. @echo "App is now stopped"
  25. @echo "----------------------------------------------------------------"
  26. remove:
  27. @echo "----------------------------------------------------------------"
  28. @echo "Process to stop current instance"
  29. @echo "----------------------------------------------------------------"
  30. docker stop webexpeinstance
  31. docker rm webexpeinstance
  32. @echo "----------------------------------------------------------------"
  33. @echo "App is now stopped and removed"
  34. @echo "----------------------------------------------------------------"
  35. deploy: build run