Agenda
90 |Learn DevOps with strong foundational knowledge and practical understanding
91 |Please Share the Channel with your friends and colleagues
92 |├── README.md ├── commands.md ├── examples ├── first-docker-file │ ├── Dockerfile │ └── app.py ├── golang-multi-stage-docker-build │ ├── Dockerfile │ ├── README.md │ ├── calculator.go │ └── dockerfile-without-multistage │ │ ├── Dockerfile │ │ └── calculator.go └── python-web-app │ ├── Dockerfile │ ├── devops │ ├── db.sqlite3 │ ├── demo │ │ ├── __init__.py │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-310.pyc │ │ │ ├── urls.cpython-310.pyc │ │ │ └── views.cpython-310.pyc │ │ ├── admin.py │ │ ├── apps.py │ │ ├── migrations │ │ │ └── __init__.py │ │ ├── models.py │ │ ├── templates │ │ │ └── demo_site.html │ │ ├── tests.py │ │ ├── urls.py │ │ └── views.py │ ├── devops │ │ ├── __init__.py │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-310.pyc │ │ │ ├── settings.cpython-310.pyc │ │ │ ├── urls.cpython-310.pyc │ │ │ └── wsgi.cpython-310.pyc │ │ ├── asgi.py │ │ ├── settings.py │ │ ├── urls.py │ │ └── wsgi.py │ └── manage.py │ └── requirements.txt ├── networking.md └── volumes.md /README.md: -------------------------------------------------------------------------------- 1 | # Repo to learn Docker with examples. Contributions are most welcome. 2 | 3 | ## If you found this repo useful, give it a STAR 🌠 4 | 5 | You can watch the video version of this repo on my youtube playlist. -> https://www.youtube.com/watch?v=7JZP345yVjw&list=PLdpzxOOAlwvLjb0vTD9BXLOwwLD_GWCmC 6 | 7 | 8 | ## What is a container ? 9 | 10 | A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings. 11 | 12 | Ok, let me make it easy !!! 13 | 14 | A container is a bundle of Application, Application libraries required to run your application and the minimum system dependencies. 15 | 16 |  17 | 18 | 19 | 20 | ## Containers vs Virtual Machine 21 | 22 | Containers and virtual machines are both technologies used to isolate applications and their dependencies, but they have some key differences: 23 | 24 | 1. Resource Utilization: Containers share the host operating system kernel, making them lighter and faster than VMs. VMs have a full-fledged OS and hypervisor, making them more resource-intensive. 25 | 26 | 2. Portability: Containers are designed to be portable and can run on any system with a compatible host operating system. VMs are less portable as they need a compatible hypervisor to run. 27 | 28 | 3. Security: VMs provide a higher level of security as each VM has its own operating system and can be isolated from the host and other VMs. Containers provide less isolation, as they share the host operating system. 29 | 30 | 4. Management: Managing containers is typically easier than managing VMs, as containers are designed to be lightweight and fast-moving. 31 | 32 | 33 | 34 | ## Why are containers light weight ? 35 | 36 | Containers are lightweight because they use a technology called containerization, which allows them to share the host operating system's kernel and libraries, while still providing isolation for the application and its dependencies. This results in a smaller footprint compared to traditional virtual machines, as the containers do not need to include a full operating system. Additionally, Docker containers are designed to be minimal, only including what is necessary for the application to run, further reducing their size. 37 | 38 | Let's try to understand this with an example: 39 | 40 | Below is the screenshot of official ubuntu base image which you can use for your container. It's just ~ 22 MB, isn't it very small ? on a contrary if you look at official ubuntu VM image it will be close to ~ 2.3 GB. So the container base image is almost 100 times less than VM image. 41 | 42 |  43 | 44 | 45 | To provide a better picture of files and folders that containers base images have and files and folders that containers use from host operating system (not 100 percent accurate -> varies from base image to base image). Refer below. 46 | 47 | 48 | 49 | ### Files and Folders in containers base images 50 | 51 | ``` 52 | /bin: contains binary executable files, such as the ls, cp, and ps commands. 53 | 54 | /sbin: contains system binary executable files, such as the init and shutdown commands. 55 | 56 | /etc: contains configuration files for various system services. 57 | 58 | /lib: contains library files that are used by the binary executables. 59 | 60 | /usr: contains user-related files and utilities, such as applications, libraries, and documentation. 61 | 62 | /var: contains variable data, such as log files, spool files, and temporary files. 63 | 64 | /root: is the home directory of the root user. 65 | ``` 66 | 67 | 68 | 69 | ### Files and Folders that containers use from host operating system 70 | 71 | ``` 72 | The host's file system: Docker containers can access the host file system using bind mounts, which allow the container to read and write files in the host file system. 73 | 74 | Networking stack: The host's networking stack is used to provide network connectivity to the container. Docker containers can be connected to the host's network directly or through a virtual network. 75 | 76 | System calls: The host's kernel handles system calls from the container, which is how the container accesses the host's resources, such as CPU, memory, and I/O. 77 | 78 | Namespaces: Docker containers use Linux namespaces to create isolated environments for the container's processes. Namespaces provide isolation for resources such as the file system, process ID, and network. 79 | 80 | Control groups (cgroups): Docker containers use cgroups to limit and control the amount of resources, such as CPU, memory, and I/O, that a container can access. 81 | 82 | ``` 83 | 84 | It's important to note that while a container uses resources from the host operating system, it is still isolated from the host and other containers, so changes to the container do not affect the host or other containers. 85 | 86 | **Note:** There are multiple ways to reduce your VM image size as well, but I am just talking about the default for easy comparision and understanding. 87 | 88 | so, in a nutshell, container base images are typically smaller compared to VM images because they are designed to be minimalist and only contain the necessary components for running a specific application or service. VMs, on the other hand, emulate an entire operating system, including all its libraries, utilities, and system files, resulting in a much larger size. 89 | 90 | I hope it is now very clear why containers are light weight in nature. 91 | 92 | 93 | 94 | ## Docker 95 | 96 | 97 | ### What is Docker ? 98 | 99 | Docker is a containerization platform that provides easy way to containerize your applications, which means, using Docker you can build container images, run the images to create containers and also push these containers to container regestries such as DockerHub, Quay.io and so on. 100 | 101 | In simple words, you can understand as `containerization is a concept or technology` and `Docker Implements Containerization`. 102 | 103 | 104 | ### Docker Architecture ? 105 | 106 |  107 | 108 | The above picture, clearly indicates that Docker Deamon is brain of Docker. If Docker Deamon is killed, stops working for some reasons, Docker is brain dead :p (sarcasm intended). 109 | 110 | ### Docker LifeCycle 111 | 112 | We can use the above Image as reference to understand the lifecycle of Docker. 113 | 114 | There are three important things, 115 | 116 | 1. docker build -> builds docker images from Dockerfile 117 | 2. docker run -> runs container from docker images 118 | 3. docker push -> push the container image to public/private regestries to share the docker images. 119 | 120 |  121 | 122 | 123 | 124 | ### Understanding the terminology (Inspired from Docker Docs) 125 | 126 | 127 | #### Docker daemon 128 | 129 | The Docker daemon (dockerd) listens for Docker API requests and manages Docker objects such as images, containers, networks, and volumes. A daemon can also communicate with other daemons to manage Docker services. 130 | 131 | 132 | #### Docker client 133 | 134 | The Docker client (docker) is the primary way that many Docker users interact with Docker. When you use commands such as docker run, the client sends these commands to dockerd, which carries them out. The docker command uses the Docker API. The Docker client can communicate with more than one daemon. 135 | 136 | 137 | #### Docker Desktop 138 | 139 | Docker Desktop is an easy-to-install application for your Mac, Windows or Linux environment that enables you to build and share containerized applications and microservices. Docker Desktop includes the Docker daemon (dockerd), the Docker client (docker), Docker Compose, Docker Content Trust, Kubernetes, and Credential Helper. For more information, see Docker Desktop. 140 | 141 | 142 | #### Docker registries 143 | 144 | A Docker registry stores Docker images. Docker Hub is a public registry that anyone can use, and Docker is configured to look for images on Docker Hub by default. You can even run your own private registry. 145 | 146 | When you use the docker pull or docker run commands, the required images are pulled from your configured registry. When you use the docker push command, your image is pushed to your configured registry. 147 | Docker objects 148 | 149 | When you use Docker, you are creating and using images, containers, networks, volumes, plugins, and other objects. This section is a brief overview of some of those objects. 150 | 151 | 152 | #### Dockerfile 153 | 154 | Dockerfile is a file where you provide the steps to build your Docker Image. 155 | 156 | 157 | #### Images 158 | 159 | An image is a read-only template with instructions for creating a Docker container. Often, an image is based on another image, with some additional customization. For example, you may build an image which is based on the ubuntu image, but installs the Apache web server and your application, as well as the configuration details needed to make your application run. 160 | 161 | You might create your own images or you might only use those created by others and published in a registry. To build your own image, you create a Dockerfile with a simple syntax for defining the steps needed to create the image and run it. Each instruction in a Dockerfile creates a layer in the image. When you change the Dockerfile and rebuild the image, only those layers which have changed are rebuilt. This is part of what makes images so lightweight, small, and fast, when compared to other virtualization technologies. 162 | 163 | 164 | 165 | ## INSTALL DOCKER 166 | 167 | A very detailed instructions to install Docker are provide in the below link 168 | 169 | https://docs.docker.com/get-docker/ 170 | 171 | For Demo, 172 | 173 | You can create an Ubuntu EC2 Instance on AWS and run the below commands to install docker. 174 | 175 | ``` 176 | sudo apt update 177 | sudo apt install docker.io -y 178 | ``` 179 | 180 | 181 | ### Start Docker and Grant Access 182 | 183 | A very common mistake that many beginners do is, After they install docker using the sudo access, they miss the step to Start the Docker daemon and grant acess to the user they want to use to interact with docker and run docker commands. 184 | 185 | Always ensure the docker daemon is up and running. 186 | 187 | A easy way to verify your Docker installation is by running the below command 188 | 189 | ``` 190 | docker run hello-world 191 | ``` 192 | 193 | If the output says: 194 | 195 | ``` 196 | docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied. 197 | See 'docker run --help'. 198 | ``` 199 | 200 | This can mean two things, 201 | 1. Docker deamon is not running. 202 | 2. Your user does not have access to run docker commands. 203 | 204 | 205 | ### Start Docker daemon 206 | 207 | You use the below command to verify if the docker daemon is actually started and Active 208 | 209 | ``` 210 | sudo systemctl status docker 211 | ``` 212 | 213 | If you notice that the docker daemon is not running, you can start the daemon using the below command 214 | 215 | ``` 216 | sudo systemctl start docker 217 | ``` 218 | 219 | 220 | ### Grant Access to your user to run docker commands 221 | 222 | To grant access to your user to run the docker command, you should add the user to the Docker Linux group. Docker group is create by default when docker is installed. 223 | 224 | ``` 225 | sudo usermod -aG docker ubuntu 226 | ``` 227 | 228 | In the above command `ubuntu` is the name of the user, you can change the username appropriately. 229 | 230 | **NOTE:** : You need to logout and login back for the changes to be reflected. 231 | 232 | 233 | ### Docker is Installed, up and running 🥳🥳 234 | 235 | Use the same command again, to verify that docker is up and running. 236 | 237 | ``` 238 | docker run hello-world 239 | ``` 240 | 241 | Output should look like: 242 | 243 | ``` 244 | .... 245 | .... 246 | Hello from Docker! 247 | This message shows that your installation appears to be working correctly. 248 | ... 249 | ... 250 | ``` 251 | 252 | 253 | ## Great Job, Now start with the examples folder to write your first Dockerfile and move to the next examples. Happy Learning :) 254 | 255 | ### Clone this repository and move to example folder 256 | 257 | ``` 258 | git clone https://github.com/iam-veeramalla/Docker-Zero-to-Hero 259 | cd examples 260 | ``` 261 | 262 | ### Login to Docker [Create an account with https://hub.docker.com/] 263 | 264 | ``` 265 | docker login 266 | ``` 267 | 268 | ``` 269 | Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. 270 | Username: abhishekf5 271 | Password: 272 | WARNING! Your password will be stored unencrypted in /home/ubuntu/.docker/config.json. 273 | Configure a credential helper to remove this warning. See 274 | https://docs.docker.com/engine/reference/commandline/login/#credentials-store 275 | 276 | Login Succeeded 277 | ``` 278 | 279 | ### Build your first Docker Image 280 | 281 | You need to change the username accoringly in the below command 282 | 283 | ``` 284 | docker build -t abhishekf5/my-first-docker-image:latest . 285 | ``` 286 | 287 | Output of the above command 288 | 289 | ``` 290 | Sending build context to Docker daemon 992.8kB 291 | Step 1/6 : FROM ubuntu:latest 292 | latest: Pulling from library/ubuntu 293 | 677076032cca: Pull complete 294 | Digest: sha256:9a0bdde4188b896a372804be2384015e90e3f84906b750c1a53539b585fbbe7f 295 | Status: Downloaded newer image for ubuntu:latest 296 | ---> 58db3edaf2be 297 | Step 2/6 : WORKDIR /app 298 | ---> Running in 630f5e4db7d3 299 | Removing intermediate container 630f5e4db7d3 300 | ---> 6b1d9f654263 301 | Step 3/6 : COPY . /app 302 | ---> 984edffabc23 303 | Step 4/6 : RUN apt-get update && apt-get install -y python3 python3-pip 304 | ---> Running in a558acdc9b03 305 | Step 5/6 : ENV NAME World 306 | ---> Running in 733207001f2e 307 | Removing intermediate container 733207001f2e 308 | ---> 94128cf6be21 309 | Step 6/6 : CMD ["python3", "app.py"] 310 | ---> Running in 5d60ad3a59ff 311 | Removing intermediate container 5d60ad3a59ff 312 | ---> 960d37536dcd 313 | Successfully built 960d37536dcd 314 | Successfully tagged abhishekf5/my-first-docker-image:latest 315 | ``` 316 | 317 | ### Verify Docker Image is created 318 | 319 | ``` 320 | docker images 321 | ``` 322 | 323 | Output 324 | 325 | ``` 326 | REPOSITORY TAG IMAGE ID CREATED SIZE 327 | abhishekf5/my-first-docker-image latest 960d37536dcd 26 seconds ago 467MB 328 | ubuntu latest 58db3edaf2be 13 days ago 77.8MB 329 | hello-world latest feb5d9fea6a5 16 months ago 13.3kB 330 | ``` 331 | 332 | ### Run your First Docker Container 333 | 334 | ``` 335 | docker run -it abhishekf5/my-first-docker-image 336 | ``` 337 | 338 | Output 339 | 340 | ``` 341 | Hello World 342 | ``` 343 | 344 | ### Push the Image to DockerHub and share it with the world 345 | 346 | ``` 347 | docker push abhishekf5/my-first-docker-image 348 | ``` 349 | 350 | Output 351 | 352 | ``` 353 | Using default tag: latest 354 | The push refers to repository [docker.io/abhishekf5/my-first-docker-image] 355 | 896818320e80: Pushed 356 | b8088c305a52: Pushed 357 | 69dd4ccec1a0: Pushed 358 | c5ff2d88f679: Mounted from library/ubuntu 359 | latest: digest: sha256:6e49841ad9e720a7baedcd41f9b666fcd7b583151d0763fe78101bb8221b1d88 size: 1157 360 | ``` 361 | 362 | ### You must be feeling like a champ already 363 | -------------------------------------------------------------------------------- /commands.md: -------------------------------------------------------------------------------- 1 | # Docker Commands 2 | 3 | Some of the most commonly used docker commands are 4 | 5 | ### docker images 6 | 7 | Lists docker images on the host machine. 8 | 9 | ### docker build 10 | 11 | Builds image from Dockerfile. 12 | 13 | ### docker run 14 | 15 | Runs a Docker container. 16 | 17 | There are many arguments which you can pass to this command for example, 18 | 19 | `docker run -d` -> Run container in background and print container ID 20 | `docker run -p` -> Port mapping 21 | 22 | use `docker run --help` to look into more arguments. 23 | 24 | ### docker ps 25 | 26 | Lists running containers on the host machine. 27 | 28 | ### docker stop 29 | 30 | Stops running container. 31 | 32 | ### docker start 33 | 34 | Starts a stopped container. 35 | 36 | ### docker rm 37 | 38 | Removes a stopped container. 39 | 40 | ### docker rmi 41 | 42 | Removes an image from the host machine. 43 | 44 | ### docker pull 45 | 46 | Downloads an image from the configured registry. 47 | 48 | ### docker push 49 | 50 | Uploads an image to the configured registry. 51 | 52 | ### docker exec 53 | 54 | Run a command in a running container. 55 | 56 | ### docker network 57 | 58 | Manage Docker networks such as creating and removing networks, and connecting containers to networks. 59 | -------------------------------------------------------------------------------- /examples/first-docker-file/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:latest 2 | 3 | # Set the working directory in the image 4 | WORKDIR /app 5 | 6 | # Copy the files from the host file system to the image file system 7 | COPY . /app 8 | 9 | # Install the necessary packages 10 | RUN apt-get update && apt-get install -y python3 python3-pip 11 | 12 | # Set environment variables 13 | ENV NAME World 14 | 15 | # Run a command to start the application 16 | CMD ["python3", "app.py"] 17 | -------------------------------------------------------------------------------- /examples/first-docker-file/app.py: -------------------------------------------------------------------------------- 1 | print("Hello World") 2 | -------------------------------------------------------------------------------- /examples/golang-multi-stage-docker-build/Dockerfile: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # BASE IMAGE 3 | ########################################### 4 | 5 | FROM ubuntu AS build 6 | 7 | RUN apt-get update && apt-get install -y golang-go 8 | 9 | ENV GO111MODULE=off 10 | 11 | COPY . . 12 | 13 | RUN CGO_ENABLED=0 go build -o /app . 14 | 15 | ############################################ 16 | # HERE STARTS THE MAGIC OF MULTI STAGE BUILD 17 | ############################################ 18 | 19 | FROM scratch 20 | 21 | # Copy the compiled binary from the build stage 22 | COPY --from=build /app /app 23 | 24 | # Set the entrypoint for the container to run the binary 25 | ENTRYPOINT ["/app"] 26 | 27 | -------------------------------------------------------------------------------- /examples/golang-multi-stage-docker-build/README.md: -------------------------------------------------------------------------------- 1 | # Multi Stage Docker Build 2 | 3 | The main purpose of choosing a golang based applciation to demostrate this example is golang is a statically-typed programming language that does not require a runtime in the traditional sense. Unlike dynamically-typed languages like Python, Ruby, and JavaScript, which rely on a runtime environment to execute their code, Go compiles directly to machine code, which can then be executed directly by the operating system. 4 | 5 | So the real advantage of multi stage docker build and distro less images can be understand with a drastic decrease in the Image size. 6 | -------------------------------------------------------------------------------- /examples/golang-multi-stage-docker-build/calculator.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bufio" 5 | "fmt" 6 | "os" 7 | "strconv" 8 | "strings" 9 | ) 10 | 11 | func main() { 12 | fmt.Println("Hi Abhishek.Veeramalla, I am a calculator app ....") 13 | 14 | for { 15 | // Read input from the user 16 | reader := bufio.NewReader(os.Stdin) 17 | fmt.Print("Enter any calculation (Example: 1 + 2 (or) 2 * 5 -> Please maintain spaces as shown in example): ") 18 | text, _ := reader.ReadString('\n') 19 | 20 | // Trim the newline character from the input 21 | text = strings.TrimSpace(text) 22 | 23 | // Check if the user entered "exit" to quit the program 24 | if text == "exit" { 25 | break 26 | } 27 | 28 | // Split the input into two parts: the left operand and the right operand 29 | parts := strings.Split(text, " ") 30 | if len(parts) != 3 { 31 | fmt.Println("Invalid input. Try again.") 32 | continue 33 | } 34 | 35 | // Convert the operands to integers 36 | left, err := strconv.Atoi(parts[0]) 37 | if err != nil { 38 | fmt.Println("Invalid input. Try again.") 39 | continue 40 | } 41 | right, err := strconv.Atoi(parts[2]) 42 | if err != nil { 43 | fmt.Println("Invalid input. Try again.") 44 | continue 45 | } 46 | 47 | // Perform the calculation based on the operator 48 | var result int 49 | switch parts[1] { 50 | case "+": 51 | result = left + right 52 | case "-": 53 | result = left - right 54 | case "*": 55 | result = left * right 56 | case "/": 57 | result = left / right 58 | default: 59 | fmt.Println("Invalid operator. Try again.") 60 | continue 61 | } 62 | 63 | // Print the result 64 | fmt.Printf("Result: %d\n", result) 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /examples/golang-multi-stage-docker-build/dockerfile-without-multistage/Dockerfile: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # BASE IMAGE 3 | ########################################### 4 | 5 | FROM ubuntu AS build 6 | 7 | RUN apt-get update && apt-get install -y golang-go 8 | 9 | ENV GO111MODULE=off 10 | 11 | COPY . . 12 | 13 | RUN CGO_ENABLED=0 go build -o /app . 14 | 15 | ENTRYPOINT ["/app"] 16 | 17 | -------------------------------------------------------------------------------- /examples/golang-multi-stage-docker-build/dockerfile-without-multistage/calculator.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bufio" 5 | "fmt" 6 | "os" 7 | "strconv" 8 | "strings" 9 | ) 10 | 11 | func main() { 12 | fmt.Println("Hi Abhishek.Veeramalla, I am a calculator app ....") 13 | 14 | for { 15 | // Read input from the user 16 | reader := bufio.NewReader(os.Stdin) 17 | fmt.Print("Enter any calculation (Example: 1 + 2 (or) 2 * 5 -> Please maintain spaces as shown in example): ") 18 | text, _ := reader.ReadString('\n') 19 | 20 | // Trim the newline character from the input 21 | text = strings.TrimSpace(text) 22 | 23 | // Check if the user entered "exit" to quit the program 24 | if text == "exit" { 25 | break 26 | } 27 | 28 | // Split the input into two parts: the left operand and the right operand 29 | parts := strings.Split(text, " ") 30 | if len(parts) != 3 { 31 | fmt.Println("Invalid input. Try again.") 32 | continue 33 | } 34 | 35 | // Convert the operands to integers 36 | left, err := strconv.Atoi(parts[0]) 37 | if err != nil { 38 | fmt.Println("Invalid input. Try again.") 39 | continue 40 | } 41 | right, err := strconv.Atoi(parts[2]) 42 | if err != nil { 43 | fmt.Println("Invalid input. Try again.") 44 | continue 45 | } 46 | 47 | // Perform the calculation based on the operator 48 | var result int 49 | switch parts[1] { 50 | case "+": 51 | result = left + right 52 | case "-": 53 | result = left - right 54 | case "*": 55 | result = left * right 56 | case "/": 57 | result = left / right 58 | default: 59 | fmt.Println("Invalid operator. Try again.") 60 | continue 61 | } 62 | 63 | // Print the result 64 | fmt.Printf("Result: %d\n", result) 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /examples/python-web-app/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu 2 | 3 | WORKDIR /app 4 | 5 | COPY requirements.txt /app/ 6 | COPY devops /app/ 7 | 8 | RUN apt-get update && apt-get install -y python3 python3-pip python3-venv 9 | 10 | SHELL ["/bin/bash", "-c"] 11 | 12 | RUN python3 -m venv venv1 && \ 13 | source venv1/bin/activate && \ 14 | pip install --no-cache-dir -r requirements.txt 15 | 16 | EXPOSE 8000 17 | 18 | CMD source venv1/bin/activate && python3 manage.py runserver 0.0.0.0:8000 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /examples/python-web-app/devops/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/Docker-Zero-to-Hero/f324152c83ec2ce7c0313e3dc170754e1dc75a0d/examples/python-web-app/devops/db.sqlite3 -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/Docker-Zero-to-Hero/f324152c83ec2ce7c0313e3dc170754e1dc75a0d/examples/python-web-app/devops/demo/__init__.py -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/Docker-Zero-to-Hero/f324152c83ec2ce7c0313e3dc170754e1dc75a0d/examples/python-web-app/devops/demo/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/Docker-Zero-to-Hero/f324152c83ec2ce7c0313e3dc170754e1dc75a0d/examples/python-web-app/devops/demo/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/__pycache__/views.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/Docker-Zero-to-Hero/f324152c83ec2ce7c0313e3dc170754e1dc75a0d/examples/python-web-app/devops/demo/__pycache__/views.cpython-310.pyc -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class DemoConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'demo' 7 | -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/Docker-Zero-to-Hero/f324152c83ec2ce7c0313e3dc170754e1dc75a0d/examples/python-web-app/devops/demo/migrations/__init__.py -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /examples/python-web-app/devops/demo/templates/demo_site.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |Learn DevOps with strong foundational knowledge and practical understanding
91 |Please Share the Channel with your friends and colleagues
92 |