Docker-Compose setup added to project - #156
Conversation
Adds docker-compose.yml + entrypoint.sh so `docker-compose up` works from a bare clone: the entrypoint scaffolds a blog from the bundled template if ./builds is missing, and independently re-clones the ink-theme-dark theme if that's missing, so the container can never fail to boot for a missing workspace or theme. Also commits the actual builds/ blog workspace (config.yml, source/, vendored ink-theme-dark theme) so it's never only on disk — repeated docker-compose down/up cycles kept resetting the bind-mounted folder during testing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…un ./... runned for fix and stdin stderr check added to main
|
Some obvious things I note:
|
|
Thanks for the review!
Pushed in 18b8118. Additionally, I added a couple of small extras while I was in there:
Happy to split these into a separate PR if you'd rather keep this one |
|
I'm detecting a heavy trace of AI slop in this code. Although this project doesn't have a zero-AI policy:
I have no objections to the modernization efforts, the Dockerfile updates, or the addition of the Also, it's not a great pleasure to talk with an AI - If I want to discuss with an AI, I can copy & paste the PR description into my own Coding Agent and do the changes by myself. Please use translation tools if necessary. |
docker-compose up no longer works out of the box with the project as it currently stands on GitHub.
Fixed the Go version in the Dockerfile (1.18 → 1.25)
Modernized some code using go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./...
Added stdin/stdout error checking to the infinite loop in main, panicking when an error is received from stdin or stderr