Feature/lab5#1110
Open
BearAx wants to merge 2 commits into
Open
Conversation
Signed-off-by: BearAx <medvedguk@gmail.com>
Signed-off-by: BearAx <medvedguk@gmail.com>
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
Complete Lab 5 by running QuickNotes inside a reproducible Vagrant VM, validating service access from both the VM and host, practicing snapshot recovery, and documenting the VM-vs-container bonus comparison.
Changes
Added
submissions/lab5.mdAdded a
Vagrantfilefor running QuickNotes inside an Ubuntu 22.04 Vagrant VMConfigured the VM with:
generic/ubuntu2204base box127.0.0.1:18080→ guest:8080./appfolder mounted at/opt/quicknotes/appAdded shell provisioning to:
1.24.5quicknotes.servicesystemd unitDocumented
vagrant up,vagrant validate, VM health checks, host forwarded-port checks, and systemd service statusCompleted the snapshot task by saving, breaking, restoring, and revalidating the VM
Added answers to the Vagrant networking, synced folder, provisioning, Go version pinning, and snapshot design questions
Completed the bonus comparison between the Vagrant VM and a Docker container
Testing
vagrant validatevagrant upvagrant ssh -c 'go version'vagrant ssh -c 'curl -s http://localhost:8080/health'vagrant ssh -c 'systemctl --no-pager --full status quicknotes.service | sed -n "1,8p"'vagrant snapshot save quicknotes-clean/usr/local/goawaygo: command not foundChecklist
Vagrantfileaddedsubmissions/lab5.mdupdatedquicknotes.serviceis enabled and running