Skip to content

Feature/lab6 Tatyana Shmykova#1170

Open
lime413 wants to merge 1 commit into
inno-devops-labs:mainfrom
lime413:feature/lab6
Open

Feature/lab6 Tatyana Shmykova#1170
lime413 wants to merge 1 commit into
inno-devops-labs:mainfrom
lime413:feature/lab6

Conversation

@lime413

@lime413 lime413 commented Jun 23, 2026

Copy link
Copy Markdown

Goal

Complete Lab 6 by containerizing QuickNotes with Docker Compose, persistence, healthcheck, and bonus hardening.

Changes

  • Added a multi-stage Dockerfile for QuickNotes
  • Added .dockerignore to reduce the build context
  • Added a small Go healthcheck binary for a distroless-friendly healthcheck
  • Added compose.yaml with:
    • quicknotes service
    • named volume for /data
    • healthcheck
    • restart policy
    • bonus hardening options
  • Added submissions/lab6.md with command output and written analysis for all required tasks and bonus

Testing

  • Built the image with docker build -t quicknotes:lab6 ./app
  • Verified final image size with docker images quicknotes:lab6 (21.4MB)
  • Verified runtime with docker run and curl http://localhost:8080/health
  • Verified Compose startup with docker compose up --build -d
  • Verified persistence:
    • note exists after docker compose down and up
    • note is removed after docker compose down -v
  • Verified bonus hardening with docker inspect, failed sh exec, and read-only root filesystem test
  • Ran trivy image --severity HIGH,CRITICAL --no-progress quicknotes:lab6
  • Verified signed commit with git log --show-signature

Checklist

  • Title is a clear sentence (≤ 70 chars)
  • Commits are signed (git log --show-signature)
  • submissions/labN.md updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant