devops33 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {devops33-0.2.0 → devops33-0.3.0}/PKG-INFO +1 -1
- {devops33-0.2.0 → devops33-0.3.0}/devops/main.py +58 -31
- {devops33-0.2.0 → devops33-0.3.0}/devops33.egg-info/PKG-INFO +1 -1
- {devops33-0.2.0 → devops33-0.3.0}/pyproject.toml +1 -1
- {devops33-0.2.0 → devops33-0.3.0}/LICENSE +0 -0
- {devops33-0.2.0 → devops33-0.3.0}/README.md +0 -0
- {devops33-0.2.0 → devops33-0.3.0}/devops/__init__.py +0 -0
- {devops33-0.2.0 → devops33-0.3.0}/devops/__main__.py +0 -0
- {devops33-0.2.0 → devops33-0.3.0}/devops33.egg-info/SOURCES.txt +0 -0
- {devops33-0.2.0 → devops33-0.3.0}/devops33.egg-info/dependency_links.txt +0 -0
- {devops33-0.2.0 → devops33-0.3.0}/devops33.egg-info/entry_points.txt +0 -0
- {devops33-0.2.0 → devops33-0.3.0}/devops33.egg-info/top_level.txt +0 -0
- {devops33-0.2.0 → devops33-0.3.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devops33
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands.
|
|
5
5
|
Author-email: DevOps Assistant <assistant@example.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/example/devops-lab-assistant
|
|
@@ -19,54 +19,81 @@ COMMANDS = {
|
|
|
19
19
|
"Docker": [
|
|
20
20
|
{"cmd": "wsl -d Ubuntu", "desc": "Opens the Ubuntu WSL distribution from PowerShell."},
|
|
21
21
|
{"cmd": "sudo docker --version", "desc": "Verifies if Docker is installed and shows the version."},
|
|
22
|
-
{"cmd": "sudo docker run hello-world", "desc": "Tests if Docker is working correctly by running a
|
|
22
|
+
{"cmd": "sudo docker run hello-world", "desc": "Tests if Docker is working correctly by running a test container."},
|
|
23
23
|
{"cmd": "sudo docker images", "desc": "Lists all Docker images currently downloaded on your system."},
|
|
24
24
|
{"cmd": "sudo docker ps -a", "desc": "Shows all containers, including those that are currently stopped."},
|
|
25
25
|
{"cmd": "sudo docker pull nginx", "desc": "Downloads the official Nginx image from Docker Hub."},
|
|
26
|
-
{"cmd": "sudo docker run -d --name mynginx -p 8080:80 nginx", "desc": "Runs
|
|
26
|
+
{"cmd": "sudo docker run -d --name mynginx -p 8080:80 nginx", "desc": "Runs Nginx in detached mode with port mapping."},
|
|
27
|
+
{"cmd": "sudo docker ps", "desc": "Lists currently running containers."},
|
|
27
28
|
{"cmd": "sudo docker stop mynginx", "desc": "Stops a running container named 'mynginx'."},
|
|
28
29
|
{"cmd": "sudo docker rm mynginx", "desc": "Permanently removes a stopped container named 'mynginx'."},
|
|
29
|
-
{"cmd": "
|
|
30
|
-
{"cmd": "
|
|
31
|
-
{"cmd": "
|
|
32
|
-
{"cmd": "
|
|
30
|
+
{"cmd": "mkdir ~/custom_image", "desc": "Creates a new project directory for a custom Docker image."},
|
|
31
|
+
{"cmd": "cd ~/custom_image", "desc": "Changes directory into the project folder."},
|
|
32
|
+
{"cmd": "echo \"print('...')\" > app.py", "desc": "Creates a simple Python application file."},
|
|
33
|
+
{"cmd": "cat app.py", "desc": "Displays the contents of the Python application file."},
|
|
34
|
+
{"cmd": "nano Dockerfile", "desc": "Opens the nano editor to create or edit a Dockerfile."},
|
|
35
|
+
{"cmd": "cat Dockerfile", "desc": "Displays the contents of the Dockerfile."},
|
|
36
|
+
{"cmd": "sudo docker build -t mypythonapp .", "desc": "Builds a custom Docker image from the local Dockerfile."},
|
|
37
|
+
{"cmd": "sudo docker run --name mycontainer mypythonapp", "desc": "Runs a container from your custom built image."},
|
|
38
|
+
{"cmd": "sudo docker logs mycontainer", "desc": "Displays the output logs from a specific container."},
|
|
39
|
+
{"cmd": "sudo docker login", "desc": "Authenticates your local client with your Docker Hub account."},
|
|
40
|
+
{"cmd": "sudo docker tag mypythonapp user/app:v1", "desc": "Tags an image for uploading to Docker Hub."},
|
|
41
|
+
{"cmd": "sudo docker push user/app:v1", "desc": "Uploads the tagged image to Docker Hub."},
|
|
33
42
|
{"cmd": "sudo docker rmi mypythonapp", "desc": "Removes a local Docker image from your system."}
|
|
34
43
|
],
|
|
35
44
|
"Git": [
|
|
36
|
-
{"cmd": "sudo apt update", "desc": "Updates the local package list
|
|
37
|
-
{"cmd": "
|
|
38
|
-
{"cmd": "git
|
|
39
|
-
{"cmd": "git
|
|
40
|
-
{"cmd": "
|
|
41
|
-
{"cmd": "
|
|
42
|
-
{"cmd": "
|
|
43
|
-
{"cmd": "
|
|
44
|
-
{"cmd": "git
|
|
45
|
-
{"cmd": "
|
|
45
|
+
{"cmd": "sudo apt update", "desc": "Updates the local package list for the latest software info."},
|
|
46
|
+
{"cmd": "sudo apt upgrade -y", "desc": "Upgrades all installed packages to their latest versions."},
|
|
47
|
+
{"cmd": "git --version", "desc": "Checks the currently installed Git version."},
|
|
48
|
+
{"cmd": "sudo apt install git -y", "desc": "Installs the Git version control system."},
|
|
49
|
+
{"cmd": "cd ~", "desc": "Navigates to the Linux user's home directory."},
|
|
50
|
+
{"cmd": "mkdir devops_lab", "desc": "Creates a new folder for the DevOps lab project."},
|
|
51
|
+
{"cmd": "cd devops_lab", "desc": "Enters the project folder."},
|
|
52
|
+
{"cmd": "pwd", "desc": "Prints the absolute path of the current working directory."},
|
|
53
|
+
{"cmd": "git init", "desc": "Initializes a new Git repository in the current folder."},
|
|
54
|
+
{"cmd": "echo \"print('...')\" > app.py", "desc": "Creates a Python file for the Git lab."},
|
|
55
|
+
{"cmd": "ls", "desc": "Lists the files in the current directory."},
|
|
56
|
+
{"cmd": "cat app.py", "desc": "Views the contents of the application file."},
|
|
57
|
+
{"cmd": "git status", "desc": "Shows the state of tracked and untracked files."},
|
|
58
|
+
{"cmd": "git config --global user.name 'Name'", "desc": "Sets your Git username globally."},
|
|
59
|
+
{"cmd": "git config --global user.email 'Email'", "desc": "Sets your Git email address globally."},
|
|
60
|
+
{"cmd": "git add app.py", "desc": "Stages a specific file for the next commit."},
|
|
61
|
+
{"cmd": "git add .", "desc": "Stages all changes in the current directory."},
|
|
62
|
+
{"cmd": "git commit -m 'message'", "desc": "Commits staged changes to the repository history."},
|
|
63
|
+
{"cmd": "git log --oneline", "desc": "Shows a compact version of the commit history."},
|
|
64
|
+
{"cmd": "git remote add origin <url>", "desc": "Links your local repo to a remote GitHub repository."},
|
|
65
|
+
{"cmd": "git remote -v", "desc": "Verifies the link to the remote repository."},
|
|
66
|
+
{"cmd": "git branch -M main", "desc": "Renames the current branch to 'main'."},
|
|
67
|
+
{"cmd": "git push -u origin main", "desc": "Uploads local commits and sets the upstream branch."},
|
|
68
|
+
{"cmd": "git push", "desc": "Uploads local commits to the remote repository."}
|
|
46
69
|
],
|
|
47
70
|
"Prometheus & Utils": [
|
|
48
|
-
{"cmd": "mkdir
|
|
49
|
-
{"cmd": "
|
|
50
|
-
{"cmd": "
|
|
51
|
-
{"cmd": "
|
|
52
|
-
{"cmd": "
|
|
71
|
+
{"cmd": "mkdir ~/prom_lab", "desc": "Creates a directory for Prometheus and Grafana files."},
|
|
72
|
+
{"cmd": "cd ~/prom_lab", "desc": "Enters the Prometheus project directory."},
|
|
73
|
+
{"cmd": "nano prometheus.yml", "desc": "Creates or edits the Prometheus configuration file."},
|
|
74
|
+
{"cmd": "cat prometheus.yml", "desc": "Displays the Prometheus configuration content."},
|
|
75
|
+
{"cmd": "nano docker-compose.yml", "desc": "Creates or edits the Docker Compose configuration file."},
|
|
76
|
+
{"cmd": "cat docker-compose.yml", "desc": "Displays the Docker Compose file content."},
|
|
77
|
+
{"cmd": "sudo docker compose up -d", "desc": "Starts Prometheus and Grafana in detached mode."},
|
|
78
|
+
{"cmd": "sudo docker ps", "desc": "Checks if Prometheus and Grafana containers are running."},
|
|
79
|
+
{"cmd": "sudo docker compose down", "desc": "Stops and removes the multi-container application."}
|
|
53
80
|
],
|
|
54
81
|
"Kubernetes": [
|
|
55
82
|
{"cmd": "minikube start", "desc": "Starts the local Kubernetes cluster using Minikube."},
|
|
56
83
|
{"cmd": "minikube status", "desc": "Checks the status of the local Minikube cluster."},
|
|
57
|
-
{"cmd": "kubectl version --client", "desc": "Verifies that the kubectl client is
|
|
84
|
+
{"cmd": "kubectl version --client", "desc": "Verifies that the kubectl client is working."},
|
|
58
85
|
{"cmd": "kubectl run my-pod --image=nginx", "desc": "Creates and runs a simple Nginx pod in the cluster."},
|
|
59
86
|
{"cmd": "kubectl get pods", "desc": "Lists all pods currently running in the cluster."},
|
|
60
|
-
{"cmd": "kubectl get pod my-pod -o wide", "desc": "Shows detailed
|
|
61
|
-
{"cmd": "minikube service my-service --url", "desc": "Generates a URL to access a service
|
|
62
|
-
{"cmd": "kubectl port-forward pod/my-pod 8080:80", "desc": "Forwards local port 8080 to the pod's port 80
|
|
63
|
-
{"cmd": "kubectl expose pod my-pod --type=NodePort", "desc": "Exposes a pod
|
|
64
|
-
{"cmd": "kubectl get services", "desc": "Lists all services
|
|
65
|
-
{"cmd": "kubectl delete service my-service", "desc": "Removes a service from the
|
|
87
|
+
{"cmd": "kubectl get pod my-pod -o wide", "desc": "Shows detailed pod info, including its IP and Node."},
|
|
88
|
+
{"cmd": "minikube service my-service --url", "desc": "Generates a URL to access a service in Minikube."},
|
|
89
|
+
{"cmd": "kubectl port-forward pod/my-pod 8080:80", "desc": "Forwards local port 8080 to the pod's port 80."},
|
|
90
|
+
{"cmd": "kubectl expose pod my-pod --type=NodePort", "desc": "Exposes a pod via a NodePort service."},
|
|
91
|
+
{"cmd": "kubectl get services", "desc": "Lists all services active in the cluster."},
|
|
92
|
+
{"cmd": "kubectl delete service my-service", "desc": "Removes a specific service from the cluster."},
|
|
66
93
|
{"cmd": "kubectl delete pod my-pod", "desc": "Deletes a specific pod from the cluster."},
|
|
67
|
-
{"cmd": "kubectl create deployment my-deploy", "desc": "Creates a deployment to manage
|
|
68
|
-
{"cmd": "kubectl get deployment", "desc": "Lists all deployments and their
|
|
69
|
-
{"cmd": "kubectl scale deployment --replicas=5", "desc": "
|
|
94
|
+
{"cmd": "kubectl create deployment my-deploy", "desc": "Creates a deployment to manage replicated pods."},
|
|
95
|
+
{"cmd": "kubectl get deployment", "desc": "Lists all deployments and their status."},
|
|
96
|
+
{"cmd": "kubectl scale deployment --replicas=5", "desc": "Scales a deployment to the specified number of replicas."},
|
|
70
97
|
{"cmd": "minikube stop", "desc": "Stops the running local Kubernetes cluster."}
|
|
71
98
|
]
|
|
72
99
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devops33
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands.
|
|
5
5
|
Author-email: DevOps Assistant <assistant@example.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/example/devops-lab-assistant
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|