Week 06: Containerisation and YAML 1 Agenda YAML Engine commands & Compose orchestrator (Demo) Iteration 05 2 Let's start 3 YAML users: name: Pavol surname: Habera pseudonym: Porodca songs: - Je to vo hviezdach name: Jan surname: Pokorný pseudonym: Pokáč songs: - Matfyzák na discu name: Braňo surname: Mojsej pseudonym: Braňo songs: - Dal by Som Si Teba 4 Best practices for Containerfiles Image should be as small as possible Use official base image Use image with lowest amount of vulnerabilities Do not use root user Do COPY as a last step Make context as small as possible with .dockerignore Use healthcheck when possible Do not include development tools, packages inside of the image Handle exit codes in your application Use array syntax for CMD and ENTRYPOINT Use fixed tags with versions/hashes 1 process per Container 5 Hands on: Demo Download demo from Interactive syllabus Read index.md 6 Hands on: Iteration 05 You can find the assignment in GitLab issues as well as in the interactive syllabus. Let's take a look together. 7 Before you start: Please check whether your tutor has already accepted your MR If they have, make sure you have merged your solution from the previous week Note: if your tutor has not seen your MR, it's completely ok. You do not need to have the previous iteration merged to be able to work on a new one - iterations are independent. However, if you do have an accepted MR that still has not been merged, make sure to merge it first. 8