Giter VIP home page Giter VIP logo

docker-introduction's Introduction

Dockerfile

  1. Ukázat projekt
  2. Overit ze nejede db
  3. Ukazat, ze aplikace nenastartuje
  4. Cilem příkladu je ukázat, jak používat docker...

Nezapominat buildit projekt, musí existovat jar...

  1. vysvětlit docker file
  2. docker build -f Dockerfile -t docker-example-app:dockerfile .
  3. docker image ls ukázat že image exituje

nejdrive ukazat bez configu v docker compose

docker ps docker container ls

Docker container

  1. Pustit DB docker run -d -p 5432:5432 --name postgres-database -e POSTGRES_PASSWORD=postgres -e POSTGRES_PASSWORD=postgres postgres
  2. Pustit aplicaci a ukazat ulozeni DB a následné načtení.
  3. Odstranit container - docker container rm <id>
  4. Odstranit image - docker ima rm <id>
  5. Pustit DB znova
  6. Ukazat, ze předchozí data nejsou uložena
  7. Pustit aplikaci - docker run -d --name testapp -p 8085:8085 docker-example-app:dockerfile - detach mode, exposing port, musí jet DB

Docker compose

Na začátku stopnout vytvořené containery... a odstranit image...

  1. nejdrive pustit DB a vysvetlit:
    • docker compose
    • volume
    • pustit db s volume - predvest, ze se ulozi z localhostu
  2. Pustit aplikaci v dockeru:
    • vysvetlit docker compose
    • exposing ports
    • docker ps
    • ukazat env. variables
    • vysvetlit load balancing
    • vysvetlit a ukazat site

docker-introduction's People

Contributors

rasochejl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.