Feature/lab6#1216
Open
RusKudinov wants to merge 9 commits into
Open
Conversation
Signed-off-by: Руслан Кудинов <r.kudinov@innopolis.university>
Signed-off-by: Руслан Кудинов <r.kudinov@innopolis.university>
Signed-off-by: Руслан Кудинов <r.kudinov@innopolis.university>
Signed-off-by: Руслан Кудинов <r.kudinov@innopolis.university>
Signed-off-by: Руслан Кудинов <r.kudinov@innopolis.university>
Signed-off-by: Руслан Кудинов <r.kudinov@innopolis.university>
Signed-off-by: Руслан Кудинов <r.kudinov@innopolis.university>
Signed-off-by: Руслан Кудинов <r.kudinov@innopolis.university>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Реализация Lab 6: Dockerize QuickNotes с многостадийной сборкой, compose, healthcheck, persistent volume и security hardening.
Changes
app/Dockerfile— многостадийная сборка на основеgolang:1.24-alpineиdistroless/static:nonroot, финальный образ 16.8 МБ (≤ 25 МБ).compose.yaml— сервисquicknotesс портом 8080, именованным томом для/data, healthcheck черезbusybox wget, переменными окружения и политикой перезапуска.USER 65532(nonroot)read_only: true+tmpfsдля временных файловcap_drop: ALLno-new-privileges: truedistroless/static(без шелла)submissions/lab6.mdс полным отчётом, скриншотами и ответами на вопросы.Testing
docker images quicknotes:lab6→ 16.8 МБ./health:curl.exe http://localhost:8080/health→{"notes":0,"status":"ok"}.docker compose downиupзаметка сохранилась,docker compose down -vиupданные исчезли.docker inspectпоказываетUser: 65532,CapDrop: [ALL],SecurityOpt: [no-new-privileges:true].exec shиtouch /etc/testзавершились ошибками.aquasec/trivy:0.59.1— на уровне ОС уязвимостей нет, в Go-библиотеке stdlib найдены 13 HIGH (исправлены в новых версиях Go, не влияют на сдачу).submissions/lab6.md.Checklist
git log --show-signature) — если подписывал, иначе убери галочку или оставь как естьsubmissions/lab6.mdобновлён