4.0 Application Deployment and Security Flashcards
What are two advantages of Container technology as opposed to virtural machine technology?
Direct access to bare-metal hardware
Optimal use of system resources
LXC
Linux Containers
What is LXC
LXC provides virtualization at the operating system level by allowing multiple Linux environments to run on a shared Linux kernel, where each environment has its own process and network space.
What is DevOps?
a change in culture and process that emphasizes increased collaboration between teams such as software, developers, IT operations, and other services (for example, quality assurance). Though DevOps has primarily focused on development and systems, the principles solve real-world problems that network operators struggle with daily as well.
What is Devops?
A change in operational approach and mindset
A cultural movement
What are some DevOps principles?
Iterative Incremental Continuous Automated Self-service Collaborative Holistic
What DevOps principle breaks the working process of DevOps into smaller bits. This allows tests to be included in the early stages of DevOps and helps with faster error checks?
Iterative
What DevOps principle define that Projects need to be developed in small and rapid incremental cycles?
Incremental
What DevOps principle Merge the development (testing) and deployment into a single improved and simpler process?
Continuous
What DevOps principle Everything that can be automated should be automated? This adds speed and precision to the process.
Automated
What DevOps principle Every IT engineer should have the same development environment to develop and test projects.
Self-service
What DevOps principle The DevOps team needs to be united, work together, and help each other during the entire DevOps life cycle?
Collaborative
What DevOps principle The DevOps process needs to be treated as a whole process, rather than just a couple of smaller tasks?
Holistic
The directory where the Dockerfile is located is called what?
context
What instruction must a Dockerfile begin with?
FROM
What Dockerfile instruction specifies the parent image?
FROM
What Dockerfile instruction is an exception and can be placed before the FROM instruction?
ARG - in case arguments are used in the FROM instruction
What are the steps to building a container?
- Write the Dockerfile
- Add files to the build’s context
- Build the image using the “docker build” command
- Start the container with the new image.
T/F - Convention dictates the instructions in a Dockerfile be uppercase?
True
T/F Dockerfiles must start with the FROM instruction.
True
T/F In a Dockerfile, # lines are comments.
True
Dockerfile basic instructions - Specifies the parent (base) image to be used for the following instructions in the Dockerfile.
FROM
Dockerfile basic instructions - Used to copy files or directories from the build’s context into the container. The destination can be an absolute or a relative path in the container file system. Relative paths are relative to the working directory.
COPY
Dockerfile basic instructions - Creates a new environment variable or sets a value of an existing variable inside the container. There are two possible ways of defining the environment variables, with or without the “=” sign. By using “=”, multiple variables can be set in the same instruction.
ENV