One Day workshop on understanding Docker and Git
Machine/VM with linux, python3 (3.xx) and pip3 installed
sudo apt-get update
sudo apt-get install git
git --version
ls -al ~/.ssh
sudo apt install xclip
xclip -sel clip < ~/.ssh/id_ed25519.pub
WORKSHOP
inside the /home
directory, by running following command in the terminal.
mkdir WORKSHOP
WORKSHOP
directory.Info: You can refer this guide to understand how to fork and clone
To install docker follow the below mentioned steps.
Configure docker to run without sudo.
Install Docker-compose by running the follwing command:
sudo curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
You’ll see output similar to this:
Output
docker-compose version 2.16.0, build 5becea4c
Docker Compose is now successfully installed on your system.
Download the follwing docker images to your local machine
docker pull postgres:14-alpine
docker run --rm -ti postgres:14-alpine psql -V
Output: psql (PostgreSQL) 14.5
Time | Topics |
---|---|
09:00 - 09:30 | [Introduction ] |
09:30 - 10:00 | Introduction to GIT |
10:00 - 11:00 | Git Commands (push, pull, make Pull request etc) |
11:00 - 11:30 | What is docker |
11:30 - 12:00 | Docker Commands |
12:00 - 01:30 | [Break ] |
01:30 - 4:00 | Building Custom Containers |
Run Multiple Services with Docker Compose |
|
4:00 - 5:00 | Expose Ports, Volume Mounts, Utilizing Networks, Limiting Resources |
5:15 - 5:30 | [Wrapping Up ] |