DevSecOps Practitioner Sessions – MFH IT Solutions, myfuturehub.com

ToolScheduleTopics covered Session Lead DocumentationDiscussion PointsPendig Action Items
Docker13-April-2023 : Docker Lab
Installation
Docker Desktop
Ubuntu server
Dockerhub
Beginners commands.

$ docker login – Done
$ docker exec – Done
$ docker ps – Done
$ docker ps -a – Done
$ docker images – Done


$ docker rmi – DONE

Steps :
– Install Docker compose

$ docker start
$ docker stop
$ docker kill
$ docker run
$ docker network
$ docker info


> docker compose file
> creating docker image
> push docker image to docker hub
> create docker contener usinb docker image
> tagging
> attaching volumes/storage
> docker through CICD
> docker networking
Sreekanth> Creatd ubuntu image
> Using docker compose file we have installed nginx on ubuntu image
Docker file :

sreekanthadari@Sreekanths-MacBook-Air .docker % cat Dockerfile 
FROM ubuntu:latest
RUN apt-get update && apt-get install -y nginx
COPY index.html /var/www/html/
EXPOSE 80
CMD [“nginx”, “-g”, “daemon off;”]
> created hmtl page
> Mapped port 80 on ubuntu image to local host and succesfully browsed through the html page.

Commands history :

 325  docker ps
  326  docker images
  327  docker stop mfhcontnginx
  328  docker ps
  329  docker images
  330  docker ps -a
  331  docker rm mfhcontnginx
  332  docker ps
  333  docker ps -a
  334  docker run -p 80:80 -dit mfhcont2nginx mfhnginx .
  335  docker run -p 80:80 -dit mfhcont2nginx mfhnginx
  336  docker run -p 80:80 -dit  mfhnginx nfhcont2nginx
  337  history
  338  docker run -p 80:80 -dit  mfhnginx
  339  docker ps
  340  curl http://localhost:80
DockerDay2 (14 April 23)$ docker pull – Done
$ docker push – Pending
$ docker ls / docker container – Pending
$ docker volume – Pending (create, attach to container, delete container and recreate container and attach, CICD)
$ docker rm – Pending
SreekanthTo create a docker Container
$ docker run -dit –name mfhcontkaushal d11ac4441aa3
To get in to a continer
% docker exec -it c6e3d4bcffe6 /bin/bash

To push to public dockerhub repositories, we need to use tag as 0 or 1

1. Tagged images failed to be pushed to private dockerhub repsitory – Fix c/o DRP Team
2. Why do we use tag docker images ?

Pending topics :
$ docker push – Pending
$ docker ls / docker container – Pending
$ docker volume – Pending (create, attach to container, delete container and recreate container and attach, CICD)
$ docker rm – Pending
DockerDay 3 (15-April-2023)
$ docker compose – WIP (More, CPU, Memory, Create DB, Do few Projects to launch applications.)Dinesh – Unable to join due to office.
Standby Lead – Sreekanth
To push image to dockerhub account
Image name should be in the format
dockerhub_username/repo_name
[4:28 pm, 15/04/2023] MFH DevOps Consultancy: Docker build failure :
[+] Building 0.3s (2/2) FINISHED
=> [internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 207B 0.1s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
failed to solve with fronten…
[4:29 pm, 15/04/2023] MFH DevOps Consultancy: Below is the Dockerfile :
version: ‘3’
services:
  web:
    image: httpd:latest
    ports:
      – “80:80”
    volumes:
      – ./my-website:/usr/local/apache2/htdocs/
Day 4 (17Apr23)Kaushal Kishore
Day 5 (18Apr23)Shankar
Day 6 (19Apr23)Kaushal & Sreekanth》Started to deploy Python application. 》Uploaded required files to repo https://github.com/kaushalnitb/DevSecOps.gitRun Docker compose and deploy Python application & Redis database container
Test application
Day 7 (20Apr23)Aslam Ansari
Day 8 (21Apr23)Anil M
Day 9 (22Apr23)Chetan Dinkar Patil
Day 10 (24Apr23)Kaushal Kishore
Kubernetes
Terraform
AWS

Leave a Comment

MFH IT Solutions (Regd No -LIN : AP-03-46-003-03147775)

Consultation & project support organization.

Contact

MFH IT Solutions (Regd)
NAD Kotha Road, Opp Bashyam School, Butchurajupalem, Jaya Prakash Nagar Visakhapatnam, Andhra Pradesh – 530027