One Day workshop on understanding Docker to package applications into containers—standardized executable components combining application source code with the operating system.
- Install Ubuntu 20.04.4 LTS from here
- Install Git from your terminal by running following commands
$ sudo apt-get update
$ sudo apt-get install git
- Verify the installation was successful by typing
$ git --version
- Install curl and jq by running commands
$ sudo apt install curl
$ sudo apt install jq
- If you don't have the account on github then create an account on GitHub
- Create a directory named WORKSHOP, run the command in the terminal (
ctrl+shift+t
)$ mkdir WORKSHOP
- Fork this repository and then clone it inside the WORKSHOP directory
- You can refer this guide to understand how to fork and clone
- To install docker go to your cloned repository and run the following command from the terminal
$ cd WORKSHOP/WebApp-Workshop1/
$ sudo chmod +x prerequisites/install_docker.sh
$ sudo apt-get update
$ sudo prerequisites/install_docker.sh
- Verify Docker is installed
$ sudo docker -v
- Output : Docker version 20.10.12, build e91ed57`
- Install Docker-compose by running the follwing command
$ sudo apt-get update
$ sudo apt-get install docker-compose
- Verify the installed version with the following command
$ sudo docker-compose --version
- Output: docker-compose version 1.25.0
- Verify docker is installed
$ sudo docker run hello-world
- Go through the output
- Download the follwing docker images to your local machine
$ sudo docker pull node:16.16.0-alpine3.15
- Verify the image is pulled into your local machine
sudo docker run --rm -ti node:16.16.0-alpine3.15 node -v
- Output: v16.16.0
$ sudo docker pull postgres:14-alpine
- Verify the image
sudo docker run --rm -ti postgres:14-alpine psql -V
- Output: psql (PostgreSQL) 14.5
- By the end of this workshop you will understand what Docker and how it is containerized for the applications
- How Javascript works in the browser
- Async / await in Javascript
- API based node js application with express framework
Follow this tutorial and try it on your local machine
Node application setup
Time | Topics |
---|---|
09:00 - 11.00 | Docker |
11.15 - 01.00 | Git |
1.00 - 2.00 | [ Break ] |
2.00 - 2.30 | Javascript |
2.30 - 3.00 | Typescript |
3.00 - 5.00 | Node js |