.. index:: pair: News ; 2018-01-29 .. _01_2018_01_29: ===================================================================================================================================================== Lundi 29 janvier 2018 : encore un nouveau tutoriel : A Simple Recipe for Django Development In Docker (Bonus: Testing with Selenium) de Jacob Cook ===================================================================================================================================================== .. seealso:: - https://medium.com/@adamzeitcode/a-simple-recipe-for-django-development-in-docker-bonus-testing-with-selenium-6a038ec19ba5 .. toctree:: :maxdepth: 3 Analyse et plan de travail pour la journée ============================================ S'inspirer des 4 tutoriels pour créer les fichiers Dockerfile et Docker-compose.yml - https://medium.com/@adamzeitcode/a-simple-recipe-for-django-development-in-docker-bonus-testing-with-selenium-6a038ec19ba5 - https://peakwinter.net/blog/modern-devops-django/ - https://www.revsys.com/tidbits/brief-intro-docker-djangonauts/ - https://wsvincent.com/django-docker-postgresql/ Autre projet intéressant ========================== dockerize-all-the-things -------------------------- .. seealso:: - https://github.com/DrewDahlman/dockerize-all-the-things Kill it with fire +++++++++++++++++++ - docker rm $(docker ps -a -q) - Kills all containers - docker rmi $(docker images -q) - will toast ALL of your images Something to keep in mind is that sometimes docker containers and images can get bloated on your machine and you might have to toast everything. The great thing about using docker like this is that you can quickly rebuild a project and get right back into working. Also when you close a console you are not stopping the container, you always need to run docker-compose down when stopping a project, otherwise it will just keep running in the background. docker rm $(docker ps -a -q) :: PS Y:\projects_id3\P5N001\XLOGCA135_tutorial_docker\tutorial_docker\actions_news\2018\2018_01\01__2018_01_29> docker rm $(docker ps -a -q) :: 367ce1d9818a c467c2469b34 7fb912b6a3e2 1746a16a91eb 6ee9dc365c9d 8ae3930ee2d6 97592a1a70ea 8ffcde2f70f6 3d1169398f02 e629ebfc3981 ddbe7a8e2502 7c1afd485479 ebe371507dc2 2b8fff5f4068 cb62ace67ba4 685915373a4c e150d0531321 7d6e93a39de5 807d38ada261 eebf7e801b96 :: PS Y:\projects_id3\P5N001\XLOGCA135_tutorial_docker\tutorial_docker\actions_news\2018\2018_01\01__2018_01_29> docker rmi -f $(docker images -q) :: Untagged: saleor_celery:latest Untagged: saleor_web:latest Deleted: sha256:fe40ed7484fe2f111dfdc7b8e79d3353534f29cc28c9019a0b0d6fcb2b624ac4 Deleted: sha256:b49f310a4175a6f56d4ad302c60307c989774a7c853a6dd068cbf68fc234926c Deleted: sha256:5601669ae105acb6a632cd7d3dd473158b25ff6f1c7d65a95b04a2c12bad713d Deleted: sha256:bf662c677b1ec758f37dac85c90d55c0c005be7f283723f0f85deaf1e0418c1c Deleted: sha256:08889c646f293f56cf2a4bc2087a7fe3263f745536f9dd6c0d910264b2e10361 Deleted: sha256:64b9f0663d35de8d404374e8574484d60195e55507b3a87897821bc383c1b69d Deleted: sha256:716475184da4626198a7da0d47d14072b4bb7c96384b1c6e67eb97daecd25b25 Deleted: sha256:9deb54f781dd986aab78aeaebeef6ed8c587837595b02f7fb8b9008eb80006d6 Deleted: sha256:bb6904496c708da82760b2ca6e3f737608180e377ba88129060318a7af311398 Deleted: sha256:bc59713a5080512001bf80eecce306b85096858601f07ce23d8e0a9233ad69d9