Containers

We will now create our own

Dockerfile

to specify a container

that compiles C++ code,

and then runs it!

We will deploy the container using

FROM ubuntu:22.04

MAINTAINER CS410.net version: 0.1


ADD converter.cc converter.cc

RUN apt-get update
RUN apt-get install -y g++
RUN g++ -o converter converter.cc

ENTRYPOINT ["./converter"]

Dockerfile

Docker commands we used today:

# build the container from the Dockerfile
docker build -t TAG .

# run the container interactively
docker run -it TAG

# login to DockerHub
docker login

# deploy the container
docker push TAG:latest

TAG == haehn/cs410_2023_2

We can never know it all.

But we can be curious.

alias docker=podman

MicroVMs for AWS

No daemon required

Container Orchestration

Run many containers on a cluster

Scalability

Docker Swarm

Kubernetes

easy

complex

57 days!

3/31    updated project proposal

class diagram / sequence diagram...

final technology choices

CS410 Lecture 21

By Daniel Haehn

CS410 Lecture 21

Slides for CS410 Software Engineering at UMass Boston. See https://cs410.net!

  • 265