Application deployment and Security Flashcards
Name the 4 tier structure for app deployment
Development
Testing
Staging
Production
Development models (types of servers)? (4)
Bare Metal
Virtual Machine
Container Based
Serverless
Difference between type 1 and type 2 hypervisor
Type 1 - Bare metal
Type 2 - runs as an application on a OS
Types of infrastructure? (5)
On-premise Private Cloud Public Cloud Hybrid Cloud Edge Cloud
What is docker?
Container based solution to contain an application, without worrying about underlying OS libraries etc.
Dockerfile - to pull from and existing image (first line of docker file)?
FROM
Dockerfile - set the working directory
WORKDIR
Dockerfile - copy files
COPY
Dockerfile - execute commands when docker starts
CMD
Dockerfile - execute commands as part of the build
RUN
Command to build docker image
docker build -t .
Start a docker image
docker run image_name
docker run -P vs -p
- p 8080:80 will translate local port 8080 to docker port 80
- P will use the dockerfile EXPOSE ports to local random ports
docker run but detach option
docker run -d image_name
docker - enter an running container
docker exec -it container_name /bin/sh