Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSC509 Lecture 11

CSC509 Lecture 11

Software Design
Docker Containers
(202511)

Avatar for Javier Gonzalez-Sanchez

Javier Gonzalez-Sanchez PRO

November 07, 2025
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.info o ffi ce: 14 -227

    CSC 508/9 Software Engineering (Design & Deployment) Lecture 11. Docker
  2. It is not VM • Cont a iners sh a

    re the host oper a ting system kernel, libr a ries, a nd bin a ries. • Virtu a l m a chines run its own guest oper a ting system, • Virtu a l m a chines provide full-blown virtu a liz a tion of h a rdw a re resources, including CPU, memory, stor a ge, a nd networking. 4
  3. Docker | Steps 6 2. A package that includes everything

    needed to run software, including the code, runtime, libraries, dependencies, and configuration files. 3. A container is a runtime instance of an image. It encapsulates the execution environment for a specific application or process, including the filesystem, environment variables, network settings, and runtime options. 1. A text file that contains instructions for building a Docker image
  4. Docker f ile # Environment variables for MySQL ENV MYSQL_ROOT_PASSWORD=root

    ENV MYSQL_DATABASE=yourdbname # Start MySQL and the Java application CMD service mysql start && \ sleep 10 && \ mysql -u root -proot yourdbname < /docker-entrypoint-initdb.d/init.sql && \ java -jar /app/your-app.jar 24
  5. • The project object model (POM) f ile describes a

    project a nd its dependencies. • A st a nd a rdized directory form a t. • Repositories where third-p a rty softw a re is stored a nd discovered. 32
  6. CSC 509 Software Engineering Javier Gonzalez-Sanchez, Ph.D. [email protected] Fall 2025

    Copyright. These slides can only be used as study material for the class CSC509 at Cal Poly. They cannot be distributed or used for another purpose.