Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 09-create-base-image/img/case1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case2b.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case5.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case6.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case7.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case8.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 09-create-base-image/img/case9.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions 09-create-base-image/solution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
На момент выполнения кейса VirtualBox на Linux почему-то отказался работать, а времени было в обрез, поэтому было решено использовать в качестве хост-системы Windows и перебросить получившийся образ по SSH.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Поправь свой ПР в соответствии c CONTRIBUTING.md
  2. Убери из ПР лабу по куберу


Загружаем образ Astra Linux для Virtualbox:

![Сайт загрузки](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case1.PNG)

Импортируем виртуалку:

![Импорт](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case2.PNG)

Пробрасываем порт для SSH:

![Проброс порта](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case2b.PNG)

Запускаем виртуалку и убеждаемся, что сработал DHCP (с этим бывают проблемы):

![Запуск](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case3.PNG)

Устанавливаем пакет debootstrap:

![Установка](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case4.PNG)

Создаем директорию с файловой системой контейнера:

![Подготовка файловой системы](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case5.PNG)


![Проверка файловой системы](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case6.PNG)

Запаковываем её в tar-архив:

![Архивация файловой системы](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case7.PNG)

Передаем по SSH на компьютер с Docker:


![Архивация файловой системы](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case8.PNG)

Запускаем контейнер:


![Запуск контейнера](https://raw.githubusercontent.com/warmike01/devops-cases/refs/heads/main/09-create-base-image/img/case9.PNG)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions kubernetes-basic-lab/solution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Для выполнения работы был развернут кластер minikube.

![Запуск кластера](https://github.com/warmike01/devops-cases/blob/main/kubernetes-basic-lab/img/Screenshot%20from%202026-04-14%2014-53-27.png?raw=true)

К нему примонтирована директория:

![Монтирование папки](https://github.com/warmike01/devops-cases/blob/main/kubernetes-basic-lab/img/Screenshot%20from%202026-04-14%2014-53-48.png?raw=true)

Заданы конфигурации для контейнера, сети и веб-сервера:

![Конфигурация контейнера](https://github.com/warmike01/devops-cases/blob/main/kubernetes-basic-lab/img/Screenshot%20from%202026-04-14%2023-50-00.png?raw=true)

![Конфигурация сети](https://github.com/warmike01/devops-cases/blob/main/kubernetes-basic-lab/img/Screenshot%20from%202026-04-14%2023-50-27.png?raw=true)

![Конфигурация сервера](https://github.com/warmike01/devops-cases/blob/main/kubernetes-basic-lab/img/Screenshot%20from%202026-04-14%2023-50-46.png?raw=true)

Далее конфигурации были запущены, а 80 порт контейнера проброшен на 8080 внешний:

![Запуск](https://github.com/warmike01/devops-cases/blob/main/kubernetes-basic-lab/img/Screenshot%20from%202026-04-14%2023-50-58.png?raw=true)

Веб-сервер доступен:

![Веб-страница](https://github.com/warmike01/devops-cases/blob/main/kubernetes-basic-lab/img/Screenshot%20from%202026-04-14%2023-51-18.png?raw=true)