Skip to content
/ Devops01 Public

What does it really mean to be a DevOps, and what he or she brings to a team. PeakIT.002

License

Notifications You must be signed in to change notification settings

c4xp/Devops01

Repository files navigation

currentMenu layout title subTitle
home
default
Devops01
Introducere

Devops01 - Dockerizarea unei aplicații Php Incepatori

  • Ce vrea DevOps de la mine ?!

Squint

Ce subiecte vom acoperi în acest atelier:

  • Docker este o unealtă facută pentru a ușura munca de creare, instalare și rulare ale aplicațiilor folosind containere.
  • În acest atelier vom dockeriza o aplicație simplă Php, pentru ca s-o putem pregati pentru Integrare Continuă / Livrare Continuă.
  • Cum să ne auto-documentam codul
  • Tipuri, trucuri și unelte utile

Ce trebuie să știe participanții:

Pentru a participa la acest atelier în mod activ, cursanții trebuie să aibă un pic de experiență cu Php, Linux, și familiaritate cu git, composer, si comenzi de la consola.

Ce vom invăța până la sfârșit:

Participantii vor stii ce inseamna Docker la un nivel de baza: ce aduce nou in IT, de ce este o idee buna. Bonus: Alte unelte bune de știut.

De ce avem nevoie:

  • Laptop cu Windows 64-bit: Pro, Enterprise sau Education

  • Un cont pe Github

  • Opțiunea de Virtualizare activă în BIOS.

  • Docker Desktop instalat DockerError1

  • Deschideți o fereastră Powershell: ❖ + X, select Windows PowerShell (Admin)

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Enable-WindowsOptionalFeature -Online -FeatureName containers –All
  • go to Microsoft Store Get Ubuntu Plain (not 18 or 20 distribution)
  • Restart
  • After install the Ubuntu on CMD:
wsl -l -v
  • Visit and Download the following link in a browser to Update WSL2 Kernel:
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
  • Restart
wsl --set-version Ubuntu 2
  • Docker-Desktop instalat download.docker.com
  • Un procesor capabil de SLAT (Second Level Address Translation - hardware-assisted virtualization technology). ( Utilitare: Speccy Coreinfo )
  • Măcar 4GB de memorie RAM.

Testarea mediului Windows

  • Deschideți o fereastră Powershell: ❖ + X, select Windows PowerShell (Admin)
docker --version

Docker version 18.09.2, build 6247962

  • Descărcați imaginea simplă hello-world din Docker-Hub si rulați-o: docker run hello-world
docker : Unable to find image 'hello-world:latest' locally
...
latest:
Pulling from library/hello-world
...
Hello from Docker!
This message shows that your installation appears to be working correctly.
...

Bonus nr.1 - Chocolatey manager de pachete

  • Install with Powershell: ❖ + X, select Windows PowerShell (Admin)
Get-ExecutionPolicy
Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  • Cateva pachete utile: (Instalate fara prompt choco feature enable -n allowGlobalConfirmation)
choco install git heidisql vscode vcredist-all php curl nodejs flutter

Alte cateva pachete care merita sa fie mentionate: jdk8 gimp k-litecodecpackfull peazip speccy ?!

Bonus nr.2 - Composer și Couscous pentru generare documentație

choco install composer
composer global require couscous/couscous
couscous preview
couscous generate

Questions

Begin→

About

What does it really mean to be a DevOps, and what he or she brings to a team. PeakIT.002

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published